+ 6

Can i use it to create a loader

<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <div class="con"> <span></span> <span></span> <span></span> <span></span> <span></span> <span></span> <span></span> </div> </body> </html>

16th Mar 2019, 9:01 PM
Ighalo Destiny Aka @destinmedian
Ighalo Destiny Aka @destinmedian - avatar
5 ответов
+ 6
Pls help me on it
16th Mar 2019, 9:02 PM
Ighalo Destiny Aka @destinmedian
Ighalo Destiny Aka @destinmedian - avatar
+ 5
Delphi Sr. Nice Loader 👍 The second error comes from using the "onload" function as it waits for the whole document to load but your function may not have, remove it and replace "myFunction" with this: document.addEventListener("DOMContentLoaded" , function() { var myVar = setTimeout(showPage,­ 2000); } As for the second one, I'm not sure about that at the moment, let me try a bit more. EDIT: I guess the first error was at the "showPage" argument in the setTimeout function since it wasn't defined, so just moving around the position of those code blocks fixes that: https://code.sololearn.com/W6f8ZVOWL2PG/?ref=app Also it works fine with these in but just to note there was a closing style tag with no opening one, I think you wanted to use the class "display-container" instead of "display-comtainer" and you were missing one closing div tag. EDIT: No Problem 😊
17th Mar 2019, 12:42 AM
LynTon
LynTon - avatar
+ 2
://What type of loader 🤔🤔
16th Mar 2019, 9:32 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 2
This creates a loader but I'm having error with it. https://code.sololearn.com/WzH60df1WO17/?ref=app
16th Mar 2019, 10:07 PM
Jella
Jella - avatar
0
LynTon thanks for the correction.
19th Mar 2019, 6:10 AM
Jella
Jella - avatar