From c6fcd336ed3e0da9b64bcde5a7984bf1e64dc375 Mon Sep 17 00:00:00 2001 From: jumping283 <77177771+jumping283@users.noreply.github.com> Date: Tue, 24 Jan 2023 10:05:38 -0800 Subject: [PATCH] no more broken timing --- sheep/3.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/sheep/3.js b/sheep/3.js index 5cb3dd2..92d63cd 100644 --- a/sheep/3.js +++ b/sheep/3.js @@ -1,16 +1,6 @@ -function wait(ms){ - var start = new Date().getTime(); - var end = start; - while(end < start + ms) { - end = new Date().getTime(); - } -} document.addEventListener("DOMContentLoaded", function(e) { var homeButton = document.createElement("sheep-btn"); homeButton.setAttribute('tabindex', 0); - console.log('before'); - wait(3000); //7 seconds in milliseconds - console.log('after'); homeButton.setAttribute('aria-label', 'Go to SheepTester directory'); homeButton.setAttribute('role', 'button'); homeButton.addEventListener('click', function(e) {