-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLemmClicker.html
More file actions
166 lines (138 loc) · 4.13 KB
/
LemmClicker.html
File metadata and controls
166 lines (138 loc) · 4.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico" />
<meta charset="utf-8" />
<title>LemmClicker</title>
<meta name="application-name" content="LemmClicker" />
<link href="https://fonts.googleapis.com/css?family=B612" rel="stylesheet" media="none" onload="if (this.media != 'all') this.media='all';" /> <!-- this is a trick to load CSS asynchronously. -->
<style type="text/css">
html {
background: var(--page-margin, #020009);
overflow-x: hidden;
font-size: large;
font-family: 'B612', sans-serif;
line-height: 1.3;
color: var(--primary-text, white);
}
h1 {
font-size: 1.7rem;
text-align: center;
margin-top: 0.5em;
margin-bottom: 0.5em;
-webkit-text-stroke-width: 0;
color: var(--mod-title, #fff570);
}
.navbartitle {
color: #f2f3f5;
background-color: #00000000;
text-align: center;
font-family: 'B612', sans-serif;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
white-space: nowrap;
position: relative;
transform: none;
left: auto;
top: auto;
text-align: center;
white-space: nowrap;
}
.logo-wrapper {
position: relative;
display: inline-block;
}
.logo {
position: relative;
z-index: 2;
transition: transform 0.3s ease;
}
.logo-glow {
position: absolute;
top: 0;
left: 0;
z-index: 1;
filter: blur(8px) brightness(1.5);
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
}
.logo-wrapper:hover .logo {
transform: scale(1.1);
}
.logo-wrapper:hover .logo-glow {
opacity: 1;
}
button {
margin-top: 15px;
padding: 10px 15px;
border: 0;
border-radius: 100px;
background-color: #fff570;
color: #020009;
font-weight: bold;
transition: all 0.5s;
-webkit-transition: all 0.5s;
cursor: pointer;
}
button:hover {
box-shadow: 0 0 10px #fff57050;
transform: scale(1.1);
}
button:active {
background-color: #e6da4c;
transition: all 0.25s;
-webkit-transition: all 0.25s;
box-shadow: none;
transform: scale(0.98);
}
.fade-in {
opacity: 0;
transition: opacity 0.5s ease-in;
}
.nosel {
user-select: none;
}
.shopitem {
margin-top: 5px;
padding: 10px 10px;
border: 0;
border-radius: 10px;
background-color: #fff570;
color: #020009;
font-weight: bold;
transition: all 0.5s;
-webkit-transition: all 0.5s;
cursor: pointer;
text-align: center;
}
</style>
</head>
<audio id="click1" src="media/click1.mp3" type="audio/mpeg"></audio>
<audio id="click2" src="media/click2.mp3" type="audio/mpeg"></audio>
<audio id="click3" src="media/click3.mp3" type="audio/mpeg"></audio>
<h1>This is a WIP, do not expect a whole bunch. This is just for testing. Nothing works yet lmao</h1>
<nav class="navbar">
<div class="navbartitle">
<h1><font id="LemmClicker">LemmBox</font><span id="goldboxPlant" style="display: inline; color:#62a13b"></span></h1>
<button class="shopitem" id="tree" ><img src="media/Tree.png" width="64px" height="64px">Tree + 0.1 per sec - Price: <span>10 Lemons</span></button>
<button class="shopitem" id="lemonTree" ><img src="media/LemonTree.png" width="64px" height="64px">Tree + 1 per sec - Price: <span>100 Lemons</span></button>
</div>
</nav>
<script type="text/javascript">
const plants = [
`<div class="logo-wrapper">
<img src="theme_resources/LemmBoxLogo.png" alt="LemmBox" class="logo lemon nosel" height="64px" onclick="lemonClicker(event)">
<img src="theme_resources/LemmBoxLogo.png" alt="" class="logo-glow lemon nosel" height="64px" onclick="lemonClicker(event)" aria-hidden="true">
</div>`
];
const plant = plants[Math.floor(Math.random() * plants.length)];
// Use innerHTML for actual HTML, textContent otherwise
if (plant.includes("<") && plant.includes(">"))
document.getElementById("goldboxPlant").innerHTML = plant;
</script>
<script src="lemonclicker.js"></script>
</body>
</html>