no more broken timing

This commit is contained in:
jumping283 2023-01-24 10:05:38 -08:00 committed by GitHub
parent a057ecdb1a
commit c6fcd336ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 10 deletions

View File

@ -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) {