mirror of
https://github.com/SunRed/haste-server.git
synced 2024-11-23 17:50:19 +01:00
70 lines
1.7 KiB
HTML
70 lines
1.7 KiB
HTML
<html>
|
|
|
|
<head>
|
|
|
|
<title>haste</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="solarized_dark.css"/>
|
|
<link rel="stylesheet" type="text/css" href="application.css"/>
|
|
|
|
<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>
|
|
|
|
<meta name="robots" content="noindex,nofollow"/>
|
|
|
|
<script type="text/javascript">
|
|
var app = null;
|
|
// Handle pops
|
|
var handlePop = function(evt) {
|
|
var path = evt.target.location.pathname;
|
|
if (path === '/') {
|
|
app.newDocument(true);
|
|
}
|
|
else {
|
|
app.loadDocument(path.substring(1, path.length));
|
|
}
|
|
};
|
|
// If pop before loading jquery, delay load
|
|
window.onpopstate = function(evt) {
|
|
try {
|
|
handlePop(evt);
|
|
} catch(err) {
|
|
// not loaded yet
|
|
}
|
|
};
|
|
// Construct app and load if not loaded
|
|
$(function() {
|
|
app = new haste('haste', { twitter: true });
|
|
handlePop({ target: window });
|
|
});
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="key">
|
|
<div id="pointer" style="display:none;"></div>
|
|
<div class="box1">
|
|
<a href="/about" class="logo"></a>
|
|
</div>
|
|
<div class="box2">
|
|
<a href="#" class="save function"></a>
|
|
<a href="#" class="new function"></a>
|
|
<a href="#" class="duplicate function"></a>
|
|
<a href="#" class="link function"></a>
|
|
<a href="#" class="twitter function"></a>
|
|
</div>
|
|
<div class="box3" style="display:none;">
|
|
<div class="label"></div>
|
|
<div class="shortcut"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<pre id="box" style="display:none;" tabindex="0"><code></code></pre>
|
|
<textarea spellcheck="false" style="display:none;"></textarea>
|
|
|
|
</body>
|
|
|
|
</html>
|