-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
127 lines (106 loc) · 4.95 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
123
124
125
126
127
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.15.2/codemirror.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.15.2/codemirror.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.17.0/theme/monokai.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.15.2/mode/mllike/mllike.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.15.2/mode/javascript/javascript.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.15.2/addon/edit/matchbrackets.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.17.0/addon/edit/closebrackets.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.5.12/clipboard.min.js"></script>
<link rel="stylesheet" type="text/css" href="theme.css">
<script src="https://code.jquery.com/jquery-2.2.4.min.js"
integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<title>ReScript playground</title>
</head>
<body style="background-color: #272822; font-family: 'Open Sans', sans-serif;">
<nav class="navbar navbar-inverse navbar-static-top" style="margin-bottom: 0px">
<div class="container-fluid">
<div class="collapse navbar-collapse navbar-header"> <!-- Hides brand on small width -->
<div class="navbar-brand" style="color: white"><a href="https://github.com/rescript-lang/rescript-compiler" target="_blank">ReScript on GitHub</a></div>
</div>
<div>
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" id = "examplesLabel" class="dropdown-toggle" data-toggle="dropdown">Default_Example<span class="caret"></span></a>
<ul id="examplesDropdown" class="dropdown-menu">
</ul>
</li>
<li><button class="btn navbar-btn navbar-button" data-loading-text="Getting link..."type="button" id="share">Share</button></li>
</ul>
<div class="checkbox navbar-btn navbar-right">
<label class="navbar-link repl-toolbar" >
<input type="checkbox" id="option-non-export">
Remove unused code
</label>
<label class="navbar-link repl-toolbar">
<input type="checkbox" id="option-eval" checked>
Eval
</label>
</div>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<div id="shareModal" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<h4 class="modal-title">Share</h4>
</div>
<div class="modal-body">
<div class = "row">
<div class = "col-sm-10" id="shareModalBody">
</div>
<div class="col-sm-2">
<button class="btn" id="copyButton" data-clipboard-target="#shareModalBody">
<span class="glyphicon glyphicon-copy" id="copyGlyph" aria-hidden="true"></span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="height: 10000px">
<div class="tab-full">
<div class="tab" style="width: 50%">
<h3>ReScript</h2>
</div>
<div class="tab" style="width: 25%">
<h3>JavaScript</h2>
</div>
</div>
<div class = "right-border" style="width: 50%;float:left">
<textarea id="ocamlcode#1">
print_endline "Hello ReScript!"
</textarea>
</div>
<div style="width: 50%; float:right">
<textarea id="error" style="background-color: #e0e0e0">
</textarea>
</div>
<div style="width: 50%; float:right">
<textarea id="output" style="background-color: #e0e0e0">
</textarea>
</div>
<div style="width: 50%;float:right"; >
<textarea id="jscode#1" style="background-color: #008803">
'use strict';
console.log("Hello ReScript!");
/* Not a pure module */
</textarea>
</div>
</div>
<!--<p> can you see me</p>-->
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.22/require.js"></script> -->
<script type="module" src="./edit.js" ></script>
<script type="text/javascript" src="./exports.js"> </script>
<script type="module" src="./loader.js"></script>
<script type="module" src="./init.js"></script>
</body>