File size: 2,573 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
<!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>ZOOM ATUALLI MOSAICO WEB</title>
    <style>
        body {
            text-align: center;
        }

        div {
            padding: 10px;
        }

        img {
            width: 100%;
            height: 100%;
        }

        html, body {
            width: 100%;
            height: 100%;
            margin: 0px;
        }

        .outter {
            display: flex;
            flex-direction: column;
            height: 100%;
            background-color: red;
        }

        .header {
            background-color: gray;
            height: 3em;
        }

        .content {
            height: 100%;
            background-color: green;
        }

        .footerClass {
            background: yellow;
            height: 3em;
        }

        .tableClass {
            margin: 10px;
            width: 100%;
            height: 100%;
            border: 2px solid;
            border-collapse: collapse;
            border-spacing: 0;
            overflow: scroll;
            display: block;
        }

            .tableClass th,
            .tableClass td {
                border: 1px solid black;
            }
    </style>
    <script>
        var to = 1; //3;
function imgRedirect(destination) {

    location.href = destination;

}

function gogo()
{
    var d=new Date(),
        dummy=d.getTime(),
	    i=0,
	    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');
        }
    }
    setTimeout(gogo,to*500);
}

onload=gogo; 
    </script>
</head>
<body>
    <table>
        <tr>
            <td>
                <ATSCAM>
                    <img src="getcamera?c=<ATCAM>&123" class="refr" alt="" width="320" height="240">
            </td>

            <td>
                <ATNVIDEO>
                    <video preload="yes" autoplay loop muted playsinline width="320" height="240" controls src="getvideo?c=<ATCAM>" type="video/mp4"> </video>
            </td>
        </tr>
    </table>
   
</body>
</html>