-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex_broken.html
More file actions
169 lines (140 loc) · 5.65 KB
/
index_broken.html
File metadata and controls
169 lines (140 loc) · 5.65 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/png" href="/assets/pixelrocket.png">
<meta charset="UTF-8">
<title>Home | valooost</title>
<style>
html, body {
height: 100%;
}
body {
font-family: sans-serif;
text-align: center;
background: #f8f8f8;
margin: 0;
padding-top: 50px;
cursor: url('/assets/pixel.cur'), default;
}
a {
cursor: url('/assets/link.cur'), pointer;
}
.link-button {
display: block;
color: white;
text-decoration: none;
font-size: 1.1em;
border-radius: 10px;
padding: 15px 30px;
margin: 20px auto;
width: 220px;
background: #004d00;
transition: background 0.3s, transform 0.1s;
cursor: url('/assets/link.cur'), pointer;
}
.link-button:hover {
background: #006600;
transform: scale(0.95);
}
</style>
</head>
<body>
<h1 style="color:#004d00; font-size:50px;">Welcome to my Website!</h1>
<p style="font-size:25px">Hi, I'm valooost!</p>
<p style="font-size:25px">This is a simple website to show some of my projects and interests.</p>
<p style="font-size:25px">Feel free to explore and contact me if you have any questions!</p>
<p style="font-size:25px">Thanks for visiting!<br> </p>
<p style="font-size:25px">Projects:</p>
<a href="https://valooost.is-a.dev/robux" class="link-button" target="_blank">Need some Robux?</a>
<a href="https://valooost.is-a.dev/dumb-facts/" class="link-button" target="_self">Fun facts for conversations</a>
<a href="https://valooost.is-a.dev/memes" class="link-button" target="_self">Free Memes!</a>
<p style="font-size:25px"> <br> </p>
<!-- Visitor Counter -->
<div style="margin: 30px 0; padding: 15px; background: #e8e8e8; border-radius: 10px; max-width: 300px; margin: 30px auto;">
<h3 style="color: #004d00; margin: 0 0 10px 0;">Information base</h3>
<p style="font-size: 20px; margin: 0; color: #004d00;">
👥 <span id="visitorCount">Loading...</span> visitors
</p>
<p> <br> </p>
<p style="font-size: 12px; margin: 5px 0 0 0; color: #666;">
You are visitor #<span id="currentVisitor">...</span>
</p>
<h3 style="color: #004d00; margin: 0 0 10px 0;">Contact me via Discord: valooost</h3>
<p> <br> </p>
<p style="font-size:15px">Copyright infringement?</p>
<a href="https://github.com/valooost/valooost.github.io/discussions/6" class="link-button" target="_self">Copyright Discussion</a>
<script>
// REAL VISITOR COUNTER - genuine visits only, no fake numbers
async function updateVisitorCounter() {
const countElement = document.getElementById('visitorCount');
const currentElement = document.getElementById('currentVisitor');
// Method 1: Try CountAPI with proper error handling
try {
console.log('Fetching REAL visitor count...');
const response = await fetch('https://api.countapi.xyz/hit/valooost.github.io/real-visits');
if (response.ok) {
const data = await response.json();
console.log('Real visitor data:', data);
if (data && typeof data.value === 'number') {
countElement.textContent = data.value.toLocaleString();
currentElement.textContent = data.value;
console.log('✅ REAL visitor count loaded:', data.value);
return;
}
} else {
console.log('CountAPI HTTP error:', response.status, response.statusText);
}
} catch (error) {
console.log('CountAPI network error:', error.message);
}
// Method 2: Try alternative working API - visitor-counter.vercel.app
try {
console.log('Trying alternative real counter API...');
const response = await fetch('https://visitor-counter.vercel.app/api/count?site=valooost.github.io');
if (response.ok) {
const data = await response.json();
console.log('Alternative API data:', data);
if (data && typeof data.count === 'number') {
countElement.textContent = data.count.toLocaleString();
currentElement.textContent = data.count;
console.log('✅ Alternative API working:', data.count);
return;
}
}
} catch (error) {
console.log('Alternative API failed:', error.message);
}
// Method 3: Try simple increment counter (still real visits)
try {
console.log('Using simple real counter...');
const response = await fetch('https://api.countapi.xyz/update/valooost/simple-counter/1');
if (response.ok) {
const data = await response.json();
if (data && typeof data.value === 'number') {
countElement.textContent = data.value.toLocaleString();
currentElement.textContent = data.value;
console.log('✅ Simple counter working:', data.value);
return;
}
}
} catch (error) {
console.log('Simple counter failed:', error.message);
}
// Only if ALL APIs fail - show clear error message
console.log('❌ All real counter APIs failed');
countElement.textContent = 'Loading...';
currentElement.textContent = '?';
// Retry after 10 seconds
setTimeout(() => {
console.log('� Retrying real counter APIs...');
updateVisitorCounter();
}, 10000);
}
// Initialize counter when page loads
document.addEventListener('DOMContentLoaded', function() {
console.log('Page loaded, initializing stable counter...');
updateVisitorCounter();
});
</script>
</body>
</html>