Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mimiprosper authored Aug 8, 2023
1 parent 273564c commit 630c25f
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 0 deletions.
43 changes: 43 additions & 0 deletions index.css
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;
}
18 changes: 18 additions & 0 deletions index.html
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>
15 changes: 15 additions & 0 deletions index.js
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;
}
Binary file added web3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 630c25f

Please sign in to comment.