-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
142 lines (140 loc) · 5.8 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/litera/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<title>Clicking your life away</title>
</head>
<body style="user-select: none;">
<div class="" style="width: 35%; height: 700px; float: left;">
<div class="search card card-body" id="tickets1_container">
<h1>TICKETS</h1>
<div id="pos1" style="height: 90px;"></div>
<div id="pos2" style="height: 90px;"></div>
<div id="pos3" style="height: 90px;"></div>
<div id="pos4" style="height: 90px;"></div>
<div id="pos5" style="height: 90px;"></div>
<div id="pos6" style="height: 90px;"></div>
<div id="pos7" style="height: 90px;"></div>
<div id="pos8" style="height: 90px;"></div>
</div>
<br>
</div>
<div class="" style="width: 30%; height: 700px; float: left;">
<div class="search card card-body">
<h1>FULL STATUS</h1>
</div>
<div class="search card card-body" style="align-items: center; background: transparent;">
<img src="" id="image-status" style="height: 400px; z-index: -1;"/>
</div>
<div class="text-center">
<button id="pause_button" type="button" class="btn btn-primary" style="width: 100px;">PAUSE</button>
<button id="mute_button" type="button" class="btn btn-secondary" style="width: 100px;">MUTE</button>
</div>
<div class="alert alert-primary" id="pause-alert" style="display: none;">
GAME IS PAUSED
</div>
<div class="alert alert-success" id="win-alert" style="display: none;">
YOU HAVE REACHED NIRVANA! YOU WON AT LIFE.
</div>
<div class="alert alert-danger" id="lost-alert" style="display: none;">
YOU LOSE:
</div>
<div class="alert alert-danger" id="tickets-full" style="display: none;">
TICKETS ARE PILING UP! YOU CAN'T ACCEPT NEW ONES
</div>
<div class="text-center">
<button id="restart-button" type="button" class="btn btn-danger" style="display: none; width: 100px;">RESTART</button>
</div>
<br>
<div >
<div class="text-center">HAPPINESS
<i class="fa fa-2x fa-smile-o" style="color: green;" aria-hidden="true"></i>
</div>
<div style="height: 20px; border: 1px solid black; border-radius: 5px; position: relative; margin: 0px 10px">
<span id="player_happiness_text" style="
position: absolute;
width: 100%;
height: 100%;
color: black;
font-size: 12px;
text-align: center;
"></span>
<div id="player_happiness" style="height: 100%; width: 100%; background-color: green;"></div>
</div>
</div>
<div>
<div class="text-center">ANXIETY
<i class="fa fa-2x fa-heartbeat" style="color: red;" aria-hidden="true"></i>
</div>
<div style="height: 20px; border: 1px solid black; border-radius: 5px; position: relative; margin: 0px 10px">
<span id="player_anxiety_text" style="
position: absolute;
width: 100%;
height: 100%;
color: black;
font-size: 12px;
text-align: center;
"></span>
<div id="player_anxiety" style="height: 100%; width: 100%; background-color: red;"></div>
</div>
</div>
</div>
<div class="" style="width: 35%; height: 700px; float: left;">
<div class="search card card-body" id="tickets2_container">
<h1>TICKETS</h1>
<div id="pos9" style="height: 90px;"></div>
<div id="pos10" style="height: 90px;"></div>
<div id="pos11" style="height: 90px;"></div>
<div id="pos12" style="height: 90px;"></div>
<div id="pos13" style="height: 90px;"></div>
<div id="pos14" style="height: 90px;"></div>
<div id="pos15" style="height: 90px;"></div>
<div id="pos16" style="height: 90px;"></div>
</div>
<br>
</div>
<script src="main.js" type="module"></script>
<style>
.ticket {
animation: openticket 1500ms ease;
}
.ticket--closing {
animation: closeticket 750ms ease;
}
@keyframes openticket {
from {
opacity: 0;
transform: scale(0);
background: lightblue;
}
50% {
opacity: 1;
transform: scale(1);
}
80% {
background: lightblue;
}
to {
background: white;
}
}
@keyframes closeticket {
from {
opacity: 1;
transform: scale(1);
background: white;
}
to {
opacity: 0;
transform: scale(0);
background: lightgreen;
}
}
</style>
</body>
</html>