Skip to content

Commit

Permalink
refactor: Improved browser compatibility list
Browse files Browse the repository at this point in the history
  • Loading branch information
Matheus2212 committed Jun 3, 2021
1 parent f14a4cd commit b0eb80c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@
<script src="loader.js"></script>
<link rel="stylesheet" href="loader.css" />
</head>
<body></body>
<body>

<button onclick="Loader.open()">Open Loader</button>

</body>
</html>
2 changes: 1 addition & 1 deletion loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var Loader = {
this.loader.setAttribute('id', 'loader');
this.loader.classList.add('loader_website');
this.loader.innerHTML = this.html;
this.body.append(this.loader);
this.body.appendChild(this.loader);
setTimeout(function () {
Loader.body.classList.add(Loader.cssClass);
}, 1);
Expand Down

0 comments on commit b0eb80c

Please sign in to comment.