Skip to content

Commit

Permalink
move script tags to end of body
Browse files Browse the repository at this point in the history
  • Loading branch information
dvberkel committed Feb 27, 2020
1 parent 59f1d2b commit c993593
Showing 1 changed file with 23 additions and 33 deletions.
56 changes: 23 additions & 33 deletions templates/index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js" type="text/javascript"></script>
<script src="skulpt.min.js" type="text/javascript"></script>
<script src="skulpt-stdlib.js" type="text/javascript"></script>

<title>Leer programmeren met Hedy</title>
<style type="text/css" media="screen">
#editor {
Expand All @@ -14,6 +10,29 @@
</head>

<body>
<h3>Hedy: Level 1</h3>
In Level 1 kun je deze commando's gebruiken:<br>
<ul>
<li>Iets printen met print. Bijvoorbeeld: print Hallo welkom bij Hedy<button type="button" onclick="print_demo()">Probeer dit</button> </li>
<li>Iets vragen met ask. Bijvoorbeeld: ask Wat is je lievelingskleur<button type="button" onclick="ask_demo()">Probeer dit</button></li>
</ul>
<div id="editor">print Hallo wereld</div>
<br>
<form>
<button type="button" onclick="runit()">Voer de code uit</button>
</form>
<pre id="output" ></pre>
Latest deploy: Feb 17th, 2020

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js" type="text/javascript"></script>
<script src="https://pagecdn.io/lib/ace/1.4.7/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="skulpt.min.js" type="text/javascript"></script>
<script src="skulpt-stdlib.js" type="text/javascript"></script>
<script>
var editor = ace.edit("editor");
editor.setTheme("ace/theme/monokai");
// editor.session.setMode("ace/mode/javascript");
</script>

<script type="text/javascript">
// output functions are configurable. This one just appends some text
Expand Down Expand Up @@ -86,34 +105,5 @@

}
</script>

<h3>Hedy: Level 1</h3>
In Level 1 kun je deze commando's gebruiken:<br>
<ul>
<li>Iets printen met print. Bijvoorbeeld: print Hallo welkom bij Hedy<button type="button" onclick="print_demo()">Probeer dit</button> </li>
<li>Iets vragen met ask. Bijvoorbeeld: ask Wat is je lievelingskleur<button type="button" onclick="ask_demo()">Probeer dit</button></li>
</ul>


<div id="editor">print Hallo wereld</div>
<br>

<script src="https://pagecdn.io/lib/ace/1.4.7/ace.js" type="text/javascript" charset="utf-8"></script>
<script>
var editor = ace.edit("editor");
editor.setTheme("ace/theme/monokai");
// editor.session.setMode("ace/mode/javascript");
</script>




<form>
<button type="button" onclick="runit()">Voer de code uit</button>
</form>

<pre id="output" ></pre>
Latest deploy: Feb 17th, 2020
</body>

</html>

0 comments on commit c993593

Please sign in to comment.