-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrading.html
More file actions
51 lines (41 loc) · 1.11 KB
/
grading.html
File metadata and controls
51 lines (41 loc) · 1.11 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
<!-- The CSS package above applies Google styling to buttons and other elements. -->
<!DOCTYPE html>
<html>
<head><style>
body {font-family: Arial;}
button {
background-color:#1a73e8;
border-radius:4px;
border:1px solid white;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-size:13px;
font-weight:bold;
padding:8px 18px;
}
textarea{
border: 2px solid #616161;
border-radius: 4px;
}
</style></head>
<body>
<div class="sidebar branding-below">
<div class="block col-contain">
<h1 class="col-one"><strong>Answer Sheet</strong></h1>
<div class="col-one"> </div>
<div class="block"><button id="create-and-place" class="blue">Create and Place</button></div>
</div></div>
<div id = "output"></div>
<script>
document.getElementById("create-and-place").addEventListener("click",create);
function onFailure(error){
var div = document.getElementById("output");
div.innerHTML = "ERROR: " + error.message;
}
function create(){
alert("Pressing this button would create the element and place it at the cursor");
google.script.run.withFailureHandler(onFailure).addAnswerSheet();
}
</script>
</body></html>