-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSettings.html
64 lines (60 loc) · 1.84 KB
/
Settings.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://ssl.gstatic.com/docs/script/css/add-ons1.css">
<style>
.toc_settings label {
padding-right: 8px;
}
</style>
</head>
<body>
<div class="sidebar">
<table class="toc_settings">
<tbody>
<tr>
<td><label>Heading number format:</label></td>
<td>
<select id="heading_format">
<option value="format_1">1.2.3</option>
<!-- <option value="format_2">1.2.3.</option> -->
<option value="none">None</option>
</select>
</td>
</tr>
<tr>
<td><label>Numbering level:</label></td>
<td>
<select id="max_heading_level">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
</select>
</td>
</tr>
<tr>
<td/>
<td>
<button onclick="updateHeadings(); return false;" class="action"><img src="https://ssl.gstatic.com/docs/common/arrow_spinner.svg" style="position: relative; top: 3px;"></button>
</td>
</tr>
</tbody>
</table>
<script>
function displayHeadings() {
}
function showError() {
}
function updateHeadings() {
google.script.run
.withSuccessHandler(displayHeadings)
.withFailureHandler(showError)
.updateHeadings(document.getElementById('max_heading_level').value, document.getElementById('heading_format').value);
}
</script>
</div>
</body>
</html>