Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions js-demo/examples/examples.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"Default" :
"Default Example" :
{ "file" : "default.ml",
"eval" : true
},
},
"Event Handler" :
{ "file" : "event_handler.ml",
"eval" : false},
Expand All @@ -20,24 +20,24 @@
"file" : "fp.ml",
"eval" : true
},
"Curry optimization" :
"Curry Optimization" :
{
"file" : "curry.ml",
"eval" : true
},
"For loop" : {
"For Loop" : {
"file" : "for_loop.ml",
"eval" : true
},
"Use standard library" : {
"Use Standard Library" : {
"file" : "use_stdlib.ml",
"eval" : true
},
"JS objects" : {
"JS Objects" : {
"file" : "js_object.ml",
"eval" : true
},
"Left pad" : {
"Left Pad" : {
"file" : "left_pad.ml",
"eval" : true
}
Expand Down
34 changes: 17 additions & 17 deletions js-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<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"
<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>
Expand All @@ -23,37 +23,37 @@

<nav class="navbar navbar-inverse navbar-static-top" style="margin-bottom: 0px">
<div class="container-fluid">
<div class="navbar-brand" style="color: white">BuckleScript</div>
<div class="collapse navbar-collapse navbar-header"> <!-- Hides brand on small width -->
<div class="navbar-brand" style="color: white">BuckleScript</div>
</div>

<div>
<ul class="nav navbar-nav">
<li><a href="https://github.com/bloomberg/bucklescript" target="_blank">Fork me on GitHub</a></li>
<div class="navbar-brand examples"> Examples:</div>

<li class="dropdown">
<a href="#" id = "examplesLabel" class="dropdown-toggle" data-toggle="dropdown">Default<span class="caret"></span></a>
<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 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">
Expand Down Expand Up @@ -92,7 +92,7 @@ <h3>JavaScript</h2>

<div class = "right-border" style="width: 50%;float:left">
<textarea id="ocamlcode#1">
Js.log "Hello BuckleScript!"
Js.log "Hello BuckleScript!"
</textarea>
</div>
<div style="width: 50%; float:right">
Expand Down