-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
96 lines (80 loc) · 2.51 KB
/
Copy pathscript.js
File metadata and controls
96 lines (80 loc) · 2.51 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
let hearts = 0;
let secretClicks = 0;
/* ===== LOCK SCREEN ===== */
const code = "070507";
let i = 0;
function typeCode() {
if (i < code.length) {
document.getElementById("code").innerText += code[i];
i++;
setTimeout(typeCode, 450);
} else {
setTimeout(unlock, 700);
}
}
function unlock() {
document.getElementById("lockscreen").style.opacity = "0";
setTimeout(() => {
document.getElementById("lockscreen").style.display = "none";
document.getElementById("app").classList.remove("hidden");
}, 500);
}
/* ===== HEARTS ===== */
function addHeart() {
hearts++;
document.getElementById("heartCount").innerText = hearts;
document.getElementById("collection").innerText = hearts;
}
/* ===== COMPLIMENTS (LESS REPETITIVE + MORE NATURAL) ===== */
const compliments = [
"You don’t even try and still stand out.",
"I like how your presence feels without effort.",
"You’re the kind of person people remember randomly.",
"Talking to you is dangerously easy.",
"You’ve got that calm kind of pretty I can’t ignore.",
"You make normal days feel slightly different.",
"I don’t know how to explain it, but you’re stuck in my head.",
"You’re not loud about it, but you’re interesting."
];
function newCompliment() {
const c = compliments[Math.floor(Math.random() * compliments.length)];
document.getElementById("complimentBox").innerText = c;
}
/* ===== NOTES ===== */
const notes = [
"I keep noticing how often you cross my mind for no reason.",
"It’s weird how someone can feel familiar so quickly.",
"I think I started paying attention without meaning to."
];
function loadNotes() {
const box = document.getElementById("notes");
notes.forEach(n => {
const p = document.createElement("p");
p.innerText = n;
box.appendChild(p);
});
}
/* ===== 👀 SECRET SYSTEM UPGRADED ===== */
const secretMessages = [
"me when ayla exists",
"me whenever u flirt with me",
"me when i see ur name in my notifications",
"me when u send me a message",
"me when u say hi",
];
function secretTap() {
secretClicks++;
if (secretClicks === 2) {
const msg = document.getElementById("secretMsg");
const pick = secretMessages[Math.floor(Math.random() * secretMessages.length)];
msg.innerText = pick;
msg.style.display = "block";
setTimeout(() => {
msg.style.display = "none";
}, 3000);
secretClicks = 0;
}
}
/* START */
typeCode();
loadNotes();