From b65ae0ab71ccb257f98f24e24246a7b33e3d1a89 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Thu, 5 Aug 2021 16:18:16 +0200 Subject: [PATCH] ENHANCEMENT: backgrounds are so overrated --- assets/js/page.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/assets/js/page.js b/assets/js/page.js index f68f24a..8fb6b36 100644 --- a/assets/js/page.js +++ b/assets/js/page.js @@ -2,7 +2,6 @@ document.addEventListener("readystatechange", event => { if(event.target.readyState === 'complete') { initOverflow(); initExternalLinks(); - initBackground(); } }); @@ -21,8 +20,4 @@ function initExternalLinks() { }) } -function initBackground() { - let text = document.querySelector('.background .background-content').innerHTML; - document.querySelector('.background .background-content').innerHTML = text + text + text; -} const isExternalURL = (url) => new URL(url).origin !== location.origin; \ No newline at end of file