/
index.html
122 lines (121 loc) · 2.38 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Elm Markdown</title>
<style type="text/css">
* {
box-sizing: border-box;
}
html, body {
width: 100%;
height: 100%
}
body {
margin:0 auto;
max-width:1080px;
line-height:1.6;
font-size:18px;
color:#444;
padding:0;
display: flex;
overflow: hidden auto;
background-color: #fafafa;
flex-direction: column;
}
.container, .content-container {
flex: 1 0 0;
display: flex;
flex-direction: column;
}
.heading {
padding-bottom: 0;
margin-bottom: 0;
line-height:1.2;
font-size: 2rem;
}
.heading small {
font-size: 1rem;
color: #888;
}
.heading, .subheading, .loading {
text-align: center;
}
.heading, .subheading, {
flex-shrink: 0;
}
.content {
flex: 1 0;
display: flex;
flex-direction: row;
}
.subheading {
margin-top: 0;
}
.content-container {
overflow: hidden;
}
.editor, .preview {
flex: 1 0 0;
padding: 0.5rem;
background-color: #fafafa;
border: 0;
border-top: 0.25rem solid #efefef;
resize: none;
outline: none;
min-height: 400px;
overflow: hidden auto;
margin: 0;
}
.tabs {
flex-shrink: 0;
display: flex;
flex-direction: row;
padding: 0 0.5rem;
}
.tab {
height: 2rem;
border: 0;
border-radius: 5px 5px 0 0;
padding: 0 1rem;
background-color: transparent;
cursor: pointer;
color: graytext;
outline: none;
}
.tab:disabled {
cursor: auto;
background-color: #efefef;
color: #444;
}
.tab:hover, .tab:focus, .tab:active {
color: #444;
}
.preview {
font-size: 16px;
}
pre {
overflow: auto;
}
pre, code {
background: #efefef;
}
</style>
</head>
<body>
<h1 class="heading">Elm Markdown <small>v2.0.5</small></h1>
<p class="subheading"><a href="http://package.elm-lang.org/packages/pablohirafuji/elm-markdown/latest">Package</a> / <a href="https://github.com/pablohirafuji/elm-markdown">GitHub</a> / <a href="https://github.com/pablohirafuji/elm-markdown/blob/master/demo/Main.elm">Source</a></p>
<div id="main"><h2>Loading...</h2></div>
<script src="elm.js"></script>
<script>
var node = document.getElementById('main');
while (node.firstChild) {
node.removeChild(node.firstChild);
}
var app = Elm.Main.init({
node: node
});
</script>
</body>
</html>