-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
93 lines (85 loc) · 4.79 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Map Your Vision - Team building for virtual teams</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="mySidenav" class="sidenav">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<img id="drag1" class="img" src="images/Picture1.png" draggable="true" ondragstart="drag(event)">
<img id="drag2" class="img" src="images/Picture2.png" draggable="true" ondragstart="drag(event)">
<img id="drag3" class="img" src="images/Picture3.png" draggable="true" ondragstart="drag(event)">
<img id="drag4" class="img" src="images/Picture4.png" draggable="true" ondragstart="drag(event)">
<img id="drag5" class="img" src="images/Picture5.png" draggable="true" ondragstart="drag(event)">
<img id="drag6" class="img" src="images/Picture6.png" draggable="true" ondragstart="drag(event)">
<img id="drag7" class="img" src="images/Picture7.png" draggable="true" ondragstart="drag(event)">
<img id="drag8" class="img" src="images/Picture8.png" draggable="true" ondragstart="drag(event)">
<img id="drag9" class="img" src="images/Picture9.png" draggable="true" ondragstart="drag(event)">
<img id="drag10" class="img" src="images/Picture10.png" draggable="true" ondragstart="drag(event)">
<img id="drag11" class="img" src="images/Picture11.png" draggable="true" ondragstart="drag(event)">
<img id="drag12" class="img" src="images/Picture12.png" draggable="true" ondragstart="drag(event)">
<img id="drag13" class="img" src="images/Picture13.png" draggable="true" ondragstart="drag(event)">
<img id="drag14" class="img" src="images/Picture14.png" draggable="true" ondragstart="drag(event)">
<img id="drag15" class="img" src="images/Picture15.png" draggable="true" ondragstart="drag(event)">
<img id="drag16" class="img" src="images/Picture16.png" draggable="true" ondragstart="drag(event)">
</div>
<span style="font-size:30px;cursor:pointer" onclick="openNav()">☰ Images</span>
<div class="center" id="main">
<!--<div id="avatarContainer">
<img id="avatar" class="img" src="images/avatar_grey_small.png" alt="avatar"></img>
<br/><span id="avatarName"></span>
</div>
<div class="center" id="playerentry">
<div id="errMsg"></div>
<form id="homePageForm">
<label class="label paleGrey" for="pname">Your Name</label>
<input class="input" type="text" id="pname" placeholder="Enter your name"/>
<div id="options">
</div>
<button class="btn-primary" type="button" id="joinBtn">Join game</button>
</form>
</div>-->
<p>Drag to arrange the images and re-create the original picture</p>
<div id="boardContainer">
<table>
<tbody>
<tr>
<td><div class="imgDiv" ondrop="drop(event)" ondragover="allowDrop(event)"></div></td>
<td><div class="imgDiv" ondrop="drop(event)" ondragover="allowDrop(event)"></div></td>
<td><div class="imgDiv" ondrop="drop(event)" ondragover="allowDrop(event)"></div></td>
<td><div class="imgDiv" ondrop="drop(event)" ondragover="allowDrop(event)"></div></td>
</tr>
<tr>
<td><div class="imgDiv" ondrop="drop(event)" ondragover="allowDrop(event)"></div></td>
<td><div class="imgDiv" ondrop="drop(event)" ondragover="allowDrop(event)"></div></td>
<td><div class="imgDiv" ondrop="drop(event)" ondragover="allowDrop(event)"></div></td>
<td><div class="imgDiv" ondrop="drop(event)" ondragover="allowDrop(event)"></div></td>
</tr>
<tr>
<td><div class="imgDiv" ondrop="drop(event)" ondragover="allowDrop(event)"></div></td>
<td><div class="imgDiv" ondrop="drop(event)" ondragover="allowDrop(event)"></div></td>
<td><div class="imgDiv" ondrop="drop(event)" ondragover="allowDrop(event)"></div></td>
<td><div class="imgDiv" ondrop="drop(event)" ondragover="allowDrop(event)"></div></td>
</tr>
<tr>
<td><div class="imgDiv" ondrop="drop(event)" ondragover="allowDrop(event)"></div></td>
<td><div class="imgDiv" ondrop="drop(event)" ondragover="allowDrop(event)"></div></td>
<td><div class="imgDiv" ondrop="drop(event)" ondragover="allowDrop(event)"></div></td>
<td><div class="imgDiv" ondrop="drop(event)" ondragover="allowDrop(event)"></div></td>
</tr>
</tbody>
</table>
</div>
<!-- Javascript files added to the end of body for bootstrap -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="https://cdn.socket.io/socket.io-1.4.5.js"></script>
<script src="./api/config"></script> <!-- Loaded via REST API -->
<script src="./DragDropTouch.js"></script>
<script src="./client.js"></script>
</div>
</body>
</html>