Commit 2d4bba5ff09e8dac8990bb43fa530c9ca67a7be4

CSS change: Selection box, Opacity reduced to show only popup
Added onSelectionstared/ Completed, Event handlers from annotorious
  • Diff rendering mode:
  • inline
  • side by side

swtr/static/css/annotorious.css

16}16}
1717
18.annotorious-item-focus {18.annotorious-item-focus {
19 opacity:1.0;
19 opacity:0;
20}20}
2121
22.annotorious-item-unfocus {22.annotorious-item-unfocus {
23 opacity:0.4;
23 opacity:0;
24}24}
2525
26/** Hint/help popup **/26/** Hint/help popup **/

swtr/static/js/swtmaker.js

185 this.sweetsview = new SweetsView({collection: swtr.sweets});185 this.sweetsview = new SweetsView({collection: swtr.sweets});
186 anno.addHandler('onAnnotationCreated', this.showSwtHelp);186 anno.addHandler('onAnnotationCreated', this.showSwtHelp);
187 anno.addHandler('onAnnotationUpdated', this.showSwtHelp);187 anno.addHandler('onAnnotationUpdated', this.showSwtHelp);
188 anno.addHandler('onSelectionStarted', function(annotation) {
189 anno.hideAnnotations();});
190 anno.addHandler('onSelectionCompleted', function(annotation) {
191 anno.showAnnotations(); });
192 anno.addHandler('onEditorShown', function(annotation) {
193 anno.hideAnnotations();} );
188 this.$overlay = $('#app-overlay');194 this.$overlay = $('#app-overlay');
189 this.$img = $('#annotatable-img');195 this.$img = $('#annotatable-img');
190 this.imgURL = this.$img.attr('src');196 this.imgURL = this.$img.attr('src');