-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
49 lines (49 loc) · 1.41 KB
/
index.php
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
<?php
require_once("config.php");
?>
<!DOCTYPE html>
<html>
<meta charset="utf-8" />
<head>
<title>Study</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<?php
// If single play is active and we have an existing cookie
if (SINGLE_PLAY && isset($_COOKIE['hstudy'])) {
?>
<div id="debrief">
<h1>Thank you for playing!</h1>
</div>
<?php } else { ?>
<div id="confirm">
<h1 style="text-align: center">Write your participant code here</h1>
<p style="text-align: center"><input type="text" id="code" /></p>
<p style="text-align: center"><button>Continue</button></p>
</div>
<div id="ageform" style="display: none">
<select id="age">
<option value="" disabled selected>Age</option>
</select>
<button id="ageconfirm" />Continue</button>
</div>
<div id="game"></div>
<div id="debrief" style="display: none">
<h1>Thank you for playing!</h1>
<p id="message" style="display: none"></p>
</div>
<script src="//cdnjs.cloudflare.com/ajax/libs/phaser/2.4.4/phaser.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script>
var adminEmail = '<?php echo ADMIN_EMAIL; ?>';
var singlePlay = <?php echo SINGLE_PLAY ? 'true' : 'false'; ?>;
</script>
<script src="game.js"></script>
<script src="dungeon.js"></script>
<script src="underwater.js"></script>
<script src="meadow.js"></script>
<script src="sky.js"></script>
<?php }?>
</body>
</html>