-
Notifications
You must be signed in to change notification settings - Fork 8
/
embed.html
48 lines (41 loc) · 2.12 KB
/
embed.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
<html>
<head>
<!-- all of the requirements for an embedded websheet: -->
<script type='text/javascript' src='jquery.min.js'></script>
<script type='text/javascript' src='CodeMirror/lib/codemirror.js'></script>
<script type='text/javascript' src='CodeMirror/mode/clike/clike.js'></script>
<script type='text/javascript' src='CodeMirror/addon/selection/mark-selection.js'></script>
<script type='text/javascript' src='CodeMirror/addon/edit/matchbrackets.js'></script>
<link rel='stylesheet' type='text/css' href='CodeMirror/lib/codemirror.css'/>
<link rel='stylesheet' type='text/css' href='CodeMirror/theme/neat.css'/>
<link rel='stylesheet' type='text/css' href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,700'/>
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<link rel='stylesheet' type='text/css' href='websheets.css'/>
<script type='text/javascript' src='websheets.js'></script>
<link rel="icon" type="image/png" href="favicon.png">
<script type='text/x-mathjax-config'>
MathJax.Hub.Config({tex2jax: {displayMath: [ ['$$','$$'] ], inlineMath: [['$','$'] ]} });
</script>
<!-- configuration options: -->
<script type='text/javascript'>
websheets.urlbase = '.'; // where do load.php, submit.php etc live?
websheets.header_toggling = true; // start closed and open/close by a click?
websheets.require_login = false; // refuse to work with non-logged in users?
websheets.auth_by_embed = true; // first load will check user login status
</script>
</head>
<body>
<div id='info' style='text-align:center'></div>
<!-- the websheets! -->
<p>Here is a Hello, World exercise in Java:
<div class='websheet-stub'>java/00-intro/HelloWorld</div>
<p>Here is a C++ scratchpad:
<div class='websheet-stub'>cpp/scratch</div>
<p>Here is a multiple choice problem:
<div class='websheet-stub'>cpp/cs103/lab1/hw</div>
<p><i>Note: at present, we have only tested embedding Websheets on the same server
that is hosting the Websheets system. To overcome this will require some
changes to the system, due to XSS restrictions.</i>
</body>