Skip to content

Commit 124aab7

Browse files
Add simulator to editor page
1 parent 04f100b commit 124aab7

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

simulator.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="description" content="Write, run, debug and share python code in your browser" />
6+
<meta name="author" content="pddring">
7+
<title>Create with code</title>
8+
9+
<!-- See http://blog.withcode.uk/about/license-and-acknowledgements/ for libraries used-->
10+
<script src="lib/cm/codemirror.js"></script>
11+
<script src="lib/cm/active-line.js"></script>
12+
<link rel="stylesheet" href="lib/cm/codemirror.css">
13+
<link rel="stylesheet" href="lib/cm/cobalt.css">
14+
<link rel="stylesheet" href="lib/cm/blackboard.css">
15+
<link rel="stylesheet" href="styles.css">
16+
<script src="lib/cm/python.js"></script>
17+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
18+
<script src="lib/lib.js"></script>
19+
<script src="lib/skulpt/skulpt.min.js"></script>
20+
<script src="lib/skulpt/skulpt-stdlib.js"></script>
21+
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css">
22+
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
23+
<script src="lib/jq/jquery.ui.touch-punch.min.js"></script>
24+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
25+
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
26+
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
27+
<link href='https://fonts.googleapis.com/css?family=Quicksand' rel='stylesheet' type='text/css'>
28+
</head>
29+
30+
<body>
31+
32+
33+
34+
<div id="output"></div>
35+
36+
<script>
37+
var toolsVisible = false;
38+
// load python IDE
39+
$(function() {
40+
PythonIDE.init();
41+
PythonIDE.runCode("normal");
42+
});
43+
</script>
44+
45+
</body>
46+
</html>

0 commit comments

Comments
 (0)