mirror of
https://github.com/SunRed/haste-server.git
synced 2024-11-24 02:00:17 +01:00
Clean up animations
This commit is contained in:
parent
73be6e31d9
commit
6499ad3190
2 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
body {
|
body {
|
||||||
background: #002B36;
|
background: #002B36;
|
||||||
padding: 0px;
|
padding: 20px;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ textarea {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: 0px;
|
border: 0px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
padding: 20px;
|
padding: 0px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
|
@ -24,7 +24,7 @@ textarea {
|
||||||
}
|
}
|
||||||
|
|
||||||
#box code {
|
#box code {
|
||||||
padding: 20px;
|
padding: 0px;
|
||||||
background: transparent !important; /* don't hide hastebox */
|
background: transparent !important; /* don't hide hastebox */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -91,8 +91,8 @@ haste.prototype.fullKey = function() {
|
||||||
// Remove the current document (if there is one)
|
// Remove the current document (if there is one)
|
||||||
// and set up for a new one
|
// and set up for a new one
|
||||||
haste.prototype.newDocument = function(hideHistory) {
|
haste.prototype.newDocument = function(hideHistory) {
|
||||||
this.doc = new haste_document();
|
|
||||||
this.$box.hide();
|
this.$box.hide();
|
||||||
|
this.doc = new haste_document();
|
||||||
if (!hideHistory) {
|
if (!hideHistory) {
|
||||||
window.history.pushState(null, this.appName, '/');
|
window.history.pushState(null, this.appName, '/');
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,7 @@ haste.prototype.newDocument = function(hideHistory) {
|
||||||
this.$textarea.show('fast', function() {
|
this.$textarea.show('fast', function() {
|
||||||
this.focus();
|
this.focus();
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
// Load a document and show it
|
// Load a document and show it
|
||||||
haste.prototype.loadDocument = function(key) {
|
haste.prototype.loadDocument = function(key) {
|
||||||
|
|
Loading…
Reference in a new issue