1
0
Fork 0
mirror of https://github.com/seejohnrun/haste-server.git synced 2024-11-01 03:21:21 +00:00
haste-server/static/index.html

69 lines
1.9 KiB
HTML
Raw Permalink Normal View History

2011-11-18 03:44:48 +00:00
<html>
<head>
2011-11-23 22:09:12 +00:00
<title>hastebin</title>
2011-11-18 03:44:48 +00:00
<link rel="stylesheet" type="text/css" href="solarized_dark.css"/>
2011-11-18 22:23:23 +00:00
<link rel="stylesheet" type="text/css" href="application.css"/>
2011-11-18 03:44:48 +00:00
2011-11-23 17:28:08 +00:00
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
2011-11-18 03:44:48 +00:00
<script type="text/javascript" src="highlight.min.js"></script>
2011-11-27 20:49:17 +00:00
<script type="text/javascript" src="application.min.js"></script>
2011-11-18 03:44:48 +00:00
2011-11-23 01:01:09 +00:00
<meta name="robots" content="noindex,nofollow"/>
2011-11-18 15:17:41 +00:00
<script type="text/javascript">
2011-11-21 14:56:33 +00:00
var app = null;
// Handle pops
var handlePop = function(evt) {
var path = evt.target.location.pathname;
2011-11-28 06:27:41 +00:00
if (path === '/') { app.newDocument(true); }
else { app.loadDocument(path.substring(1, path.length)); }
2011-11-21 14:56:33 +00:00
};
2011-11-28 06:27:41 +00:00
// Set up the pop state to handle loads, skipping the first load
// to make chrome behave like others:
// http://code.google.com/p/chromium/issues/detail?id=63040
setTimeout(function() {
window.onpopstate = function(evt) {
try { handlePop(evt); } catch(err) { /* not loaded yet */ }
};
}, 1000);
// Construct app and load initial path
2011-11-18 15:17:41 +00:00
$(function() {
2011-11-23 22:09:12 +00:00
app = new haste('hastebin', { twitter: true });
2011-11-21 14:56:33 +00:00
handlePop({ target: window });
2011-11-18 15:17:41 +00:00
});
</script>
2011-11-18 03:44:48 +00:00
</head>
<body>
2011-12-19 17:44:12 +00:00
<ul id="messages"></ul>
2011-11-18 03:44:48 +00:00
2011-11-23 16:31:50 +00:00
<div id="key">
2011-11-28 14:39:31 +00:00
<div id="pointer" style="display:none;"></div>
2011-11-28 14:56:06 +00:00
<div id="box1">
2011-11-28 04:41:18 +00:00
<a href="/about.md" class="logo"></a>
2011-11-23 16:31:50 +00:00
</div>
2011-11-28 14:56:06 +00:00
<div id="box2">
2011-11-23 17:12:01 +00:00
<div class="save function"></div>
<div class="new function"></div>
<div class="duplicate function"></div>
2012-01-11 04:06:44 +00:00
<div class="raw function"></div>
2011-11-23 17:12:01 +00:00
<div class="twitter function"></div>
2011-11-23 16:31:50 +00:00
</div>
2011-11-28 14:56:06 +00:00
<div id="box3" style="display:none;">
2011-11-23 16:31:50 +00:00
<div class="label"></div>
<div class="shortcut"></div>
</div>
</div>
<div id="linenos"></div>
2011-11-21 14:56:33 +00:00
<pre id="box" style="display:none;" tabindex="0"><code></code></pre>
2011-11-18 15:17:41 +00:00
<textarea spellcheck="false" style="display:none;"></textarea>
2011-11-18 03:44:48 +00:00
</body>
</html>