-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathteacher-tracking.html
159 lines (145 loc) · 8.46 KB
/
teacher-tracking.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
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
156
157
158
159
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<meta name="google-signin-client_id" content="842324757776-nonjllne8m8as9djg51e6cg98h6ijam7.apps.googleusercontent.com">
<title>R語言翻轉教室</title>
<!-- Le styles -->
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
<link href="bootstrap/css/docs.css" rel="stylesheet">
<link rel="icon" href="https://i.imgur.com/RkG7X4l.png" />
<link href="https://cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css" rel="stylesheet">
</head>
<body data-spy="scroll" data-target=".bs-docs-sidebar">
<div id="top-navbar" class="navbar-default"><ul class="nav nav-tabs"><li><a href="index.html"><h5 style="color: #0088cc;">首頁</h5></a></li><li><a href="install.html"><h5 style="color: #0088cc;">安裝導引</h5></a></li><li><a href="before.html"><h5 style="color: #0088cc;">上手教材</h5></a></li><li><a href="material.html"><h5 style="color: #0088cc;">主要教材</h5></a></li><li><a href="after.html"><h5 style="color: #0088cc;">課後教材</h5></a></li><li><a href="individual-tracking.html"><h5 style="color: #0088cc;">個人紀錄</h5></a></li><li><a href="teacher.html"><h5 style="color: #0088cc;">教師專區</h5></a></li><li class="active"><a href="#"><h5>教師報表</h5></a></li><li><a href="thanks.html"><h5 style="color: #0088cc;">感謝清單</h5></a></li></ul></div><div class="jumbotron subhead" style="text-align:center;"><div class="container"><h1><img src="https://i.imgur.com/81C5LBk.png" style="height:7em" /></h1><p class="lead">全中文R語言互動式教材</p></div></div><div class="col-md-2 bs-docs-sidebar"><ul id="affix-toc" class="nav nav-list bs-docs-sidenav"></ul></div><div id="main-content" class="container col-md-9"><p><!-- title: <img src="https://i.imgur.com/81C5LBk.png" style="height:7em" /> -->
<!-- subtitle: 全中文R語言互動式教材 -->
<!-- header-title: R語言翻轉教室 -->
<!-- icon: https://i.imgur.com/RkG7X4l.png --></p>
<p><!-- scripts: [{"src" : "https://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js"}] -->
<!-- header-meta: [{"name" : "google-signin-client_id", "content" : "842324757776-nonjllne8m8as9djg51e6cg98h6ijam7.apps.googleusercontent.com"}] -->
<!-- header-link: [{"href" : "https://cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css", "rel" : "stylesheet"}] --></p>
<p>登入後,會將您的報告顯示於下方。</p>
<!-- scripts: [{"src" : "https://apis.google.com/js/platform.js?onload=renderGoogleButton", "async" : null, "defer" : null}, {"src" : "js/auth.js"}, {"src" : "js/underscore-min.js"}, {"src" : "js/sha256.js"}] -->
<!-- Button trigger modal -->
<div style="font-size:18px;">
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#login-menu" onclick="datascienceandrSetLogin();">登入</button>或<button class="btn btn-primary btn-lg" onClick="return datascienceandrLogout();">登出</button>
</div>
<!-- Modal -->
<div class="modal fade" id="login-menu" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content" style="text-align:center;">
<div class="overlay" style="background: rgb(0, 0, 0) none repeat scroll 0% 0%; position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; opacity: 0.5; z-index:1060; display: none">
<div id="loading-img"></div>
</div>
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close" id="login-close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">請選擇登入的服務</h4>
</div>
<div class="modal-body">
<div class="row" style="text-align: center;">
<div style="position: relative; padding-right: 20px; padding-left: 20px;">
<div class="thumbnail" style="width: 300px; display:inline-block; float: none; border: none !important;">
<div style="width: 260px; height: 60px; display:inline-block;"/>
<a id="google-signin-wrapper" class="thumbnail" href="#">
<img alt="Sign in with Google" style="width: 240px; height: 50px; line-height: 50px;" src=""/>
<div id="google-signin"></div>
</a>
</div>
<div style="width: 260px; height: 60px; display:inline-block;">
<a class="thumbnail" onClick="return datascienceandrFacebookLogin();">
<img alt="Sign in with Facebook" style="width: 240px; height: 50px; line-height: 50px;" src="" onClick="return datascienceandrFacebookLogin();"/>
</a>
</div>
<div style="width: 260px; height: 60px; display:inline-block;">
<a class="thumbnail" onclick='$("#classroom-login").show();'>
<img alt="Classroom帳號登入" style="width: 240px; height: 50px; line-height: 50px;" src=""/>
</a>
</div>
<div id="classroom-login" style="display:inline-block; display:none;">
<div class="input-group">
<span class="input-group-addon">帳戶</span>
<input id="classroom-account" type="text" class="form-control" placeholder="Username" aria-describedby="basic-addon1">
</div>
<div class="input-group">
<span class="input-group-addon">密碼</span>
<input id="classroom-password" type="password" class="form-control" placeholder="Password" aria-describedby="basic-addon2">
</div>
<div class="input-group">
<input value="Login" class="btn btn-primary" type="submit" onClick="return datascienceandrClassroomAuth();">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<iframe id="report_container" class="container col-md-9">
</iframe>
<div id="fb-root"></div>
<script type="text/javascript">
var datascienceandrUserData;
var datascienceandrGetUserData = function() {
$.ajax({
url : datascienceandrUrls() + "/api/auth/getTeacherReport",
type : "POST",
data : {},
dataType : "text",
success : function(data) {
datascienceandrUserData = data;
datascienceandrOverlayDiv.hide();
},
complete : datascienceandrRenderUserData,
error: function(jqXHR, textStatus, errorThrown) {
throw errorThrown;
},
timeout : 5000,
xhrFields: {
withCredentials: true
},
crossDomain: true
});
};
var datascienceandrRenderUserData = function() {
var iframe = $("#report_container");
iframe.attr("srcdoc", datascienceandrUserData);
iframe.css("height", $(window).height());
};
</script>
<!-- scripts: [{"src" : "https://sidecar.gitter.im/dist/sidecar.v1.js", "async" : null, "defer" : null}, {"src" : "https://momentjs.com/downloads/moment-with-locales.min.js", "async" : null, "defer" : null}, {"src" : "js/gitter.js"}] --></div>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="jquery/jquery-3.2.0.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="https://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js"></script>
<script src="https://apis.google.com/js/platform.js?onload=renderGoogleButton" async defer></script>
<script src="js/auth.js"></script>
<script src="js/underscore-min.js"></script>
<script src="js/sha256.js"></script>
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>
<script src="https://momentjs.com/downloads/moment-with-locales.min.js" async defer></script>
<script src="js/gitter.js"></script>
<script type="text/javascript">
$(window).on('load', function() {
setTimeout(function() {
$('#affix-toc').each(function() {
var $spy = $(this);
var data = $spy.data();
if (!data.offset) data.offset = {};
data.offset.top = $spy.offset().top;
$spy.affix(data);
});
}, 100);
});
</script>
</body>
</html>