Rev 18563 | Rev 18586 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 18563 | Rev 18572 | ||
---|---|---|---|
Line 1167... | Line 1167... | ||
1167 | fprintf(js_include_file,"\ |
1167 | fprintf(js_include_file,"\ |
1168 | function redraw_userdraw(){draw_text();};\ |
1168 | function redraw_userdraw(){draw_text();};\ |
1169 | var userdraw_text = new Array();\ |
1169 | var userdraw_text = new Array();\ |
1170 | var tooltip_div = document.getElementById(\"tooltip_placeholder_div%d\");\ |
1170 | var tooltip_div = document.getElementById(\"tooltip_placeholder_div%d\");\ |
1171 | var inner_html = tooltip_div.innerHTML;\ |
1171 | var inner_html = tooltip_div.innerHTML;\ |
1172 | tooltip_div.innerHTML = inner_html + \"<input class='%s' type='text' size='4' value='' id='userdraw_text_abc' |
1172 | tooltip_div.innerHTML = inner_html + \"<input class='%s' type='text' size='4' value='' id='userdraw_text_abc'>\";\ |
1173 | context_userdraw.fillStyle = \"rgba(%s,%f)\";\ |
1173 | context_userdraw.fillStyle = \"rgba(%s,%f)\";\ |
1174 | var userdraw_textheight = 0.3 * (context_userdraw.measureText('M').width);\ |
1174 | var userdraw_textheight = 0.3 * (context_userdraw.measureText('M').width);\ |
1175 | function remove_last(){if(userdraw_x.length > 0 ){userdraw_x.pop();userdraw_y.pop();userdraw_text.pop();draw_text();return;};};\ |
1175 | function remove_last(){if(userdraw_x.length > 0 ){userdraw_x.pop();userdraw_y.pop();userdraw_text.pop();draw_text();return;};};\ |
1176 | function text(x,y,event_which,num){\ |
1176 | function text(x,y,event_which,num){\ |
1177 | if(event_which == 1){ return; };\ |
1177 | if(event_which == 1){ return; };\ |
Line 1257... | Line 1257... | ||
1257 | var url = dom.createObjectURL(svg);\ |
1257 | var url = dom.createObjectURL(svg);\ |
1258 | image.src= url;\ |
1258 | image.src= url;\ |
1259 | image.id = 'placed_'+id;\ |
1259 | image.id = 'placed_'+id;\ |
1260 | image.onload = function(){\ |
1260 | image.onload = function(){\ |
1261 | current_id = image.id;\ |
1261 | current_id = image.id;\ |
1262 | fix_div.innerHTML='<img src='+image.src+' id='+image.id+' alt=\"this should not happen today...!\" |
1262 | fix_div.innerHTML='<img src='+image.src+' id='+image.id+' alt=\"this should not happen today...!\">';\ |
1263 | };\ |
1263 | };\ |
1264 | return;\ |
1264 | return;\ |
1265 | };\ |
1265 | };\ |
1266 | function images(x,y,event_which,num){\ |
1266 | function images(x,y,event_which,num){\ |
1267 | if(event_which == 1){ return;};\ |
1267 | if(event_which == 1){ return;};\ |