-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-counter.html
More file actions
37 lines (32 loc) · 1.25 KB
/
test-counter.html
File metadata and controls
37 lines (32 loc) · 1.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Counter Test</title>
</head>
<body>
<h1>Counter Test Page</h1>
<p>Fixed Base Count: <span id="baseCount">Loading...</span></p>
<p>Current Global Count: <span id="globalCount">Loading...</span></p>
<script>
// Test the fixed base count
const FIXED_BASE_COUNT = 3847291;
document.getElementById('baseCount').textContent = FIXED_BASE_COUNT;
// Test if the main script is working
setTimeout(() => {
if (typeof globalClickCount !== 'undefined') {
document.getElementById('globalCount').textContent = globalClickCount;
// Check script version
if (typeof SCRIPT_VERSION !== 'undefined') {
document.getElementById('globalCount').textContent += ` (${SCRIPT_VERSION})`;
}
} else {
document.getElementById('globalCount').textContent = 'Main script not loaded - NEED TO UPLOAD script.js!';
}
}, 2000);
</script>
<!-- Load main script -->
<script src="script.js"></script>
</body>
</html>