Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstudent.html
More file actions
Latest commit
157 lines (140 loc) · 6.59 KB
/
Copy pathstudent.html
File metadata and controls
157 lines (140 loc) · 6.59 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE HTML>
<!-- this page is the main login that you are redirected to with the normal url. -->
<html>
<head>
<metacharset="UTF-8">
<title>MathNet Student View</title>
<metahttp-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<metahttp-equiv="Pragma" content="no-cache" />
<metahttp-equiv="Expires" content="0" />
<linkrel="stylesheet" href="css/bootstrap.min.css">
<linkrel="stylesheet" href="css/style.css"/>
<linkrel="stylesheet" href="css/student.css"/>
<linktype="text/css" rel="stylesheet" href="css/groupgraph.css" />
</head>
<bodyhidden>
<divclass="container" id="main">
<divclass="row">
<!-- Login View -->
<divclass="login_view" hidden>
<divclass="col-md-4">
<h4id="error_frame"></h4>
</div>
<!-- Title -->
<divclass="col-md-12 col-sm-12">
<divclass="col-md-4 col-sm-4 col-md-offset-4 col-sm-offset-4">
<h2id="login_title"> Student Login </h2>
</div>
</div>
<br/>
<!-- Text Fields and Login Button -->
<divclass="col-md-12 col-sm-12">
<divclass="col-md-4 col-sm-4 col-md-offset-4 col-sm-offset-4">
<inputtype="text" class="form-control class_id" id="class_id" name="class_id" required="" placeholder="Class ID"/>
<pclass = "error error_class_id" hidden> Class ID does not exist </p><br/>
<inputtype="text" class="form-control nickname" id="nickname" name="nickname" required="" placeholder="Nickname"/>
<pclass = "error error_nickname" hidden> Nickname already taken </p><br/>
<inputclass="btn btn-lg btn-primary btn-block login" type="submit" value="Login" id="login"/><br/>
</div>
</div>
<h5class = "ping"> Ping : 0 </h5>
</div><!-- ***** End of login_view ***** -->
<divclass="class_view">
<divclass="col-md-12 col-sm-12">
<!-- Title -->
<divclass="col-md-12 col-sm-12">
<divclass="col-md-4 col-sm-4 col-md-offset-4 col-sm-offset-4">
<h3> Student Groups </h3>
</div>
</div>
<!-- Group Buttons -->
<divclass="col-md-12 col-sm-12">
<divclass="col-md-6 col-sm-6 col-md-offset-3 col-sm-offset-3">
<!-- add in class name, display buttons based on the class's groups to enter the individual groups -->
<h3id="buttons"></h3>
</div>
</div>
<!-- Log Out button -->
<divclass="col-md-12 col-sm-12">
<divclass="col-md-4 col-sm-4 col-md-offset-4 col-sm-offset-4">
<!-- foreach group, create a html button with onclick to emit action to a group -->
<inputtype="button" class="btn btn-danger" value="Log Out" id="logout" />
</div>
</div>
</div>
<h5class = "ping"> Ping : 0 </h5>
</div><!-- ***** End of class_view ***** -->
<!-- ***** Group View ***** -->
<divclass="group_view">
<divclass="col-md-12 col-lg-12 col-sm-12">
<h2>
<spanid="number">Group</span>
<inputclass="btn btn-danger" type="button" value="Leave Group" id="leave_group"/>
</h2>
<!-- add in class name, display buttons based on the class's groups to enter the individual groups -->
<!-- foreach group, create a html button with onclick to emit action to a group -->
<divclass="javascriptapplet">
<divclass="geogebrawebapplet applet-student" id="appletContainer"></div>
</div>
<divclass="col-md-4 col-lg-6 col-sm-6">
<br/>
<divclass="arrow-keys-ui" id="arrow_keys" style="white-space:nowrap;">
<buttonclass="btn btn-primary" id="arrow_up_button" style="margin-left:78px;">Up (I)</button>
<br/><br/>
<buttonclass="btn btn-primary" id="arrow_left_button">Left (J)</button>
Selected: <labelfor="cur_label">-</label>
<buttonclass="btn btn-primary" id="arrow_right_button" style="margin-left:2px;">Right (L)</button>
<br/><br/>
<buttonclass="btn btn-primary" id="arrow_down_button" style="margin-left:67px;">Down (K)</button>
<br/>
Step Size: <labelfor="step_size_label">1</label>
<inputid="step_size_slider" type="range" min="0" max="100" value="10" style="width:250px;">
</div>
<br/>
</div>
</div>
<h5class = "ping"> Ping : 0 </h5>
</div><!-- ***** End of group_view ***** -->
</div>
</div><!-- End of Container -->
<footer>
<!-- normal communications library stuff -->
<scriptsrc="js/socket.io-2.2.0.js"></script>
<scriptsrc="js/jquery-2.2.3.min.js"></script>
<scriptsrc="js/bootstrap.min.js"></script>
<scripttype="text/javascript" src="js/deployggb.js"></script>
<scripttype="text/javascript" src="js/ggbapplet_functions.js"></script>
<scriptsrc="js/student_vars.js"></script>
<scriptsrc="js/host.js"></script>
<scriptsrc="js/student_sockets.js"></script>
<scriptsrc="js/student_functions.js"></script>
<scriptsrc="js/login.js"></script>
<scriptsrc="js/class.js"></script>
<scriptsrc="js/groups.js"></script>
<scriptsrc="js/Queue.js"></script>
<script>
varxml_update_queue=newQueue();
varsocket=Student.Socket(io(host));
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*newDate();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create','UA-87061901-2','auto');
ga('send','pageview');
//Code for Pre-filling Class ID if URL contains it
$(document).ready(function(){
if($('.login_view').is(":visible"))
{
varurl=newURL(window.location.href);
varclass_id=url.searchParams.get("class_id");
if(class_id!=null)
{
$('.class_id').val(class_id);
}
}
});
//End of Code for Pre-filling Class ID
</script>
</footer>
</body>
</html>