-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconservatory.html
More file actions
262 lines (226 loc) · 6.23 KB
/
conservatory.html
File metadata and controls
262 lines (226 loc) · 6.23 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<!-- conservatory.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon-32x32.png">
<title>Online Clue Game - Conservatory</title>
<style>
/* CSS styles for the page */
html, body {
height: 100%;
}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-image: url('./images/conservatory.gif');
background-size: auto;
background-repeat: repeat;
background-position: center;
font-weight: 600;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
color: white;
}
nav {
background-color: #333;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
flex-wrap: wrap; /* Allow wrapping for smaller screens */
}
li {
margin: 0 10px;
}
li a {
color: #fff;
text-decoration: none;
padding: 10px;
transition: background-color 0.3s;
}
li a:hover {
background-color: #555;
}
h1, p {
text-align: center;
margin: 20px;
}
.dice-container {
text-align: center;
margin-top: 50px;
}
.dice {
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 10px;
}
.dice-square {
display: inline-block;
width: 60px;
height: 60px;
background-color: #fff;
border: 1px solid #000;
border-radius: 5px;
margin: 5px;
font-size: 24px;
line-height: 60px;
text-align: center;
cursor: pointer;
}
.dice-button {
font-size: 18px;
padding: 10px 20px;
background-color: #333;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
}
.attribution {
font-size: 11px;
text-align: center;
margin-top: 50px;
}
.attribution a {
color: hsl(228, 45%, 44%);
text-decoration: none;
}
.center {
text-align: center;
margin-top: 20px;
}
/* Media Queries for Responsiveness */
@media (max-width: 768px) {
h1, p {
margin: 10px; /* Reduce margin for smaller screens */
}
.dice-container {
margin-top: 30px; /* Reduce margin */
}
.dice-square {
width: 50px; /* Smaller dice squares */
height: 50px;
font-size: 20px; /* Adjust font size for smaller screens */
}
.dice-button {
padding: 8px 16px; /* Smaller button */
}
.attribution {
margin-top: 30px; /* Reduce margin */
}
}
@media (max-width: 480px) {
.dice-square {
width: 40px; /* Even smaller dice squares */
height: 40px;
font-size: 18px; /* Smaller font size */
}
.dice-button {
padding: 6px 12px; /* Smaller button padding */
}
}
</style>
</head>
<body>
<audio src="paintingtherosesred.mp3" autoplay loop></audio>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="kitchen.html">Enter Kitchen</a></li>
<li><a href="ballroom.html">Enter Ballroom</a></li>
<li><a href="conservatory.html">Enter Conservatory</a></li>
<li><a href="dining-room.html">Enter Dining Room</a></li>
<li><a href="billiard-room.html">Enter Billiard Room</a></li>
<li><a href="library.html">Enter Library</a></li>
<li><a href="study.html">Enter Study</a></li>
<li><a href="hall.html">Enter Hall</a></li>
<li><a href="lounge.html">Enter Lounge</a></li>
<li><a href="cellar.html">Enter Cellar</a></li>
</ul>
</nav>
<h1>Conservatory</h1>
<p>Welcome to the exquisite conservatory! This sunlit room is filled with lush greenery, beautiful flowers, and the soothing sound of water features. The glass walls allow you to enjoy the surrounding garden while being sheltered from the elements.</p>
<p>The conservatory is a serene oasis where you can relax and immerse yourself in nature's beauty. The carefully curated collection of plants creates a vibrant and peaceful atmosphere. It's the perfect place for contemplation or engaging in lively conversations.</p>
<p>Many social events have taken place in the conservatory, from elegant tea parties to intimate musical performances. The acoustics of the room lend themselves to the enchanting melodies of live musicians, adding an extra touch of magic to any gathering.</p>
<div class="center">
<button id="start-button">Start Audio</button>
</div>
<div class="dice-container">
<div class="dice">
<div class="dice-square" id="dice1">1</div>
<div class="dice-square" id="dice2">1</div>
</div>
<button class="dice-button" id="roll-button">Roll Dice</button>
</div>
<script>
// JavaScript to handle dice rolling
const dice1 = document.getElementById('dice1');
const dice2 = document.getElementById('dice2');
const rollButton = document.getElementById('roll-button');
// Dice rolling event listener
rollButton.addEventListener('click', () => {
const diceValue1 = Math.floor(Math.random() * 6) + 1;
const diceValue2 = Math.floor(Math.random() * 6) + 1;
dice1.textContent = diceValue1;
dice2.textContent = diceValue2;
// Calculate the sum of the dice values
const diceSum = diceValue1 + diceValue2;
// Determine the room based on the dice sum
let room = '';
switch (diceSum) {
case 2:
room = 'ballroom.html';
break;
case 3:
room = 'conservatory.html';
break;
case 4:
room = 'dining-room.html';
break;
case 5:
room = 'billiard-room.html';
break;
case 6:
room = 'library.html';
break;
case 7:
room = 'study.html';
break;
case 8:
room = 'hall.html';
break;
case 9:
room = 'lounge.html';
break;
case 10:
room = 'cellar.html';
break;
case 11:
room = 'kitchen.html';
break;
}
// Redirect to the corresponding room
if (room) {
window.location.href = room;
}
});
const audio = document.querySelector('audio'); // Select the audio element using its tag name
const startButton = document.getElementById('start-button');
startButton.addEventListener('click', () => {
if (audio.paused) {
audio.play();
startButton.textContent = 'Pause Audio';
} else {
audio.pause();
startButton.textContent = 'Start Audio';
}
});
</script>
</body>
</html>