2011-11-18 11:44:48 +08:00
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
|
2011-11-19 06:23:23 +08:00
|
|
|
<title>haste</title>
|
2011-11-18 11:44:48 +08:00
|
|
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="solarized_dark.css"/>
|
2011-11-19 06:23:23 +08:00
|
|
|
<link rel="stylesheet" type="text/css" href="application.css"/>
|
2011-11-18 11:44:48 +08:00
|
|
|
|
2011-11-18 11:47:43 +08:00
|
|
|
<script type="text/javascript" src="jquery-1.7.min.js"></script>
|
2011-11-18 11:44:48 +08:00
|
|
|
<script type="text/javascript" src="highlight.min.js"></script>
|
|
|
|
<script type="text/javascript" src="application.js"></script>
|
|
|
|
|
2011-11-23 09:01:09 +08:00
|
|
|
<meta name="robots" content="noindex,nofollow"/>
|
|
|
|
|
2011-11-18 23:17:41 +08:00
|
|
|
<script type="text/javascript">
|
2011-11-21 22:56:33 +08:00
|
|
|
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
|
2011-11-18 23:17:41 +08:00
|
|
|
$(function() {
|
2011-11-21 22:56:33 +08:00
|
|
|
app = new haste('haste', { twitter: true });
|
|
|
|
handlePop({ target: window });
|
2011-11-18 23:17:41 +08:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2011-11-18 11:44:48 +08:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
2011-11-24 00:31:50 +08:00
|
|
|
<div id="key">
|
|
|
|
<div class="box1">
|
|
|
|
<a href="/about" class="logo"></a>
|
|
|
|
</div>
|
|
|
|
<div class="box2">
|
2011-11-24 01:12:01 +08:00
|
|
|
<div class="save function"></div>
|
|
|
|
<div class="new function"></div>
|
|
|
|
<div class="duplicate function"></div>
|
|
|
|
<div class="link function"></div>
|
|
|
|
<div class="twitter function"></div>
|
2011-11-24 00:31:50 +08:00
|
|
|
</div>
|
|
|
|
<div class="box3" style="display:none;">
|
|
|
|
<div class="label"></div>
|
|
|
|
<div class="shortcut"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2011-11-21 22:56:33 +08:00
|
|
|
<pre id="box" style="display:none;" tabindex="0"><code></code></pre>
|
2011-11-18 23:17:41 +08:00
|
|
|
<textarea spellcheck="false" style="display:none;"></textarea>
|
2011-11-18 11:44:48 +08:00
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|