Spaces:
Sleeping
Sleeping
File size: 9,644 Bytes
490b2ec |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta charset="utf-8" />
<title>MAGMA VIEW</title>
<style >
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: Arial;
}
#logo {
width: 100%;
top: 10px;
z-index: 1;
}
.title_print, .reporting_period {
text-align: center;
}
.header {
text-align: center;
padding: 0.05%;
background: #053067;
color: white;
}
.navbar {
overflow: hidden;
background-color: #333;
position: fixed;
top: 0;
width: 100%;
}
.navbar a {
float: right;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.navbar a:hover {
background: #ddd;
color: black;
}
.row {
display: flex;
flex-wrap: wrap;
padding: 0 2px;
}
/* Create four equal columns that sits next to each other */
.column {
flex: 25%;
max-width: 25%;
padding: 0 2px;
}
.column img {
margin-top: 2px;
vertical-align: middle;
}
/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
.column {
flex: 50%;
max-width: 50%;
}
}
/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
.column {
flex: 100%;
max-width: 100%;
}
}
.sticky {
position: fixed;
top: 0;
width: 100%;
}
.sticky + .content {
padding-top: 102px;
}
</style>
</head>
<body>
<title>Hello</title>
<!-- Header -->
<div id="myDIV" class="header">
<h1>MAGMA MOSAICO</h1>
</div>
<div class="row">
<tr>
<div class="column">
<img title="Cliente: MAGMA
DVR: INTELBRAS(DVR01)
IP: magma.ddns-intelbras.com.br:3010
Cam: CAMERA 1(1)
Setor:
" src="http://atualli.ddns.net:8091/getcamera?c=00&123" class="refr" alt="" style="width:100%" onclick="imgRedirect('zoom?n=1&m=1&p=01')">
</div>
<div class="column">
<img title="Cliente: MAGMA
DVR: INTELBRAS(DVR01)
IP: magma.ddns-intelbras.com.br:3010
Cam: CAMERA 2(2)
Setor:
" src="http://atualli.ddns.net:8091/getcamera?c=01&123" class="refr" alt="" style="width:100%" onclick="imgRedirect('zoom?n=1&m=1&p=02')">
</div>
<div class="column">
<img title="Cliente: MAGMA
DVR: INTELBRAS(DVR01)
IP: magma.ddns-intelbras.com.br:3010
Cam: CAMERA 3(3)
Setor:
" src="http://atualli.ddns.net:8091/getcamera?c=02&123" class="refr" alt="" style="width:100%" onclick="imgRedirect('zoom?n=1&m=1&p=03')">
</div>
<div class="column">
<img title="Cliente: MAGMA
DVR: INTELBRAS(DVR01)
IP: magma.ddns-intelbras.com.br:3010
Cam: CAMERA 4(4)
Setor:
" src="http://atualli.ddns.net:8091/getcamera?c=03&123" class="refr" alt="" style="width:100%" onclick="imgRedirect('zoom?n=1&m=1&p=04')">
</div>
<div class="column">
<img title="Cliente: MAGMA
DVR: INTELBRAS(DVR01)
IP: magma.ddns-intelbras.com.br:3010
Cam: CAMERA 5(5)
Setor:
" src="http://atualli.ddns.net:8091/getcamera?c=04&123" class="refr" alt="" style="width:100%" onclick="imgRedirect('zoom?n=1&m=1&p=05')">
</div>
<div class="column">
<img title="Cliente: MAGMA
DVR: INTELBRAS(DVR01)
IP: magma.ddns-intelbras.com.br:3010
Cam: CAMERA 6(6)
Setor:
" src="http://atualli.ddns.net:8091/getcamera?c=05&123" class="refr" alt="" style="width:100%" onclick="imgRedirect('zoom?n=1&m=1&p=06')">
</div>
</tr><tr>
<div class="column">
<img title="Cliente: MAGMA
DVR: INTELBRAS(DVR01)
IP: magma.ddns-intelbras.com.br:3010
Cam: CAMERA 7(7)
Setor:
" src="http://atualli.ddns.net:8091/getcamera?c=06&123" class="refr" alt="" style="width:100%" onclick="imgRedirect('zoom?n=1&m=1&p=07')">
</div>
<div class="column">
<img title="Cliente: MAGMA
DVR: INTELBRAS(DVR01)
IP: magma.ddns-intelbras.com.br:3010
Cam: CAMERA 8(8)
Setor:
" src="http://atualli.ddns.net:8091/getcamera?c=07&123" class="refr" alt="" style="width:100%" onclick="imgRedirect('zoom?n=1&m=1&p=08')">
</div>
<div class="column">
<img title="Cliente: MAGMA
DVR: INTELBRAS(DVR01)
IP: magma.ddns-intelbras.com.br:3010
Cam: CAMERA 9(9)
Setor:
" src="http://atualli.ddns.net:8091/getcamera?c=08&123" class="refr" alt="" style="width:100%" onclick="imgRedirect('zoom?n=1&m=1&p=09')">
</div>
<div class="column">
<img title="Cliente: MAGMA
DVR: INTELBRAS(DVR01)
IP: magma.ddns-intelbras.com.br:3010
Cam: CAMERA 10(10)
Setor:
" src="http://atualli.ddns.net:8091/getcamera?c=09&123" class="refr" alt="" style="width:100%" onclick="imgRedirect('zoom?n=1&m=1&p=10')">
</div>
<div class="column">
<img title="Cliente: MAGMA
DVR: INTELBRAS(DVR01)
IP: magma.ddns-intelbras.com.br:3010
Cam: CAMERA 11(11)
Setor:
" src="http://atualli.ddns.net:8091/getcamera?c=10&123" class="refr" alt="" style="width:100%" onclick="imgRedirect('zoom?n=1&m=1&p=11')">
</div>
<div class="column">
<img title="Cliente: MAGMA
DVR: INTELBRAS(DVR01)
IP: magma.ddns-intelbras.com.br:3010
Cam: CAMERA 12(12)
Setor:
" src="http://atualli.ddns.net:8091/getcamera?c=11&123" class="refr" alt="" style="width:100%" onclick="imgRedirect('zoom?n=1&m=1&p=12')">
</div>
</tr><tr>
<div class="column">
<img title="Cliente: MAGMA
DVR: INTELBRAS(DVR01)
IP: magma.ddns-intelbras.com.br:3010
Cam: CAMERA 13(13)
Setor:
" src="http://atualli.ddns.net:8091/getcamera?c=12&123" class="refr" alt="" style="width:100%" onclick="imgRedirect('zoom?n=1&m=1&p=13')">
</div>
<div class="column">
<img title="Cliente: MAGMA
DVR: INTELBRAS(DVR01)
IP: magma.ddns-intelbras.com.br:3010
Cam: CAMERA 14(14)
Setor:
" src="http://atualli.ddns.net:8091/getcamera?c=13&123" class="refr" alt="" style="width:100%" onclick="imgRedirect('zoom?n=1&m=1&p=14')">
</div>
<div class="column">
<img title="Cliente: MAGMA
DVR: INTELBRAS(DVR01)
IP: magma.ddns-intelbras.com.br:3010
Cam: CAMERA 15(15)
Setor:
" src="http://atualli.ddns.net:8091/getcamera?c=14&123" class="refr" alt="" style="width:100%" onclick="imgRedirect('zoom?n=1&m=1&p=15')">
</div>
<div class="column">
<img title="Cliente: MAGMA
DVR: INTELBRAS(DVR01)
IP: magma.ddns-intelbras.com.br:3010
Cam: CAMERA 16(16)
Setor:
" src="http://atualli.ddns.net:8091/getcamera?c=15&123" class="refr" alt="" style="width:100%" onclick="imgRedirect('zoom?n=1&m=1&p=16')">
</div>
</tr>
</div>
<script async>
// setInterval("gogo();", 1500);
var to = 1; // 2; //3;
var first = 0;
var idx=0;
function popupwindow(url, title) {
var w = screen.width*0.75;
var h = screen.height*0.75;
var left = (screen.width / 2) - (w / 2);
var top = (screen.height / 2) - (h / 1.5);
return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left);
}
function imgRedirect(destination) {
// location.href = destination;
// window.open(destination, 'popup', "width=300% height=300%");
// popupwindow(destination, "teste");
/* var d = new Date(),
dummy = d.getTime(),
i = 1,
pix = document.images;
for (; i < pix.length; i++) {
if (pix[i].className !== 'refr')
{ continue; }
else
{
if (pix[i].style.visibility == "collapse")
pix[i].style.visibility = "visible";
else
pix[i].style.visibility = "collapse";
}
}*/
}
function gogo()
{
var d=new Date(),
dummy=d.getTime(),
i=idx,
pix=document.images;
for (; i < pix.length; i++)
{
if (pix[i].className !== 'refr')
{ continue; }
else
{
var obj = pix[i],
s_rc=obj.getAttribute('src'),
pure_src = s_rc.substring(0, s_rc.indexOf('c=') + 4);
obj.setAttribute('src', pure_src + '&' + dummy);
obj.nextSibling.innerHTML=obj.getAttribute('src');
idx+=1;
if(idx>=pix.length) idx=0;
break;
}
}
if (first == 0)
{
first += 1;
setTimeout(gogo, to * 10000);
}
else
{ first += 1;
setTimeout(gogo, to * 100);
}
}
gogo();
</script>
</body>
</html>
|