-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (85 loc) · 3.86 KB
/
index.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="en">
<head>
<title>WCAG-Compliant Table Generator</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./css/tablegen.css">
<style>
</style>
</head>
<body id="PageBody">
<div id="AppWrapper">
<h1>TableGen - WCAG Table Creation Tool</h1>
<p>Use this app to create WCAG/Section 508 Compliant HTML Tables</p>
<section id="TableHeadSettings">
<h2>Table Head</h2>
<p>
<label for="TableCaptionControl">Caption:</label>
<input type="text" id="TableCaptionControl" maxlength="200" data-keyup="syncCaption"
value="Table Caption">
</p>
<p>
<label for="TableDefaultValueControl">Default Cell Value:</label>
<input type="text" id="TableDefaultValueControl" maxlength="200" data-keyup="syncDefaultValue"
value="New Value">
</p>
<hr>
</section>
<section id="TableBodySettings">
<h2>Output Table</h2>
<button type="button" id="InsertRowButton" data-click="addRow">Add Row at End</button>
<button type="button" id="InsertColumnButton" data-click="addColumn">Add Column at End</button>
<button type="button" id="GetHtmlButton" data-click="getHtmlCode">Get HTML Code</button>
<button type="button" id="PreviewTableButton" data-click="previewTable">Preview Table</button>
<button type="button" id="ImportHtmlButton" data-click="textInput" data-action="importHtml">Import Table</button>
<hr>
<div id="MainTable">
<table id="UI_TABLE">
<caption> </caption>
<thead>
</thead>
<tbody>
</tbody>
</table>
</div>
<hr>
</section>
</div>
<script type="template" id="RowTemplate" class="row" data-template-for="MainTable">
<tr>
{{{rowContent}}}
</tr>
<tr class="ui-add-row">
<td colspan="{{columns}}" class="button-wrapper">
<button title="Add Row at {{row}}" data-row="{{row}}" class="add-row" data-click="addRow">Insert Row After {{nextRow}}</button>
</td>
</tr>
</script>
<script type="template" id="ThTemplate" class="th" data-template-for="MainTable">
{{#first}}
<th class="button-wrapper">
<button title="Reset Table (All data will be lost.)" class="reset-table" data-click="resetTable">!R!</button>
</th>
{{/first}}
<th data-index="{{column}}">
<button title="Delete Column {{column}}" data-column="{{column}}" class="delete-column" data-click="removeColumn">-</button>
<input data-location="{{row}},{{column}}" data-change="sync{{type}}" type="text" size="10" value="{{value}}">
<button title="Add Column After Column {{column}}" data-column="{{column}}" class="add-column" data-click="addColumn">+</button>
</th>
</script>
<script type="template" id="TdTemplate" class="td" data-template-for="MainTable">
{{#first}}
<td rowspan="2" class="button-wrapper delete-row">
<button title="Delete Row at {{row}}" data-row="{{row}}" class="delete-row" data-click="removeRow">--</button>
</td>
{{/first}}
<td data-index="{{column}}" class="{{#first}}first{{/first}}">
<input data-location="{{row}},{{column}}" data-change="sync{{type}}" type="text" size="10" value="{{value}}">
</td>
</script>
<script>var exports = {};</script>
<script type="module" src="scripts/app.js"></script>
<!-- <script src="./js/index.js"></script> -->
</body>
</html>