2 function getInitialProcessorURL()
4 var search = top.location.search;
5 search = search.slice(1);
6 var args = search.split("&");
7 var processorURL = "-1";
8 for (var i = 0 ; i < args.length ; i++) {
9 var couple = args[i].split("=");
10 if (couple[0] == "processorURL") processorURL = couple[1];
12 if (processorURL == "-1") processorURL = getDefaultParam("processorURL");
16 function getInitialGetterURL()
18 var search = top.location.search;
19 search = search.slice(1);
20 var args = search.split("&");
22 for (var i = 0 ; i < args.length ; i++) {
23 var couple = args[i].split("=");
24 if (couple[0] == "getterURL") getterURL = couple[1];
26 if (getterURL == "-1") getterURL = getDefaultParam("getterURL");
30 function getInitialProofCheckerURL()
32 var search = top.location.search;
33 search = search.slice(1);
34 var args = search.split("&");
35 var proofcheckerURL = "-1";
36 for (var i = 0 ; i < args.length ; i++) {
37 var couple = args[i].split("=");
38 if (couple[0] == "proofcheckerURL") proofcheckerURL = couple[1];
40 if (proofcheckerURL == "-1")
41 proofcheckerURL = getDefaultParam("proofcheckerURL");
42 return proofcheckerURL;
45 function getInitialDrawGraphURL()
47 var search = top.location.search;
48 search = search.slice(1);
49 var args = search.split("&");
50 var draw_graphURL = "-1";
51 for (var i = 0 ; i < args.length ; i++) {
52 var couple = args[i].split("=");
53 if (couple[0] == "draw_graphURL") draw_graphURL = couple[1];
55 if (draw_graphURL == "-1") draw_graphURL = getDefaultParam("draw_graphURL");
59 function getInitialURISetQueueURL()
61 var search = top.location.search;
62 search = search.slice(1);
63 var args = search.split("&");
64 var uri_set_queueURL = "-1";
65 for (var i = 0 ; i < args.length ; i++) {
66 var couple = args[i].split("=");
67 if (couple[0] == "uri_set_queueURL") uri_set_queueURL = couple[1];
69 if (uri_set_queueURL == "-1") uri_set_queueURL = getDefaultParam("uri_set_queueURL");
70 return uri_set_queueURL;
73 function getInitialUNICODEvsSYMBOL()
75 var search = top.location.search;
76 search = search.slice(1);
77 var args = search.split("&");
78 var UNICODEvsSYMBOL = "-1";
79 for (var i = 0 ; i < args.length ; i++) {
80 var couple = args[i].split("=");
81 if (couple[0] == "UNICODEvsSYMBOL") UNICODEvsSYMBOL = couple[1];
83 if (UNICODEvsSYMBOL == "-1") UNICODEvsSYMBOL = getDefaultParam("UNICODEvsSYMBOL");
84 return UNICODEvsSYMBOL;
87 function getInitialUNICODEvsSYMBOLsymbol()
89 if (getInitialUNICODEvsSYMBOL() == "symbol")
95 function getInitialUNICODEvsSYMBOLunicode()
97 if (getInitialUNICODEvsSYMBOL() == "unicode")
103 function getUwoboURL()
105 return document.uwoboURL.elements[0].value;
108 function getGetterURL()
110 return document.getterURL.elements[0].value;
113 function getProofCheckerURL()
115 return document.proofcheckerURL.elements[0].value;
118 function getDrawGraphURL()
120 return document.draw_graphURL.elements[0].value;
123 function getURISetQueueURL()
125 return document.uri_set_queueURL.elements[0].value;
128 function getUNICODEvsSYMBOL()
130 if (document.UNICODEvsSYMBOL.radioUNICODEvsSYMBOL[0].checked)
131 return document.UNICODEvsSYMBOL.radioUNICODEvsSYMBOL[0].value;
133 return document.UNICODEvsSYMBOL.radioUNICODEvsSYMBOL[1].value;
136 function chopSlash(url)
138 return url.slice(0,url.lastIndexOf('/'));
141 function refreshLinks()
143 var search = top.location.search;
144 search = search.slice(1);
145 var args = search.split("&");
146 var cicuri = "-1", theoryuri = "-1", mode = "-1";
147 for (var i = 0 ; i < args.length ; i++) {
148 var couple = args[i].split("=");
150 case "cicuri" : cicuri =couple[1]; break;
151 case "theoryuri" : theoryuri =couple[1]; break;
152 case "mode" : mode =couple[1]; break;
155 if (cicuri == "-1") cicuri = getDefaultParam("cicuri");
156 if (theoryuri == "-1") theoryuri = getDefaultParam("theoryuri");
157 if (mode == "-1") mode = getDefaultParam("mode");
159 document.links[2].href =
160 document.links[2].protocol + '//' +
161 document.links[2].host +
162 document.links[2].pathname +
163 "?getterURL=" + getGetterURL();
165 document.links[3].href =
166 document.links[3].protocol + '//' +
167 document.links[3].host +
168 document.links[3].pathname +
169 "?processorURL=" + getUwoboURL() +
170 "&getterURL=" + getGetterURL();
174 document.location.protocol + '//' +
175 document.location.host +
176 document.location.pathname));
177 document.links[4].href =
178 getUwoboURL() + "apply" +
180 "¶m.topurl=" + topurl +
183 topurl + "/html/library/index.html" +
184 "?cicuri=" + cicuri +
185 "&theoryuri=" + theoryuri +
187 "&processorURL=" + getUwoboURL() +
188 "&getterURL=" + getGetterURL() +
189 "&proofcheckerURL=" + getProofCheckerURL() +
190 "&draw_graphURL=" + getDrawGraphURL() +
191 "&uri_set_queueURL=" + getURISetQueueURL() +
192 "&UNICODEvsSYMBOL=" + getUNICODEvsSYMBOL()
196 function selectUwoboURL(ss)
198 if (ss.selectedIndex == 0) {
199 document.uwoboURL.elements[0].value = "";
201 document.uwoboURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":8081/helm/servlet/uwobo/";
207 function selectGetterURL(ss)
209 if (ss.selectedIndex == 0) {
210 document.getterURL.elements[0].value = "";
212 document.getterURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":48081/";
218 function selectProofCheckerURL(ss)
220 if (ss.selectedIndex == 0) {
221 document.proofcheckerURL.elements[0].value = "";
223 document.proofcheckerURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":48084/";
229 function selectDrawGraphURL(ss)
231 if (ss.selectedIndex == 0) {
232 document.draw_graphURL.elements[0].value = "";
234 document.draw_graphURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":48083/";
240 function selectURISetQueueURL(ss)
242 if (ss.selectedIndex == 0) {
243 document.uri_set_queueURL.elements[0].value = "";
245 document.uri_set_queueURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":48082/";