-
Notifications
You must be signed in to change notification settings - Fork 0
/
choice.html
44 lines (43 loc) · 1.17 KB
/
choice.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
<!DOCTYPE html>
<html>
<head>
<base target="_top">
<style>
.wrapper {
max-width: 600px;
max-height: 350px;
margin: auto;
}
select {
width: 300px;
height: auto;
padding: 10px 5px;
margin: 10px 0;
}
button {
width: 100px;
height: auto;
padding: 8px 0;
margin: 10px 0;
float: right;
}
</style>
</head>
<body>
<div class="wrapper">
<label for="item-select"></label>
<form id="item-select">
<select>
<option value="" name="placeholder">--Please choose an option--</option>
<script>
const array = [ '日時を編集する', '詳細欄を編集する', '予定名を編集する', '出席者を追加する' ];
for(let i = 0; i < array.length; i++){
document.write('<option value="' + array[i] + '">' + array[i] + '</option>');
}
</script>
</select>
<button type="submit" onclick="google.script.run.editEvents(this.parentNode)">確定する</button>
</form>
</div>
</body>
</html>