From 58981ad8a86197a99a74184bb4a63409547afcc0 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 4 Mar 2013 17:19:29 +0400 Subject: [PATCH] more tweeking... Signed-off-by: Alex A. Naanou --- index.html | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/index.html b/index.html index f728ee9..40ad839 100755 --- a/index.html +++ b/index.html @@ -185,6 +185,31 @@ border-bottom: solid 50px silver; } +.editor-status { + display: none; +} +.editor .editor-status { + position: fixed; + display: block; + top: 15px; + left: -20px; + z-index: 99999; + padding: 5px; + padding-left: 60px; + padding-right: 15px; + + background: red; + color: white; + + font-size: 14px; + font-style: italic; + font-weight: bold; + + box-shadow: 5px 5px 25px 0px black; + + cursor: hand; +} + @@ -263,7 +288,13 @@ function setupEditor(){ if(togglePageView('?') == 'on'){ toggleInlineEditor('on') } + $('
Editor Mode
') + .appendTo($('.chrome')) + .click(function(){ + toggleEditor('off') + }) } else { + $('.editor-status').remove() toggleInlineEditor('off') } setCurrentPage($('.current.page')) @@ -369,6 +400,12 @@ $(document).ready(function(){ title: 'Global', doc: '', + /* + Esc: function(){ + toggleEditor('?') == 'on' && toggleEditor('off') + }, + */ + Home: firstPage, End: lastPage, Left: {