1
0
Fork 0
mirror of https://github.com/SunRed/haste-server.git synced 2024-11-01 01:30:21 +01:00

Added a command key

This commit is contained in:
John Crepezzi 2011-11-18 18:17:49 -05:00
parent a83ae523b4
commit 01b622821e
3 changed files with 28 additions and 2 deletions

View file

@ -3,6 +3,7 @@ body {
padding: 0px;
margin: 0px;
}
textarea {
background: transparent;
border: 0px;
@ -15,11 +16,31 @@ textarea {
resize: none;
font-size: 13px;
}
#box {
padding: 0px;
width: 100%;
height: 100%;
}
#box code {
padding: 20px;
background: transparent !important; /* don't hide hastebox */
}
#key {
position: absolute;
top: 20px;
right: 20px;
text-align: right;
z-index: -1000; /* watch out */
color: #999;
font-size: 13px;
font-family: monospace;
}
#key em {
display: block;
margin-bottom: 5px;
color: #ccc !important;
}

View file

@ -59,8 +59,6 @@ var haste = function(appName) {
this.configureShortcuts();
};
// TODO add key of commands
// Set the page title - include the appName
haste.prototype.setTitle = function(ext) {
var title = ext ? this.appName + ' - ' + ext : this.appName;

View file

@ -33,6 +33,13 @@
<body>
<div id="key">
<em>haste</em>
^s - save<br>
^n - new<br>
^d - duplicate
</div>
<pre id="box" style="display:none;"><code></code></pre>
<textarea spellcheck="false" style="display:none;"></textarea>