-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage-functions.html
More file actions
36 lines (28 loc) · 879 Bytes
/
page-functions.html
File metadata and controls
36 lines (28 loc) · 879 Bytes
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
<script>
/*function insertFunctions(functs) {
document.getElementById('functions').innerHTML += functs[0] + functs[1];
removeStudent = functs[2];
console.log(functs + "!!");
}
google.script.run.withSuccessHandler(insertFunctions).generateFunctions();*/
function submit() {
alert('submitted!\n' + document.getElementById('page-mode').className);
var sid = document.getElementById('textBox-slide-0').value;
google.script.run.withSuccessHandler(displayStudent).getStudent(sid);
/*
needs to be generated.
only in sign in or sign out slides:
iterate through all information
validate data
if valid: put into an array
dump array to spreadsheet
display on page.
else: alert user
reset slides.
*/
}
function displayStudent(student) {
document.getElementById('student').innerHTML = student;
document.getElementById('map')
}
</script>