-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplay.html
More file actions
137 lines (110 loc) · 4.64 KB
/
play.html
File metadata and controls
137 lines (110 loc) · 4.64 KB
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
134
135
136
137
<html>
<!-- Style Sheets -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/playpagecss.css">
<!-- Title Bar -->
<div class="nav">
<div class="container">
<ul id="left" class="pull-left">
<a href="homepage.html">Home</a>
<a href="workshop.html">Workshop</a>
<a href="play.html">Play</a>
<a href="Board.html">Board</a>
</ul>
<ul class="pull-right" id="right">
</ul>
</div>
</div>
<head>
<title>Play Bookmark</title>
</head>
<body>
<!-- Game Canvas -->
<div id="divM" style="position: absolute; border:0px solid #000000;">
<canvas id="canvasM" style="margin: 0px;"></canvas>
</div>
<div id="divA" style="position: absolute; border:0px solid #000000;">
<canvas id="canvasA" style="margin: 0px;"></canvas>
</div>
<div id="divD" style="position: absolute; border:0px solid #000000;">
<canvas id="canvasD" style="margin: 0px;"></canvas>
</div>
<!-- Jquery -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<!-- Game Javascript Files -->
<script src="js/Card.js" type="text/javascript"></script>
<script src="js/CardDrawer.js" type="text/javascript"></script>
<script src="js/Team.js" type="text/javascript"></script>
<script src="js/Student.js" type="text/javascript"></script>
<script src="js/Chain.js" type="text/javascript"></script>
<script src="js/ColorScheme.js" type="text/javascript"></script>
<script src="js/DataFetcher.js" type="text/javascript"></script>
<script src="js/DeckDisplay.js" type="text/javascript"></script>
<script src="js/ArgumentDisplay.js" type="text/javascript"></script>
<script src="js/MainDisplay.js" type="text/javascript"></script>
<script src="js/Rectangle.js" type="text/javascript"></script>
<script src="js/playGame.js" type="text/javascript"></script>
<!-- HTML Elements -->
<button id="genericSubmitButton" name="genericSubmitButton" class="btn" onclick="onGenericSubmit()">Submit</button>
<button id="challengeButton" name="challengeButton" class="btn" onclick="beginChallengeCreation()">Challenge</button>
<button id="passButton" name="passButton" class="btn" onclick="onPassSubmit()">Pass</button>
<table id="turnSelectTable" border="0" style="position: absolute">
<tr>
<td align="center">
<button id="selectMoveButton" name="selectMoveButton" class="btn"
style="position: relative; width:50%; height: 50%" onclick="selectMove()">Move
</button>
</tr>
</td>
<tr>
<td align="center">
<button id="selectMakeChainButton" name="selectMakeChainButton" class="btn"
style="position: relative; width: 50%; height: 50%" onclick="selectMakeChain()">Create Chain
</button>
</tr>
</td>
</table>
<div id="tooltipDiv" class="tooltipDivClass">
<label id="tooltipLbl">Tooltip</label>
</div>
<script type="text/javascript">
$("#tooltipDiv").hide();
</script>
<script type="text/javascript">
document.writeln("<table id='moveTable' border='1' style='position: absolute; cellpadding: 0px; cellspacing:0px'>");
for (var horiz = 0; horiz < 4; horiz += 1) {
document.writeln("<tr>");
for (var vert = 0; vert < 4; vert += 1) {
var btnNum = horiz * 4 + vert;
var type = loadBoardCardType(vert, horiz);
console.log(type);
document.writeln("<td align='center'>");
document.writeln("<input type='button' class='moveBtn' id=btn" + btnNum + " onclick=moveBtnPress(" + vert + "," + horiz + ") value='" + type + "'" + "' style='width: 90%; height: 95%;'>");
document.writeln("</td>");
}
document.writeln("</tr>");
}
document.writeln("</table>");
</script>
<script type="text/javascript">
if (isTeacherId(sessionStorage.studentId)) {
/* var navBar = document.getElementById("left");
var newButton = document.createTextNode(msgStr);
navBar.appendChild(textToAdd);
<a id="Teacher">Teacher</a>*/
$("#left").append('<a id="teacher" href="teacher_junction.html">Teacher</a>');
}
if (sessionStorage.studentId != null && !isTeacherId(sessionStorage.studentId)) {
var teamName = getTeamName(sessionStorage.studentId);
console.log(teamName);
$("#right").append('<a id="teamNameText">Team ' + teamName + '</a>');
}
if (sessionStorage.studentId != null) {
$("#right").append('<a href="login.html">Logout</a>');
}
if (sessionStorage.studentId == null) {
$("#right").append('<a href="login.html">Login</a>');
}
</script>
</body>
</html>