-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules.html
65 lines (62 loc) · 2.58 KB
/
rules.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rules Page</title>
<link rel="stylesheet" href="{{url_for('static', filename = 'styles/styles.css')}}" />
</head>
<style>
#orange-rules {
color: rgb(235, 135, 28);
}
</style>
<body>
<header class="rules-header">
{% include "navbar.html" %}
</header>
<main>
<div class="rules-container">
<div class="instructions">
<b><p class="title">Daily Game Instructions</p>
<ul>
<li>You will be given a picture taken somewhere on Princeton's campus</li>
<li>It is your job to zoom in on the map and place your marker on where you think the photographer was standing when taking the photo.</li>
<li>To get at least 1 point, you must at least be within 110 meters of the correct location. The closer you are, the more points you will receive!</li>
</ul></b>
<a href="/game">
<button class="rules-button">
<b>Play Daily Game!</b>
</button>
</a>
</div>
<div class="instructions">
<b><p class="title">Versus Game Instructions</p>
<ul>
<li>Challenge a friend to play against using their NetID <em>(Note: Both players must have played Tiger Spot before!)</em></li>
<li>Once both players accept the challenge invitation and hit "play", you and your opponent will be given 5 pictures to guess. The catch is now you will be under a 2 minute time limit per image, so guess before time runs out!</li>
<li>Once both players have finished guessing, your results will appear shortly to determine the winner!</li>
</ul></b>
<a href="/requests">
<button class="rules-button">
<b>Play Versus Game!</b>
</button>
</a>
</div>
</div>
</main>
<script>
window.addEventListener('scroll', function() {
var navbar = document.getElementById('navbar');
var sticky = navbar.offsetTop;
if (window.pageYOffset >= sticky) {
navbar.classList.add('sticky');
document.body.style.paddingTop = (navbar.offsetHeight - 100) + 'px'; // Add padding if extends beyond offset for sticky navbar
} else {
navbar.classList.remove('sticky');
document.body.style.paddingTop = '0'; // Reset padding
}
});
</script>
</body>
</html>