2021-02-14 21:34:46 +01:00
|
|
|
<!DOCTYPE html>
|
2012-03-19 23:17:39 +01:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>hastebin</title>
|
2021-02-14 21:34:46 +01:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="robots" content="noindex,nofollow">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
|
|
|
<link rel="stylesheet" type="text/css" href="solarized_dark.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="application.css">
|
2012-03-19 23:17:39 +01:00
|
|
|
|
|
|
|
<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="application.min.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
2020-08-26 04:54:58 +02:00
|
|
|
let app = null;
|
2012-03-19 23:17:39 +01:00
|
|
|
// Handle pops
|
2020-08-26 04:54:58 +02:00
|
|
|
let handlePop = function(evt){
|
2020-09-05 18:13:49 +02:00
|
|
|
let path = evt.target.location.href;
|
|
|
|
if (path == app.baseUrl) app.newDocument(true);
|
|
|
|
else app.loadDocument(path.split('/').slice(-1)[0]);
|
2012-03-19 23:17:39 +01: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
|
2020-08-26 04:54:58 +02:00
|
|
|
setTimeout(function(){
|
|
|
|
window.onpopstate = function(evt){
|
2020-08-28 04:39:03 +02:00
|
|
|
try { handlePop(evt); } catch(err){ /* not loaded yet */ }
|
2012-03-19 23:17:39 +01:00
|
|
|
};
|
|
|
|
}, 1000);
|
|
|
|
// Construct app and load initial path
|
2020-08-26 04:54:58 +02:00
|
|
|
$(function(){
|
2020-09-05 18:13:49 +02:00
|
|
|
let baseUrl = window.location.href.split('/');
|
|
|
|
console.log(baseUrl);
|
|
|
|
baseUrl = baseUrl.slice(0, baseUrl.length - 1).join('/') + '/';
|
|
|
|
console.log(baseUrl);
|
|
|
|
// baseUrl = 'https://plazatest.zneix.eu/haste/';
|
|
|
|
app = new haste('hastebin', { twitter: true, baseUrl: baseUrl });
|
2012-03-19 23:17:39 +01:00
|
|
|
handlePop({ target: window });
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<ul id="messages"></ul>
|
|
|
|
|
|
|
|
<div id="key">
|
2020-09-20 18:18:38 +02:00
|
|
|
<div id="pointer" style="display: none;"></div>
|
2012-03-19 23:17:39 +01:00
|
|
|
<div id="box1">
|
2020-09-05 18:13:49 +02:00
|
|
|
<a href="about.md" class="logo"></a>
|
2012-03-19 23:17:39 +01:00
|
|
|
</div>
|
|
|
|
<div id="box2">
|
2016-07-30 16:15:26 +02:00
|
|
|
<button class="save function button-picture">Save</button>
|
|
|
|
<button class="new function button-picture">New</button>
|
|
|
|
<button class="duplicate function button-picture">Duplicate & Edit</button>
|
|
|
|
<button class="raw function button-picture">Just Text</button>
|
|
|
|
<button class="twitter function button-picture">Twitter</button>
|
2012-03-19 23:17:39 +01:00
|
|
|
</div>
|
|
|
|
<div id="box3" style="display:none;">
|
|
|
|
<div class="label"></div>
|
|
|
|
<div class="shortcut"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="linenos"></div>
|
2020-09-20 18:18:38 +02:00
|
|
|
<pre id="box" style="display: none;" class="hljs" tabindex="0"><code></code></pre>
|
2021-02-14 21:34:46 +01:00
|
|
|
<textarea spellcheck="false" style="display: none;"></textarea>
|