8m: Use addEventListener instead of window.onload
This commit is contained in:
parent
a6a3be1b98
commit
166b96f0b6
|
@ -140,7 +140,7 @@ li::before {
|
||||||
var next = ['https://titipi.org/8m/', 'https://constantvzw.org/8m/', 'https://varia.zone/8m/', 'https://anarchaserver.org/8m/', 'https://hub.vvvvvvaria.org/rosa/8m/', 'https://www.in-grid.io/8m/', 'https://systerserver.net/8m/', 'https://digitalcare.noho.st/site/8m/', 'https://drop.hackersanddesigners.nl/8m/', 'https://hangar.org/8m/', 'https://labekka.red/8m/', 'https://autodefensa.online/8m', 'https://donestech.net/8m/', 'https://data.coop/8m/'];
|
var next = ['https://titipi.org/8m/', 'https://constantvzw.org/8m/', 'https://varia.zone/8m/', 'https://anarchaserver.org/8m/', 'https://hub.vvvvvvaria.org/rosa/8m/', 'https://www.in-grid.io/8m/', 'https://systerserver.net/8m/', 'https://digitalcare.noho.st/site/8m/', 'https://drop.hackersanddesigners.nl/8m/', 'https://hangar.org/8m/', 'https://labekka.red/8m/', 'https://autodefensa.online/8m', 'https://donestech.net/8m/', 'https://data.coop/8m/'];
|
||||||
var colors = ["seashell", "beige", "honeydew", "lavenderblush", "whitesmoke", "azure", "mintcream", "magnolia"];
|
var colors = ["seashell", "beige", "honeydew", "lavenderblush", "whitesmoke", "azure", "mintcream", "magnolia"];
|
||||||
var bcolors = ["hotpink", "orange", "blue"];
|
var bcolors = ["hotpink", "orange", "blue"];
|
||||||
window.onload = function(){
|
addEventListener("load", function(){
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
top.location = next[Math.floor(Math.random()*next.length)];
|
top.location = next[Math.floor(Math.random()*next.length)];
|
||||||
}, 30000);
|
}, 30000);
|
||||||
|
@ -163,5 +163,5 @@ li::before {
|
||||||
|
|
||||||
acolorloop[x].style.color = bcolorToSet;
|
acolorloop[x].style.color = bcolorToSet;
|
||||||
|
|
||||||
}
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue