Rev 15313 | Rev 15655 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 15313 | Rev 15529 | ||
---|---|---|---|
Line 519... | Line 519... | ||
519 | 519 | ||
520 | 520 | ||
521 | /* |
521 | /* |
522 | adds 2 inputfields (x:y) and 'ok' | 'nok' button |
522 | adds 2 inputfields (x:y) and 'ok' | 'nok' button |
523 | these are used for user drawing with inputfields... |
523 | these are used for user drawing with inputfields... |
524 | */ |
- | |
525 | - | ||
526 | void add_input_xy(int font_size,char *css_class){ |
- | |
527 | fprintf(js_include_file,"\n/* add_input_xy */\ |
- | |
528 | function update_me(){\ |
524 | function update_me(){\ |
529 |
|
525 | var x = safe_eval(document.getElementById('userinput_x').value);\ |
530 |
|
526 | var y = safe_eval(document.getElementById('userinput_y').value);\ |
531 | userdraw_x.push(x2px(x));userdraw_y.push(y2px(y));\ |
527 | userdraw_x.push(x2px(x));userdraw_y.push(y2px(y));\ |
532 | return;\ |
528 | return;\ |
533 | };\ |
529 | };\ |
- | 530 | */ |
|
- | 531 | ||
- | 532 | void add_input_xy(int font_size,char *css_class){ |
|
- | 533 | fprintf(js_include_file,"\n/* add_input_xy */\ |
|
534 | function add_input_xy(){\ |
534 | function add_input_xy(){\ |
535 | if( wims_status == \"done\" ){return;};\ |
535 | if( wims_status == \"done\" ){return;};\ |
536 | var tooltip_div = document.getElementById(\"tooltip_placeholder_div%d\");\ |
536 | var tooltip_div = document.getElementById(\"tooltip_placeholder_div%d\");\ |
537 | var input_xy_div = document.createElement('div');\ |
537 | var input_xy_div = document.createElement('div');\ |
538 | input_xy_div.id = \"input_xy_div\";\ |
538 | input_xy_div.id = \"input_xy_div\";\ |