File size: 4,497 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
<!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>ATUALLI MOSAICO WEB</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;
        }

        .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>ATUALLI MOSAICO</h1>
    </div>
    <div class="row">
        <ATMATRIZ>
    </div>


    <script async>

        window.onscroll = function () { myFunction() };

        var header = document.getElementById("myDIV");
        var sticky = header.offsetTop;

        function myFunction() {
            if (window.pageYOffset > sticky) {
                header.classList.add("sticky");
            } else {
                header.classList.remove("sticky");
            }
        }
       // 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");
}

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
    {
        setTimeout(gogo, to * 100);
    }


}

gogo();


function setOutput(classref,porta,valor) {
    var d = new Date(),
        dummy = d.getTime(),
	    i = 0,
	    pix = document.images;
    for (; i < pix.length; i++) {
        if (pix[i].className !== classref)
        { 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');
        }
    }
}

    </script>
</body>

</html>