equal
deleted
inserted
replaced
34 "var blocked = \"\";\n" |
34 "var blocked = \"\";\n" |
35 "\n" |
35 "\n" |
36 "function display(element, ev)\n" |
36 "function display(element, ev)\n" |
37 "{\n" |
37 "{\n" |
38 " var x,y;\n" |
38 " var x,y;\n" |
39 " x = ev.screenX + window.pageXOffset;\n" |
39 #if 0 |
40 " y = ev.screenY + window.pageYOffset;\n" |
40 " x = ev.x + window.pageXOffset;\n" |
|
41 #endif |
|
42 " y = ev.pageY;\n" |
41 "\n" |
43 "\n" |
42 " if (blocked != \"\")\n" |
44 " if (blocked != \"\")\n" |
43 " return;\n" |
45 " return;\n" |
44 #if 0 |
46 #if 0 |
45 "\n" |
47 "\n" |
70 "function undisplay(element)\n" |
72 "function undisplay(element)\n" |
71 "{\n" |
73 "{\n" |
72 " document.getElementById(element).style.display = 'none';\n" |
74 " document.getElementById(element).style.display = 'none';\n" |
73 "}\n" |
75 "}\n" |
74 "\n" |
76 "\n" |
75 "function click(element, ev)\n" |
77 "function klako(element, ev)\n" |
76 "{\n" |
78 "{\n" |
77 " if (blocked == \"\")\n" |
79 " if (blocked == \"\")\n" |
78 " {\n" |
80 " {\n" |
79 " display(element, ev);\n" |
81 " display(element, ev);\n" |
80 " blocked = element;\n" |
82 " blocked = element;\n" |
121 printf("</p>"); |
123 printf("</p>"); |
122 } |
124 } |
123 |
125 |
124 static void print_start_signifoj(int id) |
126 static void print_start_signifoj(int id) |
125 { |
127 { |
126 printf("<div id=\"vorto%i\" onclick=\"click('vorto%i', event);\" " |
128 printf("<div id=\"vorto%i\" onclick=\"klako('vorto%i', event);\" " |
127 "class=\"difino\"><p>\n", id, id); |
129 "class=\"difino\"><p>\n", id, id); |
128 } |
130 } |
129 |
131 |
130 static void print_end_signifoj() |
132 static void print_end_signifoj() |
131 { |
133 { |
173 |
175 |
174 static print_accented(const char *word, int id) |
176 static print_accented(const char *word, int id) |
175 { |
177 { |
176 if (give_html) |
178 if (give_html) |
177 { |
179 { |
178 printf("<span class=\"vorto\" onclick=\"click('vorto%i', event);\">" |
180 printf("<span class=\"vorto\" onclick=\"klako('vorto%i', event);\">" |
179 "%s</span>",id,word); |
181 "%s</span>",id,word); |
180 } else |
182 } else |
181 printf("%s", word); |
183 printf("%s", word); |
182 } |
184 } |
183 |
185 |