8m: Use addEventListener instead of window.onload

This commit is contained in:
Reynir Björnsson 2023-02-23 09:32:28 +01:00
parent a6a3be1b98
commit 166b96f0b6

View file

@ -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 colors = ["seashell", "beige", "honeydew", "lavenderblush", "whitesmoke", "azure", "mintcream", "magnolia"];
var bcolors = ["hotpink", "orange", "blue"];
window.onload = function(){
addEventListener("load", function(){
setTimeout(function(){
top.location = next[Math.floor(Math.random()*next.length)];
}, 30000);
@ -163,5 +163,5 @@ li::before {
acolorloop[x].style.color = bcolorToSet;
}
});
</script>