mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-22 13:53:28 -07:00
Update index.html
This commit is contained in:
parent
f0d8ebcb92
commit
b52afafac8
1 changed files with 63 additions and 55 deletions
|
@ -1,68 +1,76 @@
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
<title>hastebin</title>
|
<title>hastebin</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8"/>
|
||||||
<link rel="stylesheet" type="text/css" href="solarized_dark.css"/>
|
<link rel="stylesheet" type="text/css" href="solarized_dark.css"/>
|
||||||
<link rel="stylesheet" type="text/css" href="application.css"/>
|
<link rel="stylesheet" type="text/css" href="application.css"/>
|
||||||
|
|
||||||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
|
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
|
||||||
<script type="text/javascript" src="highlight.min.js"></script>
|
<script type="text/javascript" src="highlight.min.js"></script>
|
||||||
<script type="text/javascript" src="application.min.js"></script>
|
<script type="text/javascript" src="application.min.js"></script>
|
||||||
|
|
||||||
<meta name="robots" content="noindex,nofollow"/>
|
<meta name="robots" content="noindex,nofollow"/>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var app = null;
|
let app = null;
|
||||||
// Handle pops
|
// Handle pops
|
||||||
var handlePop = function(evt) {
|
const handlePop = function (evt) {
|
||||||
var path = evt.target.location.pathname;
|
const path = evt.target.location.pathname;
|
||||||
if (path === '/') { app.newDocument(true); }
|
if (path === '/') {
|
||||||
else { app.loadDocument(path.substring(1, path.length)); }
|
app.newDocument(true);
|
||||||
};
|
} else {
|
||||||
// Set up the pop state to handle loads, skipping the first load
|
app.loadDocument(path.substring(1, path.length));
|
||||||
// to make chrome behave like others:
|
}
|
||||||
// http://code.google.com/p/chromium/issues/detail?id=63040
|
};
|
||||||
setTimeout(function() {
|
// Set up the pop state to handle loads, skipping the first load
|
||||||
window.onpopstate = function(evt) {
|
// to make chrome behave like others:
|
||||||
try { handlePop(evt); } catch(err) { /* not loaded yet */ }
|
// http://code.google.com/p/chromium/issues/detail?id=63040
|
||||||
};
|
setTimeout(function () {
|
||||||
}, 1000);
|
window.onpopstate = function (evt) {
|
||||||
// Construct app and load initial path
|
try {
|
||||||
$(function() {
|
handlePop(evt);
|
||||||
app = new haste('hastebin', { twitter: true });
|
} catch (err) { /* not loaded yet */
|
||||||
handlePop({ target: window });
|
}
|
||||||
});
|
};
|
||||||
</script>
|
}, 1000);
|
||||||
|
// Construct app and load initial path
|
||||||
|
$(function () {
|
||||||
|
app = new haste('hastebin', {twitter: true});
|
||||||
|
handlePop({target: window});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<ul id="messages"></ul>
|
<ul id="messages"></ul>
|
||||||
|
|
||||||
<div id="key">
|
<div id="key">
|
||||||
<div id="pointer" style="display:none;"></div>
|
<div id="pointer" style="display:none;"></div>
|
||||||
<div id="box1">
|
<div id="box1">
|
||||||
<a href="/about.md" class="logo"></a>
|
<a href="/about.md" class="logo"></a>
|
||||||
</div>
|
</div>
|
||||||
<div id="box2">
|
<div id="box2">
|
||||||
<button class="save function button-picture">Save</button>
|
<button class="save function button-picture">Save</button>
|
||||||
<button class="new function button-picture">New</button>
|
<button class="new function button-picture">New</button>
|
||||||
<button class="duplicate function button-picture">Duplicate & Edit</button>
|
<button class="duplicate function button-picture">Duplicate & Edit</button>
|
||||||
<button class="raw function button-picture">Just Text</button>
|
<button class="raw function button-picture">Just Text</button>
|
||||||
<button class="twitter function button-picture">Twitter</button>
|
<button class="twitter function button-picture">Twitter</button>
|
||||||
</div>
|
</div>
|
||||||
<div id="box3" style="display:none;">
|
<div id="box3" style="display:none;">
|
||||||
<div class="label"></div>
|
<div class="label"></div>
|
||||||
<div class="shortcut"></div>
|
<div class="shortcut"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="linenos"></div>
|
<div id="linenos"></div>
|
||||||
<pre id="box" style="display:none;" class="hljs" tabindex="0"><code></code></pre>
|
<pre id="box" style="display:none;" class="hljs" tabindex="0"><code></code></pre>
|
||||||
<textarea spellcheck="false" style="display:none;"></textarea>
|
<label>
|
||||||
|
<textarea spellcheck="false" style="display:none;"></textarea>
|
||||||
|
</label>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue