Commit 8e576dbec8a0fb151f12898d1665cc3a886c0eba

Enabling annotations for images and links
  
5757 var onHover = function(event) {
5858 var elem = event.currentTarget;
5959 //console.log(elem.style);
60 elem.addEventListener('click', onClick);
60 elem.addEventListener('click', onClick, false);
6161 elem.style.border = '1px solid black';
6262 elem.style.boxShadow = '1px 5px 5px #ccc';
6363 //elem.style.background = 'red';
7373 elem.removeEventListener('click', onClick);
7474 };
7575 var onClick = function(event) {
76 event.stopPropagation();
76 console.log(event);
77 $(event).preventDefault();
78 $(event).stopPropagation();
7779 var elem = event.currentTarget;
7880 elem.style.border = 'none';
7981 elem.style.boxShadow = '';
8585 user = prompt('Enter your name: ');
8686 label = prompt('Enter a label for annotation: ');
8787 initAnnotationTree();
88 return false;
8889 };
8990
9091
  
192192 url: config.indexer + '/submit',
193193 data: {'data': JSON.stringify(this.swts)},
194194 success: function() {
195 $.ajax({
195 /*$.ajax({
196196 type: 'POST',
197197 url: config.postTweetUrl,
198198 data: {'data': JSON.stringify(this.swts)},
203203 error: function() {
204204 $('#fail-posting').show();
205205 }
206 });
206 });*/
207207 $('#posted').show();
208208 var swts = '';
209209 for(var i in sweet.swts) {