-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
118 lines (103 loc) · 3.34 KB
/
Copy pathindex.html
File metadata and controls
118 lines (103 loc) · 3.34 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
<!DOCTYPE html>
<html>
<head>
<title>God, who is that; god?</title>
<link id="favicon" rel="icon" type="image/png" href="">
<script>
let illusionDigit = Math.floor(Math.random() * 10);
let offset = -300; // start off-screen on left
let digitLocked = false;
function updateTabUI() {
const canvas = document.createElement("canvas");
canvas.width = 64;
canvas.height = 64;
const ctx = canvas.getContext("2d");
const now = new Date();
const timeText = now.toLocaleTimeString("en-GB", { hour12: false });
const fullText = `$${illusionDigit} ${timeText} God, who is that; god? `;
ctx.font = "12px 'American Typewriter'";
const textWidth = ctx.measureText(fullText).width;
// TITLE view
let visibleWindow = fullText + fullText;
const pos = Math.floor(offset / 8) % fullText.length;
const scrollTitle = visibleWindow.substring(pos, pos + 40);
document.title = scrollTitle;
if (offset > textWidth && !digitLocked) {
illusionDigit = Math.floor(Math.random() * 10);
offset = -canvas.width;
digitLocked = true;
}
if (offset <= 0) digitLocked = false;
ctx.clearRect(0, 0, canvas.width, canvas.height);
ctx.font = "12px 'American Typewriter'";
ctx.textBaseline = "middle";
for (let i = 0; i < fullText.length; i++) {
const char = fullText[i];
const hue = (now.getTime() / 20 + i * 12) % 360;
ctx.fillStyle = `hsl(${hue},100%,50%)`;
ctx.fillText(char, offset + i * 8, canvas.height / 2);
}
document.getElementById("favicon").href = canvas.toDataURL("image/png");
offset += 0.5;
requestAnimationFrame(updateTabUI);
}
updateTabUI();
</script>
<style>
body {
font-family: "American Typewriter", serif;
text-align: center;
margin: 0;
padding: 2em;
background: #000;
color: #eee;
}
#linkDisplay {
font-size: 16px;
margin-top: 40px;
cursor: pointer;
display: inline-block;
padding: 10px 20px;
border: 1px solid #666;
border-radius: 8px;
background: #222;
transition: all 0.3s ease;
}
#linkDisplay:hover {
background: #333;
}
</style>
</head>
<body>
<!-- Fake link (disclaimer style) -->
<div id="linkDisplay">vicmbugua.wixstudio.com/claude</div>
<script>
const linkDisplay = document.getElementById("linkDisplay");
const fakeLink = "https://static.wixstatic.com/media/d2a1c9_7bb3bbce8cee4050944572a6b1416317~mv2.jpg";
const realLink = "https://vicmbugua.wixstudio.com/claude";
linkDisplay.addEventListener("click", () => {
let steps = [
"Opening " + fakeLink + " …",
"Loading page …",
"Redirecting …",
"Final link: " + realLink
];
let i = 0;
function step() {
if (i < steps.length) {
linkDisplay.textContent = steps[i];
i++;
setTimeout(step, 1000);
} else {
// Instead of embedding, either show link or auto-navigate
// Option A: just show it as text
linkDisplay.innerHTML = `<a href="${realLink}" target="_blank">${realLink}</a>`;
// Option B (uncomment to auto-redirect):
// window.location.href = realLink;
}
}
step();
});
</script>
</body>
</html>