-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
100 lines (91 loc) · 2.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
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html>
<head>
<title>Try Jsig Online</title>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<meta charset=utf-8></head>
<link rel="stylesheet" href="http://codemirror.net/lib/codemirror.css"></link>
<style>
.main {
margin-left: auto;
margin-right: auto;
width: 1500px;
max-width: 80%;
margin-top: 30px;
}
.CodeMirror {
border: 1px solid black;
font-size:13px
background-color: #f8f8f8;
height: 500px;
}
.javascript-editor {
width: 45%;
height: 500px;
margin-left: 10px;
margin-right: 10px;
display: inline-block;
}
.jsig-editor {
width: 45%;
margin-left: 10px;
margin-right: 10px;
height: 500px;
display: inline-block;
}
.controls {
margin-top: 20px;
margin-left: 50px;
}
.controls button, .controls a {
margin-left: 10px;
margin-right: 10px;
}
.error-output {
white-space: pre;
font-family: monospace;
}
.tc-red {
color: red;
}
.tc-green {
color: green;
}
.tc-cyan {
color: #00cccc;
}
.tc-gray {
color: gray;
}
.tc-underline {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="main">
<div class="javascript-editor">
<h2> Javascript Editor </h2>
<textarea id="javascript-editor" name="javascript-editor"></textarea>
</div>
<div class="jsig-editor">
<h2> Header Editor </h2>
<textarea id="jsig-editor" name="jsig-editor"></textarea>
</div>
<div class="controls">
<button id="check-button">TypeCheck</button>
<button id="share-button">Share</button>
<a href="https://github.com/Raynos/jsig/blob/master/docs/cheatsheet.md">
Cheatsheet
</a>
<a href="https://github.com/Raynos/jsig/blob/master/docs/overview.md">
JSig Overview
</a>
</div>
<div class="error-output">
<div id="error-output"></div>
</div>
</div>
<script src="ui/build.js"></script>
</body>
</html>