-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
156 lines (129 loc) · 2.85 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Coworking Simulator</title>
<script type="module" src="game.js"></script>
<style>
h1 {
text-align: center;
}
.title {
font-weight: bold;
}
body {
width: 80%;
margin-left: auto;
margin-right: auto;
background-color: #333;
color: #bbb;
}
dialog {
background-color: #333;
color: #bbb;
border: 2px solid white;
border-radius: 6px;
min-width: 250px;
min-height: 75px;
text-align: center;
}
dialog #veil {
background-color: rgba(0, 0, 0, 0.4);
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
}
dialog form {
display: flex;
flex-direction: column;
justify-content: center;
gap: 20px;
}
dialog form #title {
font-weight: bold;
}
a:visited {
color: rgb(173, 160, 203);
}
.coworkers {
background-color: #222;
padding: 10px;
}
.title.coworkers {
background-color: #222;
padding-left: unset;
}
.person {
background-color: #333;
margin: 0;
margin-bottom: 10px;
padding: 10px;
}
.emoji {
font-size: 30px;
top: 4px;
position: relative;
}
input[type=button] {
border: white 1px solid;
background-color: #333;
color: #bbb;
padding: 8px;
}
</style>
</head>
<body>
<h1>Coworking Simulator</h1>
<div id="main">
<p>
<span class="title">Lieu: </span>
<span id="place">La maison</span>
</p>
<p>
<span class="title">Capacité: </span>
<span id="capacity">n/Max</span>
</p>
<p>
<span class="title">Trésorerie: </span>
<span id="money">0€</span>
</p>
<div class="coworkers" id="coworkers">
<p>
<span class="title">Coworkers:</span>
</p>
<p class="person" id="coworker0">poste 0</p>
<input type="button" id="add_coworker">
</div>
</p>
</div>
<div id="footer">
<p style="float: left;">
<span>Version 0.3.0</span>
<span>Dernière update 09/03/2024</span>
</p>
<p style="float: right;">
<span>Copyright <a href="https://abauchu.net">Alexis Bauchu</a> 2022-2023</span>
</p>
</div>
<dialog id="ok_dialog">
<div id="veil"></div>
<form method="dialog">
<div id="title"></div>
<div id="message"></div>
<input type="submit" id="ok_button" value="OK">
</form>
</dialog>
<dialog id="ok_cancel_dialog">
<div id="veil"></div>
<form method="dialog">
<div id="title"></div>
<div id="message"></div>
<input type="submit" id="ok_button" value="OK">
<input type="submit" id="cancel_button" value="Annuler">
</form>
</dialog>
</body>
</html>