Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<p>First paragraph.</p>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>First paragraph.</p>
<p>Second paragraph.</p>
<p>This is a paragraph.</p>
</body>
</html>
10 changes: 6 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
let tog = document.getElementById("tog");
tog.addEventListener("click", function() {
tog.addEventListener("click", function () {
tog.classList.toggle("m-fadeOut");
});


function Timeout() {
setTimeout(function() {
setTimeout(function () {
tog.classList.toggle("btnTest");
}, 500) }
}, 500);
}

console.log(tog);