From 166b96f0b67ac1172d2491c14141004aaaa5bb31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reynir=20Bj=C3=B6rnsson?= Date: Thu, 23 Feb 2023 09:32:28 +0100 Subject: [PATCH] 8m: Use addEventListener instead of window.onload --- _pages/8m.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_pages/8m.md b/_pages/8m.md index 2858ba4..d806e7f 100644 --- a/_pages/8m.md +++ b/_pages/8m.md @@ -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; - } + });