-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
301 lines (262 loc) · 7.89 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
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
body {
position: relative;
width: 100%;
overflow: scroll;
text-overflow: ellipsis;
}
#header {
height: 650px;
width: 100%;
background-color: white;
}
h1 {
position: relative;
margin-left: 12%;
top: 35%;
font-size: 52px;
color: black;
font-family: Arial, Helvetica, sans-serif;
}
h2 {
position: relative;
margin-left: 12%;
top: 25%;
font-size: 70px;
color: #f39c12;
font-family: Arial, Helvetica, sans-serif;
}
.section {
/*登陆框*/
position: relative;
left: 50%;
top: -150px;
width: 520px;
height: 400px;
border: 1.7px solid #f39c12;
border-radius: 10px;
text-align: center;
}
.section p {
padding: 30px 0px;
font-size: 30px;
font-weight: bold;
color: black;
}
.section_input li {
overflow: hidden;
width: 100%;
margin-top: 20px;
list-style: none;
}
.section_input li span {
float: left;
width: 100px;
text-align: right;
display: inline-block;
margin: auto;
margin-left: 32px;
margin-top: 10px;
color: #f39c12;
}
.section_input li input {
float: left;
width: 228px;
height: 32px;
border: 1px solid #f39c12;
border-radius: 3px;
padding-left: 20px;
outline: medium;
margin-left: 10px;
}
#login {
position: relative;
top: 30px;
border-radius: 8px;
color: white;
background-color: #f39c12;
text-align: center;
font-size: 18px;
padding: 4px 12px;
cursor: pointer;
}
#sign-up {
position: relative;
margin-left: 20px;
top: 30px;
border-radius: 8px;
color: white;
background-color: #f39c12;
text-align: center;
font-size: 18px;
padding: 4px 12px;
cursor: pointer;
}
h3,
h4,
h5 {
position: relative;
text-align: center;
text-decoration: underline;
color: #f39c12;
font-size: 37px;
}
p {
font-size: 20px;
line-height: 30px;
}
#intro,
#direction,
#notification {
margin-left: 15%;
width: 1000px;
height: 320px;
text-align: center;
}
#direction {
height: 280px;
}
#footer {
position: fixed;
font-family: Futura;
color: ivory;
left: 0;
bottom: 0;
z-index: 100;
width: 100%;
text-align: center;
padding-top: 10px;
padding-bottom: 10px;
background-color: #222222;
}
</style>
</head>
<body>
<div id="header">
<h1>WELCOME TO</h1>
<h2>ATHANDIA</h2>
<div class="section">
<p>LOGIN IN</p>
<ul class="section_input">
<li>
<span>Username:</span>
<input type="email" id="email" required="required" autofocus="autofocus" placeholder=" e-mail address">
</li>
<li>
<span>Password:</span>
<input type="password" id="password" required="required" placeholder=" password">
</li>
</ul>
<span id="login">LOG IN</span>
<span id="sign-up" onclick="javascript:window.location.href='signup.html'">SIGN UP</span>
</div>
</div>
<div id="intro">
<h3>BRIEF INTRODUCTION</h3>
<p>Athandia online experiment platform is an website aiming to help students conduct experiments, write projects and receive instant comments from guide teachers without meeting. It has a reliable connection with wilddog database where students could
instantly upload their experiments progress. By using mind map, students could gain logical examples and flow guiding the procedure of conducting projects. A timeline showing the deadline of task and the progress of experiment could be a reminder
for the students.</p>
</div>
<div id="direction">
<h4>DIRECTION</h4>
<p>Anthandia online experiment platform aims to help students who have great passion in applying their ideas in subjects of science, biology, maths, physics, chemistry and data to doing real researches. Science teachers and other guides could use this
platform to teach students directly and verify the reports instantly.</p>
</div>
<div id="notification">
<h5>NOTIFICATION</h5>
<p>The first edition opens all the functions except teachers systems which requires further tests.</p>
</div>
<div id="footer">Research Development Centre (RDC) of High School Affiliated to Shanghai Jiao Tong University</div>
<script src="https://cdn.wilddog.com/sdk/js/2.3.10/wilddog.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gojs/1.6.7/go-debug.js"></script>
<script src="./js/mindmap.js"></script>
<script src="./js/login.js"></script>
<script src="./js/manage.js"></script>
<script src="./js/project.js"></script>
<script type="text/javascript" id="initializeApp">
var config = {
authDomain: "athandiajsmind.wilddog.com", //url for Auth
syncURL: "https://athandiajsmind.wilddogio.com" //url for Data Sync
}
wilddog.initializeApp(config);
var getEmail = function() {
return document.getElementById("email").value;
};
var getPwd = function() {
return document.getElementById("password").value;
};
/*document.getElementById("sign-up").onclick = function () {
var email = getEmail();
var pwd = getPwd();
sign_up(email, pwd);
};*/
document.getElementById("login").onclick = function() {
var email = getEmail();
var pwd = getPwd();
var already = function() {
console.info("you have already login!");
};
/*var doLogin = function () {
login(email, pwd);
};*/
login(email, pwd)
//pre_login(already, doLogin);
//window.open('test.html');
//将uid放入用户自己的网址
};
document.getElementById("logout").onclick = function() {
logout();
};
/*document.getElementById("add").onclick = function () {
var already = function () {
var uid = wilddog.auth().currentUser.uid;
var projectName = document.getElementById("project-name").value;
add_project(uid, projectName);
console.info("a new project added.");
};
var alertLogin = function () {
alert("You have not sign-in. Sign In Please!");
};
pre_login(already, alertLogin);
};
/*
wilddog.auth().onAuthStateChanged(function(user){
console.log(user);
//list_projects(user);
})*/
// 开始监听
var stopListen = wilddog.auth().onAuthStateChanged(function(user) {
console.info("auth state changed ->", user);
//todo: user.onLoggedIn 事件监听
var listen = function() {
list_projects(user);
};
var unlisten = function() {
unlist_proejects(user);
};
pre_login(listen, unlisten);
});
/*document.getElementById("delete").onclick = function () {
var already = function () {
var pid = document.getElementById("pid").value;
delete_project(pid);
};
var alertLogin = function () {
alert("You have not sign-in. Sign In Please!");
};
pre_login(already, alertLogin);
};
document.getElementById("p_save").onclick = function(){
write_node();
};*/
</script>
<script src="./js/underscore.js"></script>
<script src="./js/jquery.js"></script>
<script src="./js/backbone.js"></script>
<script src="./js/router.js"></script>
</body>
</html>