minor edits and fixes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-03-02 20:08:41 +04:00
parent 06dc49b97a
commit 011f4630e9
2 changed files with 10 additions and 20 deletions

View File

@ -61,21 +61,17 @@
.current-page-indicator {
display: none;
position: absolute;
box-sizing:border-box;
opacity: 0.8;
}
.editor .current-page-indicator {
display: block;
/*
border: solid blue 10px;
*/
/*
-webkit-transition: all 0.2s ease;
-moz-transition: all 0.2s ease;
-o-transition: all 0.2s ease;
-ms-transition: all 0.2s ease;
transition: all 0.2s ease;
*/
}
</style>
@ -124,16 +120,7 @@ function clearEditor(){
$('.current-page-indicator').children().remove()
}
var toggleEditor = createCSSClassToggler(
'.chrome',
'editor',
function(action){
if(action == 'on'){
setupEditor()
} else {
clearEditor()
}
})
var toggleEditor = createCSSClassToggler('.chrome', 'editor')
$(document).ready(function(){
@ -235,6 +222,9 @@ $(document).ready(function(){
toggleThemes('dark-viewer')
setupEditor()
// hide the splash...
setTimeout(function(){
$('.splash').fadeOut()

View File

@ -17,9 +17,9 @@ var SPECIAL_KEYS = {
13: 'Enter', 34: 'PgDown', 46: 'Del',
16: 'Shift', 35: 'End', 80: 'Backspace',
17: 'Ctrl', 36: 'Home', 91: 'Win',
18: 'Alt', 37: 'Right', 93: 'Menu',
18: 'Alt', 37: 'Left', 93: 'Menu',
20: 'Caps Lock',38: 'Up',
27: 'Esc', 39: 'Left',
27: 'Esc', 39: 'Right',
32: 'Space', 40: 'Down',
// Function Keys...