-
Notifications
You must be signed in to change notification settings - Fork 1
/
md-table.html
121 lines (119 loc) · 3.24 KB
/
md-table.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
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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Markdown Table Converter</title>
<script type="text/javascript" src="converter.js"></script>
<style>
html {
/*background-color: #fef991;*/
}
#main {
padding-top: 40px;
margin: auto;
max-width: 500px;
}
#control-left {
float: left;
}
#control-right {
float: right;
margin-bottom: 10px;
}
#markdown::selection, span::selection {
color: #a5ed53;
background: #54bda4;
}
#markdown::-moz-selection, span::-moz-selection{
color: #a5ed53;
background: #54bda4;
}
table {
margin-bottom: 10px;
width: 100%;
}
td {
border-top: 0;
border-bottom: 3px #ef6f66 solid;
}
input {
padding: 3px;
border: 0px;
width: 90%;
color: #ef6f66;
/*background-color: #fef991;*/
font-family: "Consolas", monospace;
font-size: 1.5em;
}
textarea {
padding: 15px;
position: relative;
box-sizing: border-box;
border: 3px #54bca4 solid;
/*background-color: #fef991;*/
width: 100%;
height: 300px;
font-family: "Consolas", monospace;
font-size: 1.5em;
color: #54bca4;
}
span {
position: fixed;
right: 20px;
bottom: 0;
line-height: 70%;
font-size: 15em;
color: #54bda4;
font-family: serif;
}
button {
margin-top: 10px;
min-width: 50px;
/*background-color: #fef991;*/
background-color: white;
border: 3px #ef6f66 solid;
color: #ef6f66;
height: 40px;
font-family: "Consolas", monospace;
}
</style>
</head>
<body>
<div id="main">
<div id="control-left">
<button id="row-a">+ Row</button>
<button id="row-d">- Row</button>
<button id="col-a">+ Col</button>
<button id="col-d">- Col</button>
</div>
<div id="control-right">
<button id="table2md">Reformat & Copy</button>
</div>
<table>
<thead></thead>
<tbody id="grid">
<tr id="r-0">
<td><input></td>
<td><input></td>
<td><input></td>
<td><input></td>
</tr>
<tr id="r-1">
<td><input></td>
<td><input></td>
<td><input></td>
<td><input></td>
</tr>
<tr id="r-2">
<td><input></td>
<td><input></td>
<td><input></td>
<td><input></td>
</tr>
</tbody>
</table>
<textarea id="markdown" placeholder="Paste Markdown Table Here"></textarea>
</div>
<span>MD</span>
</body>
</html>