-
Notifications
You must be signed in to change notification settings - Fork 39
/
index.html
94 lines (76 loc) · 3.35 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
93
94
<!DOCTYPE html>
<html lang="en">
<head>
<title>table-magic</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdn.rawgit.com/showdownjs/showdown/1.2.2/dist/showdown.min.js"></script>
<script src="magic.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/primer/2.3.3/primer.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/octicons/3.1.0/octicons.min.css">
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<div class="masthead">
<div class="container">
<div class="title">table-magic</div>
</div>
</div>
<div class="container">
<div class="tabnav">
<nav class="tabnav-tabs">
<a href="#" class="tabnav-tab selected" id="tab-csv" onclick="changeTab('csv');"><span class="octicon octicon-file-text"></span> CSV/TSV</a>
<a href="#" class="tabnav-tab" id="tab-md" onclick="changeTab('md');"><span class="octicon octicon-code"></span> Markdown</a>
<a href="#" class="tabnav-tab" id="tab-sql" onclick="changeTab('sql');"><span class="octicon octicon-database"></span> SQL</a>
<a href="#" class="tabnav-tab" id="tab-html" onclick="changeTab('html');"><span class="octicon octicon-file-code"></span> HTML</a>
<a href="#" class="tabnav-tab" id="tab-form" onclick="changeTab('form');"><span class="octicon octicon-pencil"></span> Form</a>
<a href="#" class="tabnav-tab" id="tab-preview" onclick="changeTab('preview');"><span class="octicon octicon-browser"></span> Preview</a>
</nav>
</div>
<div class="form-tools">
<div class="form-button" id="tablebuilder-start" title="Drag out a new table">
<span class="octicon octicon-plus"></span> New table
</div>
<div class="form-button" id="new-row" title="Add a row to the bottom">
<span class="octicon octicon-triangle-down"></span> Add row
</div>
<div class="form-button" id="new-column" title="Add a column to the right">
<span class="octicon octicon-triangle-right"></span> Add column
</div>
<div class="form-button" id="toggle-delete" title="Toggle deletion of rows and columns">
<span class="octicon octicon-trashcan"></span> Enable deletion
</div>
</div>
</div>
<div class="container" id="viewport">
<div id="display"></div>
</div>
<div class="container">
<div id="csv-options" class="options">
<p>
<button class="btn" type="button" onclick="downloadCsv();"><span class="octicon octicon-cloud-download"></span> Download</button>
</p>
</div>
<div id="md-options" class="options">
<div class="form-checkbox">
<label>
<input type="checkbox" checked="checked" id="check-formatter">
Table formatter
</label>
<p class="note">
Makes markdown more legible.
</p>
</div>
</div>
<div id="sql-info" class="options">
<p class="note">
Read about the SQL function <a href="https://github.com/stevecat/table-magic/pull/20">in this pull request</a>.
</p>
</div>
<div class="footer">
built by <a href="http://www.github.com/stevecat/">stevecat</a> •
<a href="http://www.github.com/stevecat/table-magic">repo</a> •
<a href="http://www.github.com/stevecat/table-magic/issues">issues</a> •
<a href="#" onclick="fill_example();">populate with example data</a>
</div>
</div>
</body>