-
Notifications
You must be signed in to change notification settings - Fork 0
/
play.html
133 lines (120 loc) · 4.4 KB
/
play.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
<html>
<head lang="en">
<meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="full-screen" content="yes"/>
<meta name="screen-orientation" content="portrait"/>
<title>Fortnight Challenge | Wissenaire</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" type="text/css" href="preloader/style.css">
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css'>
<style type="text/css">
body{
height: auto;
background: url("images/backgroung.jpg") no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: 100%;
}
#play{
margin-top: 58vh;
}
button {
margin-left: auto;
margin-right: auto;
display: block;
border: none;
font-size: 15px;
padding: 10px 30px;
border-radius: 2em;
background-color: #f8c901;
color: #ffffff;
width: 140px;
}
button:hover{
box-shadow: 0 0 2em rgba(255,255,255,0.3);
}
button:active{
transform: scale(0.9) translateY(10%);
transition-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
}
</style>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>
<body>
<div class="preloader">
<div id="particles-background" class="vertical-centered-box"></div>
<div id="particles-foreground" class="vertical-centered-box"></div>
<div class="vertical-centered-box" style="position: absolute; top: 0px;">
<div class="content">
<div class="loader-circle"></div>
<div class="loader-line-mask">
<div class="loader-line"></div>
</div>
<svg height="29px" viewBox="0 0 54 29" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path d="M0 5 L11.31 5 L19.31 13 L27.31 5 L35.31 13 L43.31 5 L54.62 5 L35.31 29 L27.31 21 L19.31 29 Z" fill="#FFFFFF"></path>
</svg>
</div>
</div>
</div>
<div id="play">
<button class="play" onclick="startGame()" id="playb">Play</button><br>
<button class="play" onclick="share()" id="share">Share</button>
</div>
<div id="grid" class="hidden">
<div id="stars"></div>
<div id="stars2"></div>
<div id="stars3"></div>
<div id="quiz">
<p id="progress" style="color: #ffffff;">Question x of y</p>
<p id="question"></p>
<div class="buttons" style="">
<button id="btn0"><span id="choice0"></span></button>
<button id="btn1"><span id="choice1"></span></button>
<button id="btn2"><span id="choice2"></span></button>
<button id="btn3"><span id="choice3"></span></button>
</div>
<footer style="position: absolute; top: 90vh; margin-left: 0; color: #ffffff;">
<p id="footer">Developed by Team WISSENAIRE </p>
</footer>
</div>
</div>
<section id="leaderboard-section" class="hidden">
<table>
<thead>
<tr>
<th>Rank</th>
<th>Player Name</th>
<th>Score</th>
</tr>
</thead>
<tbody id="leaderboard">
</tbody>
</table><br><br>
<button onclick="share()"> SHARE </button>
</section>
<script src="https://connect.facebook.net/en_US/fbinstant.6.3.js"></script>
<script src="question.js"></script>
<script type="text/javascript" src="preloader/js.js"></script>
<script type="text/javascript">
$(document).ready(function() {
//Preloader
preloaderFadeOutTime = 10000;
function hidePreloader() {
var preloader = $('.preloader');
preloader.fadeOut(preloaderFadeOutTime);
}
hidePreloader();
});
</script>
<script type="text/javascript">
function startGame() {
console.log('start button clicked');
$('#play').addClass('hidden');
$('#grid').removeClass('hidden');
document.body.style.backgroundImage = 'url("images/bg2.png")';
}
</script>
</body>
</html>