Skip to content

Instantly share code, notes, and snippets.

@jasongrout
Created June 6, 2012 14:35
Show Gist options
  • Select an option

  • Save jasongrout/2882264 to your computer and use it in GitHub Desktop.

Select an option

Save jasongrout/2882264 to your computer and use it in GitHub Desktop.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<meta name="viewport" content="width=device-width">
<title>Sage Cell Server</title>
<script type="text/javascript" src="http://localhost:8080/static/jquery.min.js"></script>
<script type="text/javascript" src="http://localhost:8080/embedded_sagecell.js"></script>
</head>
<body>
<!-- <div id="mytest"><script type="text/x-sage">1+1</script></div> -->
<textarea id="mytest"><script type="text/x-sage">1+1</script></textarea>
<script type="text/javascript">
$(function () {
sagecell.makeSagecell({
inputLocation: '#mytest',
template: sagecell.templates.restricted,
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment