Rev 7850 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7850 | Rev 14239 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | function actuliste(liste, indice) { |
4 | function actuliste(liste, indice) { |
5 |
|
5 | var mytool_array = liste.split("-"); |
6 |
|
6 | var n2 = mytool_array.length; |
7 |
|
7 | var liste2 = ""; |
8 |
|
8 | for (var i = 0; i < n2; i++) { |
9 |
|
9 | liste2 = liste2 + "<OPTION>" + mytool_array[i] + "</OPTION>"; |
10 |
|
10 | } |
11 |
|
11 | document.forms['formu'].sel.innerHTML = liste2; |
12 |
|
12 | //var chaine=document.form.wims_deposit.value; |
13 |
|
13 | //var n=chaine.length; |
14 | } |
14 | } |
15 | 15 | ||
16 | // parcoursTab : |
16 | // parcoursTab : |
17 | function parcoursTab(instructionwims, indice) { |
17 | function parcoursTab(instructionwims, indice) { |
18 |
|
18 | if (instructionwims != "\\") { |
19 |
|
19 | //var mytool_array=instructionwims.split("\\"); |
20 |
|
20 | //var instructionwims=mytool_array[1]; |
21 |
|
21 | //alert(instructionwims); |
22 |
|
22 | var a = "^\\" + instructionwims + ""; |
23 |
|
23 | var n2 = instructionsss.length; |
24 |
|
24 | for (var i = 0; i < n2; i++) { |
25 |
|
25 | var instruction = instructionsss[i]; |
26 |
|
26 | var MonReg = new RegExp(a); |
27 |
|
27 | if (MonReg.test(instruction)) { |
28 |
|
28 | liste = liste + instruction + "-"; |
29 |
|
29 | } |
30 |
|
30 | } |
31 |
|
31 | compter++; |
32 |
|
32 | if (liste == "-") { |
33 |
|
33 | var div_aide = document.getElementById("aide"); |
34 |
|
34 | div_aide.innerHTML = "<h3>"+names["contextual_help"]+"</h3> - "+names["contextual_help_desc"]; |
35 |
|
35 | initlist(); |
36 |
|
36 | } |
37 |
|
37 | else { |
38 |
|
38 | actuliste(liste, indice); |
39 |
|
39 | } |
40 |
|
40 | liste = "-"; |
41 |
|
41 | if (compter == 4) { |
42 |
|
42 | compter = 0; |
43 |
|
43 | liste = "-"; |
44 |
|
44 | var div_aide = document.getElementById("aide"); |
45 |
|
45 | div_aide.innerHTML = "<h3>"+names["contextual_help"]+"</h3> - "+names["contextual_help_desc"]; |
46 |
|
46 | } |
47 |
|
47 | } |
48 | } |
48 | } |
49 | 49 | ||
50 | //anime : |
50 | //anime : |
51 | function anime() { |
51 | function anime() { |
52 |
|
52 | initlist(); |
53 |
|
53 | //if (chrono == null) chrono = setInterval("change()", 10); |
54 | } |
54 | } |
55 | 55 | ||
56 | //anime2 : |
56 | //anime2 : |
57 | function anime2() { |
57 | function anime2() { |
58 |
|
58 | if (chrono2 === null) chrono2 = setInterval("instruction()", 15); |
59 | } |
59 | } |
60 | 60 | ||
61 | //image : |
61 | //image : |
62 | function image() { |
62 | function image() { |
63 |
|
63 | var url = document.getElementById("url").value; |
64 |
|
64 | var description = document.getElementById("description").value; |
65 |
|
65 | hudAnimationFermeture('hud_video_intro'); |
66 |
|
66 | if (description === "") { |
67 |
|
67 | description=names["image_alt"]; |
68 |
|
68 | } |
69 |
|
69 | var image = "\\img{" + url + "}{alt='" + description + "'}"; |
70 |
|
70 | Cursor_AddTexte('wims_deposit_id', image); |
71 | } |
71 | } |
72 | 72 | ||
73 | //afficheaide : |
73 | //afficheaide : |
74 | function afficheaide(langue) { |
74 | function afficheaide(langue) { |
75 | 75 | ||
76 |
|
76 | var div_aide = document.getElementById("aide"); |
77 |
|
77 | var selectedoption = document.getElementsByTagName("OPTION"); |
78 |
|
78 | var instruction = selectedoption[document.forms['formu'].sel.selectedIndex].innerHTML; |
79 | 79 | ||
80 |
|
80 | //alert(instruction); |
81 |
|
81 | if (langue == "undefined") langue = version; |
82 |
|
82 | if (langue == "eng") version = "eng"; |
83 |
|
83 | if (langue == "fr") version = "fr"; |
84 | 84 | ||
85 |
|
85 | var text=""; |
86 | 86 | ||
87 |
|
87 | switch(instructionsss){ |
88 | { |
- | |
89 |
|
88 | case oefcommand : |
90 |
|
89 | text = oefcommandfun(instruction); |
91 |
|
90 | break; |
92 |
|
91 | case latex : |
93 |
|
92 | text = latexfun(instruction); |
94 |
|
93 | break; |
95 |
|
94 | case iff : |
96 |
|
95 | text = ifffun(instruction); |
97 |
|
96 | break; |
98 |
|
97 | case special : |
99 |
|
98 | text = specialfun(instruction); |
100 |
|
99 | break; |
101 |
|
100 | case oefparm0 : |
102 |
|
101 | text = oefparm0fun(instruction); |
103 |
|
102 | break; |
104 |
|
103 | case oefparm1 : |
105 |
|
104 | text = oefparm1fun(instruction); |
106 |
|
105 | break; |
107 |
|
106 | case oefparm2 : |
108 |
|
107 | text = oefparm2fun(instruction); |
109 |
|
108 | break; |
110 |
|
109 | case oefparm3 : |
111 |
|
110 | text = oefparm3fun(instruction); |
112 |
|
111 | break; |
113 |
|
112 | case oefparm4 : |
114 |
|
113 | text = oefparm4fun(instruction); |
115 |
|
114 | break; |
116 |
|
115 | case oefparm5 : |
117 |
|
116 | text = oefparm5fun(instruction); |
118 |
|
117 | break; |
119 |
|
118 | case slib : |
120 |
|
119 | text = slibfun(instruction); |
121 |
|
120 | break; |
122 |
|
121 | case anstype : |
123 |
|
122 | text = anstypefun(instruction); |
124 |
|
123 | break; |
125 | 124 | ||
126 |
|
125 | } |
127 |
|
126 | div_aide.innerHTML = "<h3 style='display:inline-block;margin-top:0;'>" + instruction + "</h3><div class='description'>" + text + "</div>"; |
128 | 127 | ||
129 | } |
128 | } |
130 | 129 | ||
131 | function funcname() { |
130 | function funcname() { |
132 | switch(instructionsss) |
131 | switch(instructionsss){ |
133 | { |
- | |
134 |
|
132 | case oefcommand : |
135 |
|
133 | titre_bd= oefcommandname; |
136 |
|
134 | break; |
137 |
|
135 | case latex : |
138 |
|
136 | titre_bd= latexname; |
139 |
|
137 | break; |
140 |
|
138 | case iff : |
141 |
|
139 | titre_bd= iffname; |
142 |
|
140 | break; |
143 |
|
141 | case special : |
144 |
|
142 | titre_bd= specialname; |
145 |
|
143 | break; |
146 |
|
144 | case oefparm0 : |
147 |
|
145 | titre_bd=oefparm0name; |
148 |
|
146 | break; |
149 |
|
147 | case oefparm1 : |
150 |
|
148 | titre_bd=oefparm1name; |
151 |
|
149 | break; |
152 |
|
150 | case oefparm2 : |
153 |
|
151 | titre_bd=oefparm2name; |
154 |
|
152 | break; |
155 |
|
153 | case oefparm3 : |
156 |
|
154 | titre_bd=oefparm3name; |
157 |
|
155 | break; |
158 |
|
156 | case oefparm4 : |
159 |
|
157 | titre_bd=oefparm4name; |
160 |
|
158 | break; |
161 |
|
159 | case oefparm5 : |
162 |
|
160 | titre_bd=oefparm5name; |
163 |
|
161 | break; |
164 |
|
162 | case slib : |
165 |
|
163 | titre_bd= slibname; |
166 |
|
164 | break; |
167 |
|
165 | case anstype : |
168 |
|
166 | titre_bd= anstypename; |
169 |
|
167 | break; |
170 | 168 | ||
171 |
|
169 | } |
172 | } |
170 | } |
173 | //enregistrer() : |
171 | //enregistrer() : |
174 | function enregistrer() { |
172 | function enregistrer() { |
175 |
|
173 | var chaine = document.forms['replyform'].wims_deposit.value; |
176 |
|
174 | alert(chaine); |
177 | } |
175 | } |
178 | 176 | ||
179 | //initlist() : |
177 | //initlist() : |
180 | instructionsss=oefcommand; |
178 | instructionsss=oefcommand; |
181 | function initlist() { |
179 | function initlist() { |
182 | //alert('initlist'); |
180 | //alert('initlist'); |
183 |
|
181 | liste = "-"; |
184 |
|
182 | compter = 0; |
185 |
|
183 | index = null; |
186 |
|
184 | k = null; |
187 |
|
185 | y = 0; |
188 |
|
186 | instructionwims = ""; |
189 | 187 | ||
190 |
|
188 | //ie error alert(document.forms['replyform'].wims_deposit.value;); |
191 |
|
189 | var formselect = document.getElementById("divoptions"); |
192 |
|
190 | funcname(); |
193 |
|
191 | var n2 = instructionsss.length; |
194 |
|
192 | var liste = ""; |
195 |
|
193 | for (var i = 0; i < n2; i++) { |
196 |
|
194 | liste = liste + "<option>" + instructionsss[i] + "</option>"; |
197 |
|
195 | } |
198 |
|
196 | formselect.innerHTML = "<form name='formu' onclick='afficheaide();'><select ondblclick='inser()' id='select' name='sel' size='10'>" + liste + "</select><br/><input type='button' class='wims_button' value='"+names["insert_selection"]+"' onclick='inser()' /></form>"; |
199 |
|
197 | document.getElementById("name_list_instruction").innerHTML = titre_bd ; |
200 | } |
198 | } |
201 | 199 | ||
202 | function changerListeInstruction() { |
200 | function changerListeInstruction() { |
203 |
|
201 | afficherHud('hud_video_intro'); |
204 | } |
202 | } |
205 | 203 | ||
206 | function changerListeInstruction2(nomdutabo) { |
204 | function changerListeInstruction2(nomdutabo) { |
207 |
|
205 | instructionsss=nomdutabo; |
208 |
|
206 | hudAnimationFermeture('hud_video_intro'); |
209 |
|
207 | initlist(); |
210 | } |
208 | } |