We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f14a4cd commit b0eb80cCopy full SHA for b0eb80c
index.html
@@ -8,5 +8,9 @@
8
<script src="loader.js"></script>
9
<link rel="stylesheet" href="loader.css" />
10
</head>
11
- <body></body>
+ <body>
12
+
13
+ <button onclick="Loader.open()">Open Loader</button>
14
15
+ </body>
16
</html>
loader.js
@@ -16,7 +16,7 @@ var Loader = {
this.loader.setAttribute('id', 'loader');
17
this.loader.classList.add('loader_website');
18
this.loader.innerHTML = this.html;
19
- this.body.append(this.loader);
+ this.body.appendChild(this.loader);
20
setTimeout(function () {
21
Loader.body.classList.add(Loader.cssClass);
22
}, 1);
0 commit comments