-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript-test.html
More file actions
53 lines (46 loc) · 2.07 KB
/
script-test.html
File metadata and controls
53 lines (46 loc) · 2.07 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Script Load Test</title>
</head>
<body>
<h1>Script Load Test</h1>
<p>Fixed Base Count: <span id="baseCount">Loading...</span></p>
<p>Current Global Count: <span id="globalCount">Loading...</span></p>
<p>Script Status: <span id="scriptStatus">Loading...</span></p>
<p>Script Version: <span id="scriptVersion">Loading...</span></p>
<script>
// Test the fixed base count
const FIXED_BASE_COUNT = 3847291;
document.getElementById('baseCount').textContent = FIXED_BASE_COUNT;
document.getElementById('scriptStatus').textContent = 'Waiting for script...';
// Test if the main script is working
function checkScript() {
if (typeof globalClickCount !== 'undefined') {
document.getElementById('globalCount').textContent = globalClickCount;
document.getElementById('scriptStatus').textContent = '✅ Script loaded successfully!';
// Check script version
if (typeof SCRIPT_VERSION !== 'undefined') {
document.getElementById('scriptVersion').textContent = SCRIPT_VERSION;
} else {
document.getElementById('scriptVersion').textContent = 'Version not found';
}
} else {
document.getElementById('globalCount').textContent = '❌ Main script not loaded';
document.getElementById('scriptStatus').textContent = '❌ Script failed to load';
document.getElementById('scriptVersion').textContent = 'N/A';
}
}
// Check after script load
setTimeout(checkScript, 3000);
// Also check when window loads
window.addEventListener('load', function() {
setTimeout(checkScript, 1000);
});
</script>
<!-- Load main script -->
<script src="script.js"></script>
</body>
</html>