From 45b1d6a6cda15f1bb5d4d8dc6565fa3465f65980 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 3 Mar 2013 03:20:28 +0400 Subject: [PATCH] minor tweeks... Signed-off-by: Alex A. Naanou --- index.html | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index f2b6325..c5cfcb8 100755 --- a/index.html +++ b/index.html @@ -245,6 +245,17 @@ function setupEditor(){ }) + window.toggleEditor = createCSSClassToggler( + '.chrome', + 'editor', + function(){ + setTransitionDuration($('.magazine'), 0) + }, + function(){ + setCurrentPage($('.current.page')) + }) + + // move the page indicator... // NOTE: this is to be used for page-specific toolbars etc. $('.viewer') @@ -263,19 +274,12 @@ function setupEditor(){ }) }) } + + function clearEditor(){ $('.current-page-indicator').children().remove() } -var toggleEditor = createCSSClassToggler( - '.chrome', - 'editor', - function(){ - setTransitionDuration($('.magazine'), 0) - }, - function(){ - setCurrentPage($('.current.page')) - }) $(document).ready(function(){