mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-22 10:43:10 -07:00
Merge dc09dc463e
into d922667f56
This commit is contained in:
commit
81ca9f17eb
2 changed files with 33 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
||||||
body {
|
body {
|
||||||
background: #002B36;
|
background: #002B36;
|
||||||
padding: 20px 50px;
|
padding: 20px 20px 20px 50px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,13 +17,15 @@ textarea {
|
||||||
outline: none;
|
outline: none;
|
||||||
resize: none;
|
resize: none;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
|
padding-bottom: 95px;
|
||||||
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* the line numbers */
|
/* the line numbers */
|
||||||
|
|
||||||
#linenos {
|
#linenos {
|
||||||
color: #7d7d7d;
|
color: #7d7d7d;
|
||||||
z-index: -1000;
|
/* z-index: -1000; */
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 20px;
|
top: 20px;
|
||||||
left: 0px;
|
left: 0px;
|
||||||
|
@ -31,6 +33,7 @@ textarea {
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* code box when locked */
|
/* code box when locked */
|
||||||
|
@ -42,8 +45,11 @@ textarea {
|
||||||
border: 0px;
|
border: 0px;
|
||||||
outline: none;
|
outline: none;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
padding-right: 360px;
|
padding-bottom: 95px;
|
||||||
overflow: inherit;
|
overflow-x: auto;
|
||||||
|
overflow-y: hidden;
|
||||||
|
box-sizing: border-box;
|
||||||
|
user-select: text;
|
||||||
}
|
}
|
||||||
|
|
||||||
#box code {
|
#box code {
|
||||||
|
@ -55,7 +61,7 @@ textarea {
|
||||||
|
|
||||||
#key {
|
#key {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0px;
|
bottom: 0px;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
z-index: +1000; /* watch out */
|
z-index: +1000; /* watch out */
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
<title>hastebin</title>
|
<title>hastebin</title>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<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"/>
|
||||||
|
|
||||||
|
@ -33,7 +34,23 @@
|
||||||
$(function() {
|
$(function() {
|
||||||
app = new haste('hastebin', { twitter: true });
|
app = new haste('hastebin', { twitter: true });
|
||||||
handlePop({ target: window });
|
handlePop({ target: window });
|
||||||
|
removeBanner();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function removeBanner() {
|
||||||
|
var box1 = document.getElementById('box1');
|
||||||
|
box1.style.transition = 'opacity 1s';
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
box1.style.opacity = 0;
|
||||||
|
box1.addEventListener('transitionend', function(event) {
|
||||||
|
box1.parentElement.removeChild(box1);
|
||||||
|
}, {
|
||||||
|
capture: false,
|
||||||
|
once: true
|
||||||
|
});
|
||||||
|
}, 1000);
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
@ -42,7 +59,11 @@
|
||||||
<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="box3" style="display:none;">
|
||||||
|
<div class="label"></div>
|
||||||
|
<div class="shortcut"></div>
|
||||||
|
</div>
|
||||||
<div id="box1">
|
<div id="box1">
|
||||||
<a href="/about.md" class="logo"></a>
|
<a href="/about.md" class="logo"></a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -53,10 +74,6 @@
|
||||||
<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 class="label"></div>
|
|
||||||
<div class="shortcut"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="linenos"></div>
|
<div id="linenos"></div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue