-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrass.html
More file actions
133 lines (119 loc) · 3.82 KB
/
grass.html
File metadata and controls
133 lines (119 loc) · 3.82 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Touch Some Grass - ARGON</title>
<style>
body {
margin: 0;
padding: 0;
background-color: #000000;
color: #ffffff;
font-family: 'Arial Black', Arial, sans-serif;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 100vh;
text-align: center;
line-height: 1.2;
overflow: hidden;
}
.message {
font-size: clamp(1.5rem, 5vw, 4rem);
font-weight: 900;
margin: 0.3em 0;
text-transform: uppercase;
letter-spacing: 0.1em;
}
.red {
color: #ff2222;
}
.green {
color: #00dd00;
}
.back-link {
position: fixed;
bottom: 20px;
right: 20px;
color: #444;
text-decoration: none;
font-size: 0.8rem;
padding: 8px 12px;
border: 1px solid #333;
border-radius: 20px;
transition: all 0.3s ease;
font-family: Arial, sans-serif;
font-weight: normal;
}
.back-link:hover {
color: #888;
border-color: #555;
}
</style>
</head>
<body>
<div id="messages-container">
<!-- Messages will be populated by JavaScript -->
</div>
<a href="google.com" onclick="window.history.back(); return false;" class="back-link">Back</a>
<script>
const messages = [
"TOUCH SOME GRASS",
"GO OUTSIDE",
"TIME TO STEP AWAY",
"BREATHE FRESH AIR",
"MOVE YOUR BODY",
"DISCONNECT TO RECONNECT",
"TAKE A WALK",
"SEE THE SKY",
"FEEL THE SUN",
"NATURE IS CALLING",
"LOOK UP FROM SCREEN",
"GET SOME VITAMIN D",
"STRETCH YOUR LEGS",
"CLEAR YOUR MIND",
"REAL LIFE AWAITS",
"STEP INTO REALITY",
"FIND SOME PEACE",
"RECONNECT WITH EARTH"
];
function getRandomColor() {
return Math.random() > 0.5 ? 'red' : 'green';
}
function displayRandomMessages() {
const container = document.getElementById('messages-container');
container.innerHTML = '';
// Show 3-4 random messages
const numMessages = Math.floor(Math.random() * 2) + 3;
const selectedMessages = [...messages]
.sort(() => 0.5 - Math.random())
.slice(0, numMessages);
selectedMessages.forEach((text, index) => {
const div = document.createElement('div');
div.className = `message ${getRandomColor()}`;
div.textContent = text;
container.appendChild(div);
});
}
// Display initial messages
displayRandomMessages();
// Prevent immediate back navigation
let canGoBack = false;
setTimeout(() => {
canGoBack = true;
document.querySelector('.back-link').style.color = '#666';
}, 5000);
document.querySelector('.back-link').addEventListener('click', function(e) {
if (!canGoBack) {
e.preventDefault();
this.textContent = 'Wait...';
setTimeout(() => {
this.textContent = 'Back';
}, 1000);
}
});
</script>
</body>
</html>