-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnakeLadder.php
52 lines (49 loc) · 1.92 KB
/
snakeLadder.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
50
51
52
<?php
session_start(); // Holds the present session information
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Snakes & Ladders</title>
<style>
body{
background: url("greybackground.jpg") no-repeat top center fixed;
background-size: cover;
margin: 0;
padding: 0;
height: 100%;
width: 100%;
}
</style>
<link rel="stylesheet" type="text/css" href="Snake&Ladder.css">
<script type="text/javascript"> if (!window.console) console = {log: function() {}}; </script>
</head>
<body>
<div id="top">
R.I.T
</div>
<div id="welcome">
<h1><span class="colour">Snakes & Ladders</span></h1>
<h1>REGISTER/LOGIN</h1>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
<!-- <button onclick=rollDice()>RollDice</button> -->
<div id=board>
</div>
<canvas id=canvas height = "1000" width = "1000"></canvas>
<script type="text/javascript" src="js/Board.js"></script> <!-- to populate the board -->
<?php include ('php_pages/loginForm.php');?>
<div id="SaveLoadOutput" style="display:none">
<input type="submit" id="multiplayer_submit"
onclick="parent.location='slmult/pages/UserLogin.php'"
value="Multiplayer game">
</div>
<script type="text/javascript" src="js/buttons/loginlogout.js"></script>
<script type="text/javascript" src="js/buttons/register.js"></script>
</body>
</html>
<!-- <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="900px" height="600px" onload="init();">
<rect x="0px" y="0px" width="900px" height="600px" id="background" />
<g id="board"></g>
</svg> -->