-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHL prompt 3.html
54 lines (46 loc) · 1.3 KB
/
HL prompt 3.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
<!DOCTYPE html>
<html>
<head>
<base target="_top">
<style>
form {
width: 100%;
margin-left : 0%
}
</style>
</head>
<body>
<form style="padding: 50x 100px;">
<b>Division: </b>
<select name="division" id="division">
<?!=selectedcode?>
</select>
<br><br>
<b>Reserve</b><br>
<input type="radio" id="harvest" name="harvest" value="1">
<label for="default">None</label>
<input type="radio" id="harvest" name="harvest" value="2">
<label for="low">Low</label>
<input type="radio" id="harvest" name="harvest" value="3">
<label for="middle">Middle</label>
<input type="radio" id="harvest" name="harvest" value="4">
<label for="high">High</label>
<br><br>
<script>
function harvest_return(){
var harvest = document.getElementsByName('harvest');
for(var i = 0; i < harvest.length; i++){
if(harvest[i].checked){
return harvest[i].value;
break
}
}}
</script>
<input type="button" value="Submit"
onclick="google.script.run.HLSubmit(
document.getElementById('division').value,
harvest_return())"/>
<input type="button" value="Cancel" onclick="google.script.host.close()" />
</form>
</body>
</html>