Difference between revisions of "Template:Queens Canada/Scripts"

m
m
Line 125: Line 125:
 
const wordTime = 2000;
 
const wordTime = 2000;
 
const changeWordTime = 250;
 
const changeWordTime = 250;
setTimeout(alterDisplayWord,wordTime); // Set the first time delay
+
//setTimeout(alterDisplayWord,wordTime); // Set the first time delay
updateWord(); // set the display word in the span element
+
//updateWord(); // set the display word in the span element
  
  
Line 142: Line 142:
 
 
 
         setTimeout(alterDisplayWord,changeWordTime);// call the function again after a delay and update the display word on the website
 
         setTimeout(alterDisplayWord,changeWordTime);// call the function again after a delay and update the display word on the website
         //updateWord();
+
         updateWord();
 
     }
 
     }
 
     else{ // if the word has been fully deleted or generated
 
     else{ // if the word has been fully deleted or generated

Revision as of 00:29, 10 July 2020