-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
68 lines (62 loc) · 1.82 KB
/
Copy pathindex.html
File metadata and controls
68 lines (62 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html>
<head>
<title>Digital-Tasbhi_Home</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="description"
content="Digital Tasbih Counter website where you can easily count, reset and track your any custom counting with a simple tap button interface.">
<meta name="robots" content="index, follow">
<meta name="author" content="Muhammad Umar Raza">
<link rel="stylesheet" href="style.css">
<link rel="icon" href="logo.png" />
</head>
<body>
<header>
<nav class="navbar">
<ul>
<a href="index.html" class="logo">
<svg width="30" height="37">
<rect x="2.5" y="2.5" width="25" height="33" rx="5" fill="none" stroke="white" stroke-width="3" />
<rect x="6.5" y="6.5" width="17" height="9" rx="2" fill="white" />
<circle cx="15" cy="25" r="6" fill="white" />
</svg>
</a>
<li><a href="index.html">Home</a></li>
<li><a href="help.html">Help</a></li>
<li><a href="about.html">About</a></li>
</ul>
</nav>
</header>
<div>
<h1>Counter </h1>
</div>
<div class="main">
<div class="full">
<div class="screen">
<span id="score">0</span>
</div>
<button class="tap" onclick="increase()">Tap</button>
<button class="reset" onclick="reset()">Reset
</button>
</div>
</div>
<footer class="footer">
<p>©2026 Muhammad Umar Raza | Digital-Tasbhi </p>
</footer>
<script>
let score = 0;
const maxScore = 99999;
function increase() {
if (score < maxScore) {
score++;
document.getElementById("score").innerText = score;
}
}
function reset() {
score = 0;
document.getElementById("score").innerText = score;
}
</script>
</body>
</html>