-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
273564c
commit 630c25f
Showing
4 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
body { | ||
background-image: url("web3.jpg"); | ||
background-size: cover; | ||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; | ||
font-weight: bold; | ||
text-align: center; | ||
} | ||
|
||
h1 { | ||
margin-top: 50px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
h2 { | ||
font-size: 50px; | ||
margin-top: 0; | ||
margin-bottom: 20px; | ||
} | ||
|
||
button { | ||
border: none; | ||
padding-top: 10px; | ||
padding-bottom: 10px; | ||
color: white; | ||
font-weight: bold; | ||
width: 200px; | ||
margin-bottom: 5px; | ||
border-radius: 5px; | ||
} | ||
|
||
#increment-btn { | ||
background: darkred; | ||
} | ||
|
||
#save-btn { | ||
background: darkgreen; | ||
margin-bottom: 50px; | ||
} | ||
|
||
#saved-el{ | ||
font-size: 40px; | ||
margin-top: 100px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="stylesheet" href="index.css" /> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
<h1>Web3Bridge Counter:</h1> | ||
<h2 id="count">0</h2> | ||
<button id="increment-btn" onclick="increment()">INCREMENT</button> | ||
<button id="save-btn" onclick="save()">SAVE</button> | ||
<p id="saved-el">Previous Entries : </p> | ||
|
||
<script src="index.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
let countEL = document.getElementById("count"); | ||
let savedEl = document.getElementById("saved-el"); | ||
let count = 0; | ||
|
||
function increment() { | ||
count += 1; | ||
countEL.innerHTML = count; | ||
} | ||
|
||
function save() { | ||
let countStr = count + " - "; | ||
savedEl.innerHTML += countStr; | ||
countEL.innerHTML = 0; | ||
count = 0; | ||
} |