-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
156 lines (156 loc) · 6.74 KB
/
index.html
File metadata and controls
156 lines (156 loc) · 6.74 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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Primary Meta Tags -->
<title>Table Generator</title>
<meta name="title" content="Table Generator"></meta>
<meta name="description" content="A basic Table Generator page to help you create and customize HTML tables for your website."></meta>
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website"></meta>
<meta property="og:url" content="https://ali5723.github.io/tableGenerator/"></meta>
<meta property="og:title" content="Table Generator"></meta>
<meta property="og:description" content="A basic Table Generator page to help you create and customize HTML tables for your website."></meta>
<meta property="og:image" content="https://ali5723.github.io/tableGenerator/image.jpeg"></meta>
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image"></meta>
<meta name="twitter:url" content="https://ali5723.github.io/tableGenerator/"></meta>
<meta name="twitter:title" content="Table Generator"></meta>
<meta name="twitter:description" content="A basic Table Generator page to help you create and customize HTML tables for your website."></meta>
<meta name="twitter:image" content="https://ali5723.github.io/tableGenerator/image.jpeg"></meta>
<!-- Optional Meta Tags -->
<meta name="keywords" content="table generator, HTML tables, web development"></meta>
<meta name="robots" content="index, follow"></meta>
<meta name="content-type" content="text/html; charset=utf-8"></meta>
<meta name="viewport" content="width=device-width, initial-scale=1.0"></meta>
<meta name="author" content="Ali Amen"></meta>
<!-- Meta Tags Generated with https://ali5723.github.io/metaGenerator/ -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Table Generator</h1>
<form id="tableForm" onsubmit="generateTable(event)">
<div class="captionContainer">
<label for="caption">Caption</label>
<input type="text" id="caption" name="caption">
</div>
<div class="rowsContainer">
<label for="rows">Rows</label>
<input
type="number"
id="rows"
name="rows"
min="1"
required
>
</div>
<div class="columnsContainer">
<label for="columns">Columns</label>
<input
type="number"
id="columns"
name="columns"
min="1"
required
>
</div>
<div class="checkboxContainer">
<input
type="checkbox"
name="showTable"
id="showTable"
onclick="toggleTableContainer()"
checked
>
<label for="showTable" style="display: inline;">Show Table</label>
<input
type="checkbox"
name="showCode"
id="showCode"
onclick="toggleCodeContainer()"
checked
>
<label for="showCode" style="display: inline;">Show Code</label>
</div>
<br>
<input type="submit" value="Generate">
<br>
<hr>
</form>
<textarea id="result" disabled></textarea>
<div id="editContainer" class="editContainer">
<div class="none">
<input
type="radio"
name="editRecord"
id="none"
checked
>
<label for="none">None</label>
</div>
<div class="renameAllCells">
<input type="radio" name="editRecord" id="renameAllCells">
<label for="renameAllCells">
Rename All Cells
</label>
</div>
<div class="toggleTH">
<label>Toggle Header</label>
<div class="toggleTHCell">
<input type="radio" name="editRecord" id="toggleTHCell">
<label for="toggleTHCell">Toggle Header (Cell)</label>
</div>
<div class="toggleTHCol">
<input type="radio" name="editRecord" id="toggleTHCol">
<label for="toggleTHCol">Toggle Header (Column)</label>
</div>
<div class="toggleTHRow">
<input type="radio" name="editRecord" id="toggleTHRow">
<label for="toggleTHRow">Toggle Header (Row)</label>
</div>
</div>
<div class="del">
<label>Delete</label>
<div class="delCell">
<input type="radio" name="editRecord" id="delCell">
<label for="delCell">Delete Cell</label>
</div>
<div class="delCol">
<input type="radio" name="editRecord" id="delCol">
<label for="delCol">Delete Column</label>
</div>
<div class="delRow">
<input type="radio" name="editRecord" id="delRow">
<label for="delRow">Delete Row</label>
</div>
</div>
<div class="add">
<label>Add</label>
<div class="addCell">
<input type="radio" name="editRecord" id="addCell">
<label for="addCell">Add Cell</label>
</div>
<div class="addCol">
<input type="radio" name="editRecord" id="addCol">
<label for="addCol">Add Column</label>
</div>
<div class="addRow">
<input type="radio" name="editRecord" id="addRow">
<label for="addRow">Add Row</label>
</div>
</div>
<div class="place">
<label>Place</label>
<div class="toggleThead">
<input type="radio" name="editRecord" id="toggleThead">
<label for="toggleThead">Toggle THead</label>
</div>
<div class="toggleTfoot">
<input type="radio" name="editRecord" id="toggleTfoot">
<label for="toggleTfoot">Toggle TFoot</label>
</div>
</div>
</div>
<div id="tableContainer"></div>
<script src="script.js"></script>
</body>
</html>