1
0
Fork 0
mirror of https://github.com/seejohnrun/haste-server.git synced 2024-11-22 20:51:21 +00:00
haste-server/static/index.html
2011-11-18 16:22:00 -05:00

67 lines
1.3 KiB
HTML

<html>
<head>
<title>heist</title>
<link rel="stylesheet" type="text/css" href="solarized_dark.css"/>
<style type="text/css">
body {
background: #002B36;
padding: 0px;
margin: 0px;
}
textarea {
background: transparent;
border: 0px;
color: #fff;
padding: 20px;
width: 100%;
height: 100%;
font-family: monospace;
outline: none;
resize: none;
font-size: 13px;
}
#box {
padding: 0px;
width: 100%;
height: 100%;
}
#box code {
padding: 20px;
}
</style>
<script type="text/javascript" src="jquery-1.7.min.js"></script>
<script type="text/javascript" src="highlight.min.js"></script>
<script type="text/javascript" src="application.js"></script>
<script type="text/javascript">
$(function() {
// Set up
var app = new heist('heist');
$('textarea').focus();
// Handle pops
window.onpopstate = function(evt) {
var path = evt.target.location.pathname;
if (path === '/') {
app.newDocument();
}
else {
app.loadDocument(path.substring(1, path.length));
}
};
});
</script>
</head>
<body>
<pre id="box" style="display:none;"><code></code></pre>
<textarea spellcheck="false" style="display:none;"></textarea>
</body>
</html>