From 2d4bba5ff09e8dac8990bb43fa530c9ca67a7be4 Mon Sep 17 00:00:00 2001 From: Bhanu Date: Thu, 27 Feb 2014 19:12:10 +0530 Subject: [PATCH] CSS change: Selection box, Opacity reduced to show only popup Added onSelectionstared/ Completed, Event handlers from annotorious --- swtr/static/css/annotorious.css | 6 +++--- swtr/static/js/swtmaker.js | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/swtr/static/css/annotorious.css b/swtr/static/css/annotorious.css index d4eba46..767bf86 100644 --- a/swtr/static/css/annotorious.css +++ b/swtr/static/css/annotorious.css @@ -16,11 +16,11 @@ } .annotorious-item-focus { - opacity:1.0; + opacity:0; } .annotorious-item-unfocus { - opacity:0.4; + opacity:0; } /** Hint/help popup **/ @@ -282,4 +282,4 @@ canvas.hidden { html.hasTouch .annotator-viewer li .annotator-controls, html.hasTouch .annotator-viewer li .annotator-controls { opacity: 1; -} \ No newline at end of file +} diff --git a/swtr/static/js/swtmaker.js b/swtr/static/js/swtmaker.js index b6b513b..03db282 100644 --- a/swtr/static/js/swtmaker.js +++ b/swtr/static/js/swtmaker.js @@ -185,6 +185,12 @@ this.sweetsview = new SweetsView({collection: swtr.sweets}); anno.addHandler('onAnnotationCreated', this.showSwtHelp); anno.addHandler('onAnnotationUpdated', this.showSwtHelp); + anno.addHandler('onSelectionStarted', function(annotation) { + anno.hideAnnotations();}); + anno.addHandler('onSelectionCompleted', function(annotation) { + anno.showAnnotations(); }); + anno.addHandler('onEditorShown', function(annotation) { + anno.hideAnnotations();} ); this.$overlay = $('#app-overlay'); this.$img = $('#annotatable-img'); this.imgURL = this.$img.attr('src'); -- 1.7.10.4