2933 |
14 Nov 14 |
olle |
var Index = function() |
2933 |
14 Nov 14 |
olle |
2 |
{ |
2933 |
14 Nov 14 |
olle |
var index = {}; |
2933 |
14 Nov 14 |
olle |
var debug = 0; |
2933 |
14 Nov 14 |
olle |
var myPermissions = {}; |
2933 |
14 Nov 14 |
olle |
6 |
|
2933 |
14 Nov 14 |
olle |
var counters; |
2933 |
14 Nov 14 |
olle |
var counterNo = -1; |
4151 |
04 Oct 16 |
olle |
var sampleItemPrefix = ''; |
4214 |
08 Nov 16 |
olle |
var sampleItemNumDigits = 5; |
2933 |
14 Nov 14 |
olle |
11 |
|
2933 |
14 Nov 14 |
olle |
12 |
|
2933 |
14 Nov 14 |
olle |
index.initPage = function() |
2933 |
14 Nov 14 |
olle |
14 |
{ |
2933 |
14 Nov 14 |
olle |
Events.doOnEnter('caseName', index.caseSummary); |
3176 |
06 Mar 15 |
olle |
Events.addEventHandler('caseName', 'keypress', index.testReggie); |
2933 |
14 Nov 14 |
olle |
Events.addEventHandler('caseName', 'keypress', index.testSnake); |
2933 |
14 Nov 14 |
olle |
Events.addEventHandler('caseName', 'keypress', index.testMeludi); |
3210 |
26 Mar 15 |
olle |
Events.addEventHandler('caseName', 'keypress', index.testMeludiUpperCaseI); |
2933 |
14 Nov 14 |
olle |
Buttons.addClickHandler('btnCaseSummary', index.caseSummary); |
4788 |
02 May 18 |
olle |
// Alternative code for entry field 'caseName_alt_rec' for project SCAN-B-rec |
4788 |
02 May 18 |
olle |
Events.doOnEnter('caseName_alt_rec', index.caseSummary_alt_rec); |
4788 |
02 May 18 |
olle |
Events.addEventHandler('caseName_alt_rec', 'keypress', index.testReggie_alt_rec); |
4788 |
02 May 18 |
olle |
Events.addEventHandler('caseName_alt_rec', 'keypress', index.testSnake_alt_rec); |
4788 |
02 May 18 |
olle |
Events.addEventHandler('caseName_alt_rec', 'keypress', index.testMeludi_alt_rec); |
4788 |
02 May 18 |
olle |
Events.addEventHandler('caseName_alt_rec', 'keypress', index.testMeludiUpperCaseI_alt_rec); |
4788 |
02 May 18 |
olle |
Buttons.addClickHandler('btnCaseSummary_alt_rec', index.caseSummary_alt_rec); |
2933 |
14 Nov 14 |
olle |
index.initPermissions(); |
3100 |
21 Jan 15 |
olle |
index.loadCounts(); |
4151 |
04 Oct 16 |
olle |
index.loadConfiguration(); |
2933 |
14 Nov 14 |
olle |
31 |
|
2933 |
14 Nov 14 |
olle |
var frm = document.forms['meludi']; |
2933 |
14 Nov 14 |
olle |
frm.caseName.disabled = !App.getActiveProjectId(); |
4788 |
02 May 18 |
olle |
frm.caseName_alt_rec.disabled = !App.getActiveProjectId(); |
2933 |
14 Nov 14 |
olle |
35 |
} |
2933 |
14 Nov 14 |
olle |
36 |
|
2933 |
14 Nov 14 |
olle |
index.initPermissions = function() |
2933 |
14 Nov 14 |
olle |
38 |
{ |
2933 |
14 Nov 14 |
olle |
// Get permission information |
2933 |
14 Nov 14 |
olle |
var url = 'Install.servlet?ID='+App.getSessionId(); |
2933 |
14 Nov 14 |
olle |
url += '&cmd=GetPermissions'; |
2933 |
14 Nov 14 |
olle |
var request = Ajax.getXmlHttpRequest(); |
2933 |
14 Nov 14 |
olle |
request.open("GET", url, true); |
2933 |
14 Nov 14 |
olle |
Ajax.setReadyStateHandler(request, index.onPermissionsLoaded, index.onPermissionsLoaded); |
2933 |
14 Nov 14 |
olle |
request.send(null); |
2933 |
14 Nov 14 |
olle |
46 |
} |
2933 |
14 Nov 14 |
olle |
47 |
|
2933 |
14 Nov 14 |
olle |
// Callback when permission information is ready |
2933 |
14 Nov 14 |
olle |
index.onPermissionsLoaded = function(request) |
2933 |
14 Nov 14 |
olle |
50 |
{ |
2933 |
14 Nov 14 |
olle |
if (debug) App.debug(Strings.encodeTags(request.responseText)); |
2933 |
14 Nov 14 |
olle |
var response; |
2933 |
14 Nov 14 |
olle |
var error = false; |
2933 |
14 Nov 14 |
olle |
try |
2933 |
14 Nov 14 |
olle |
55 |
{ |
2933 |
14 Nov 14 |
olle |
response = JSON.parse(request.responseText); |
2933 |
14 Nov 14 |
olle |
if (response.status != 'ok') |
2933 |
14 Nov 14 |
olle |
58 |
{ |
2933 |
14 Nov 14 |
olle |
error = response.message || response.stacktrace || 'Unexpected error'; |
2933 |
14 Nov 14 |
olle |
60 |
} |
2933 |
14 Nov 14 |
olle |
61 |
} |
2933 |
14 Nov 14 |
olle |
catch (ex) |
2933 |
14 Nov 14 |
olle |
63 |
{ |
2933 |
14 Nov 14 |
olle |
error = ex; |
2933 |
14 Nov 14 |
olle |
65 |
} |
2933 |
14 Nov 14 |
olle |
66 |
|
2933 |
14 Nov 14 |
olle |
if (error) |
2933 |
14 Nov 14 |
olle |
68 |
{ |
2933 |
14 Nov 14 |
olle |
alert(error); |
2933 |
14 Nov 14 |
olle |
return; |
2933 |
14 Nov 14 |
olle |
71 |
} |
2933 |
14 Nov 14 |
olle |
72 |
|
2933 |
14 Nov 14 |
olle |
myPermissions = response.permissions; |
2933 |
14 Nov 14 |
olle |
var isAdmin = myPermissions['Administrator'] == 1; |
2933 |
14 Nov 14 |
olle |
var noProjectIsActive = !App.getActiveProjectId(); |
2933 |
14 Nov 14 |
olle |
76 |
|
2933 |
14 Nov 14 |
olle |
// Enable links based on the permission |
2933 |
14 Nov 14 |
olle |
var wizards = document.getElementsByClassName('require-permission'); |
2933 |
14 Nov 14 |
olle |
// NOTE! Loop backwards since changing the classname |
2933 |
14 Nov 14 |
olle |
// of an element so that 'require-permission' no longer is included |
2933 |
14 Nov 14 |
olle |
// removes the element from the 'wizards' list |
2933 |
14 Nov 14 |
olle |
for (var wizardNo = wizards.length-1; wizardNo >= 0; wizardNo--) |
2933 |
14 Nov 14 |
olle |
83 |
{ |
2933 |
14 Nov 14 |
olle |
var wizard = wizards[wizardNo]; |
2933 |
14 Nov 14 |
olle |
if (wizard.className.indexOf('not-implemented') == -1) |
2933 |
14 Nov 14 |
olle |
86 |
{ |
2933 |
14 Nov 14 |
olle |
var role = wizard.getAttribute('data-role'); |
2933 |
14 Nov 14 |
olle |
if (noProjectIsActive) |
2933 |
14 Nov 14 |
olle |
89 |
{ |
2933 |
14 Nov 14 |
olle |
wizard.title = 'You must select a project before using this wizard'; |
2933 |
14 Nov 14 |
olle |
91 |
} |
2933 |
14 Nov 14 |
olle |
else if (!role || myPermissions[role] == 1 || isAdmin) |
2933 |
14 Nov 14 |
olle |
93 |
{ |
2933 |
14 Nov 14 |
olle |
wizard.className = 'link'; |
2933 |
14 Nov 14 |
olle |
wizard.addEventListener('click', index.wizardOnClick); |
2933 |
14 Nov 14 |
olle |
96 |
} |
2933 |
14 Nov 14 |
olle |
else |
2933 |
14 Nov 14 |
olle |
98 |
{ |
2933 |
14 Nov 14 |
olle |
wizard.title = 'You do not have permission to user this wizard'; |
2933 |
14 Nov 14 |
olle |
100 |
} |
2933 |
14 Nov 14 |
olle |
101 |
} |
2933 |
14 Nov 14 |
olle |
102 |
} |
2933 |
14 Nov 14 |
olle |
103 |
} |
2933 |
14 Nov 14 |
olle |
104 |
|
2933 |
14 Nov 14 |
olle |
index.wizardOnClick = function(event) |
2933 |
14 Nov 14 |
olle |
106 |
{ |
2933 |
14 Nov 14 |
olle |
var role = Data.get(event.currentTarget, 'role'); |
2933 |
14 Nov 14 |
olle |
var isAdmin = myPermissions['Administrator'] == 1; |
2933 |
14 Nov 14 |
olle |
if (!role || myPermissions[role] == 1 || isAdmin) |
2933 |
14 Nov 14 |
olle |
110 |
{ |
2933 |
14 Nov 14 |
olle |
var link = Data.get(event.currentTarget, 'link'); |
2933 |
14 Nov 14 |
olle |
location.href = link; |
2933 |
14 Nov 14 |
olle |
113 |
} |
2933 |
14 Nov 14 |
olle |
else |
2933 |
14 Nov 14 |
olle |
115 |
{ |
2933 |
14 Nov 14 |
olle |
Forms.showNotification(event.currentTarget, 'You do not have permission to use this wizard!', null, null, 'left'); |
2933 |
14 Nov 14 |
olle |
117 |
} |
2933 |
14 Nov 14 |
olle |
118 |
} |
2933 |
14 Nov 14 |
olle |
119 |
|
3100 |
21 Jan 15 |
olle |
index.loadCounts = function() |
2933 |
14 Nov 14 |
olle |
121 |
{ |
3100 |
21 Jan 15 |
olle |
var url = 'Session.servlet?ID='+App.getSessionId(); |
3100 |
21 Jan 15 |
olle |
url += '&cmd=GetCounters' |
3100 |
21 Jan 15 |
olle |
var request = Ajax.getXmlHttpRequest(); |
3100 |
21 Jan 15 |
olle |
request.open("GET", url, true); |
3100 |
21 Jan 15 |
olle |
Ajax.setReadyStateHandler(request, index.onCounted, index.onCounted); |
3100 |
21 Jan 15 |
olle |
request.send(null); |
2933 |
14 Nov 14 |
olle |
128 |
} |
2933 |
14 Nov 14 |
olle |
129 |
|
2933 |
14 Nov 14 |
olle |
index.onCounted = function(request) |
2933 |
14 Nov 14 |
olle |
131 |
{ |
2933 |
14 Nov 14 |
olle |
if (debug) |
2933 |
14 Nov 14 |
olle |
133 |
{ |
3100 |
21 Jan 15 |
olle |
App.debug(Strings.encodeTags(request.responseText)); |
2933 |
14 Nov 14 |
olle |
135 |
} |
2933 |
14 Nov 14 |
olle |
136 |
|
2933 |
14 Nov 14 |
olle |
var response; |
2933 |
14 Nov 14 |
olle |
var error = false; |
2933 |
14 Nov 14 |
olle |
try |
2933 |
14 Nov 14 |
olle |
140 |
{ |
2933 |
14 Nov 14 |
olle |
response = JSON.parse(request.responseText); |
2933 |
14 Nov 14 |
olle |
if (response.status != 'ok') |
2933 |
14 Nov 14 |
olle |
143 |
{ |
2933 |
14 Nov 14 |
olle |
error = response.message || response.stacktrace || 'Unexpected error'; |
2933 |
14 Nov 14 |
olle |
145 |
} |
2933 |
14 Nov 14 |
olle |
146 |
} |
2933 |
14 Nov 14 |
olle |
catch (ex) |
2933 |
14 Nov 14 |
olle |
148 |
{ |
2933 |
14 Nov 14 |
olle |
error = ex; |
2933 |
14 Nov 14 |
olle |
150 |
} |
3100 |
21 Jan 15 |
olle |
if (error) App.debug(error); |
2933 |
14 Nov 14 |
olle |
152 |
|
3100 |
21 Jan 15 |
olle |
var counts = error ? null : response.counts; |
3100 |
21 Jan 15 |
olle |
if (counts == null) return; |
3100 |
21 Jan 15 |
olle |
155 |
|
3100 |
21 Jan 15 |
olle |
var counters = document.getElementsByClassName('counter'); |
3100 |
21 Jan 15 |
olle |
for (var counterNo = 0; counterNo < counters.length; counterNo++) |
2933 |
14 Nov 14 |
olle |
158 |
{ |
3100 |
21 Jan 15 |
olle |
var counter = counters[counterNo]; |
3100 |
21 Jan 15 |
olle |
var countId = Data.get(counter, 'counter'); |
3100 |
21 Jan 15 |
olle |
161 |
|
3100 |
21 Jan 15 |
olle |
var count = counts[countId]; |
3100 |
21 Jan 15 |
olle |
Doc.addClass(counter, 'done'); |
3100 |
21 Jan 15 |
olle |
if (count == null) |
3100 |
21 Jan 15 |
olle |
165 |
{ |
3100 |
21 Jan 15 |
olle |
counter.innerHTML = '-'; |
3100 |
21 Jan 15 |
olle |
167 |
} |
3100 |
21 Jan 15 |
olle |
else |
3100 |
21 Jan 15 |
olle |
169 |
{ |
3100 |
21 Jan 15 |
olle |
counter.innerHTML = count; |
3100 |
21 Jan 15 |
olle |
171 |
} |
2933 |
14 Nov 14 |
olle |
172 |
} |
2933 |
14 Nov 14 |
olle |
173 |
} |
2933 |
14 Nov 14 |
olle |
174 |
|
4151 |
04 Oct 16 |
olle |
index.loadConfiguration = function() |
4151 |
04 Oct 16 |
olle |
176 |
{ |
4151 |
04 Oct 16 |
olle |
var url = 'Session.servlet?ID='+App.getSessionId(); |
4151 |
04 Oct 16 |
olle |
url += '&cmd=GetConfiguration' |
4151 |
04 Oct 16 |
olle |
var request = Ajax.getXmlHttpRequest(); |
4151 |
04 Oct 16 |
olle |
request.open("GET", url, true); |
4151 |
04 Oct 16 |
olle |
Ajax.setReadyStateHandler(request, index.onConfiguration, index.onConfiguration); |
4151 |
04 Oct 16 |
olle |
request.send(null); |
4151 |
04 Oct 16 |
olle |
183 |
} |
4151 |
04 Oct 16 |
olle |
184 |
|
4151 |
04 Oct 16 |
olle |
index.onConfiguration = function(request) |
4151 |
04 Oct 16 |
olle |
186 |
{ |
4151 |
04 Oct 16 |
olle |
if (debug) |
4151 |
04 Oct 16 |
olle |
188 |
{ |
4151 |
04 Oct 16 |
olle |
App.debug(Strings.encodeTags(request.responseText)); |
4151 |
04 Oct 16 |
olle |
190 |
} |
4151 |
04 Oct 16 |
olle |
191 |
|
4151 |
04 Oct 16 |
olle |
var response; |
4151 |
04 Oct 16 |
olle |
var error = false; |
4151 |
04 Oct 16 |
olle |
try |
4151 |
04 Oct 16 |
olle |
195 |
{ |
4151 |
04 Oct 16 |
olle |
response = JSON.parse(request.responseText); |
4151 |
04 Oct 16 |
olle |
if (response.status != 'ok') |
4151 |
04 Oct 16 |
olle |
198 |
{ |
4151 |
04 Oct 16 |
olle |
error = response.message || response.stacktrace || 'Unexpected error'; |
4151 |
04 Oct 16 |
olle |
200 |
} |
4151 |
04 Oct 16 |
olle |
201 |
} |
4151 |
04 Oct 16 |
olle |
catch (ex) |
4151 |
04 Oct 16 |
olle |
203 |
{ |
4151 |
04 Oct 16 |
olle |
error = ex; |
4151 |
04 Oct 16 |
olle |
205 |
} |
4151 |
04 Oct 16 |
olle |
if (error) App.debug(error); |
4151 |
04 Oct 16 |
olle |
207 |
|
4151 |
04 Oct 16 |
olle |
var conf = response.configuration; |
4151 |
04 Oct 16 |
olle |
sampleItemPrefix = conf.sampleItemPrefix; |
4214 |
08 Nov 16 |
olle |
sampleItemNumDigits = conf.sampleItemNumDigits; |
4829 |
01 Jun 18 |
olle |
var projectName = conf.name; |
4829 |
01 Jun 18 |
olle |
if (projectName == 'SCAN-B-rec') |
4829 |
01 Jun 18 |
olle |
213 |
{ |
4829 |
01 Jun 18 |
olle |
Doc.element('caseName_alt_rec').setAttribute('title', 'Please enter a case id ("' + sampleItemPrefix + '" + ' + sampleItemNumDigits + ' digits)'); |
4829 |
01 Jun 18 |
olle |
215 |
} |
4829 |
01 Jun 18 |
olle |
else |
4829 |
01 Jun 18 |
olle |
217 |
{ |
4829 |
01 Jun 18 |
olle |
Doc.element('caseName').setAttribute('title', 'Please enter a case id ("' + sampleItemPrefix + '" + ' + sampleItemNumDigits + ' digits)'); |
4829 |
01 Jun 18 |
olle |
219 |
} |
4151 |
04 Oct 16 |
olle |
220 |
} |
4829 |
01 Jun 18 |
olle |
221 |
|
2933 |
14 Nov 14 |
olle |
index.caseSummary = function() |
2933 |
14 Nov 14 |
olle |
223 |
{ |
2933 |
14 Nov 14 |
olle |
var frm = document.forms['meludi']; |
2933 |
14 Nov 14 |
olle |
225 |
|
2933 |
14 Nov 14 |
olle |
var caseName = frm.caseName.value; |
2933 |
14 Nov 14 |
olle |
if (!caseName) |
2933 |
14 Nov 14 |
olle |
228 |
{ |
4214 |
08 Nov 16 |
olle |
Forms.showNotification('caseName', 'Please enter a case id ("' + sampleItemPrefix + '" + ' + sampleItemNumDigits + ' digits)', null, null, 'left'); |
2933 |
14 Nov 14 |
olle |
return; |
2933 |
14 Nov 14 |
olle |
231 |
} |
2933 |
14 Nov 14 |
olle |
var url = 'reports/case_summary.jsp?ID='+App.getSessionId(); |
2933 |
14 Nov 14 |
olle |
url += '&caseName='+encodeURIComponent(caseName); |
2933 |
14 Nov 14 |
olle |
location.href = url; |
2933 |
14 Nov 14 |
olle |
235 |
} |
2933 |
14 Nov 14 |
olle |
236 |
|
4788 |
02 May 18 |
olle |
index.caseSummary_alt_rec = function() |
4788 |
02 May 18 |
olle |
238 |
{ |
4788 |
02 May 18 |
olle |
var frm = document.forms['meludi']; |
4788 |
02 May 18 |
olle |
240 |
|
4788 |
02 May 18 |
olle |
var caseName = frm.caseName_alt_rec.value; |
4788 |
02 May 18 |
olle |
if (!caseName) |
4788 |
02 May 18 |
olle |
243 |
{ |
4788 |
02 May 18 |
olle |
Forms.showNotification('caseName_alt_rec', 'Please enter a case id ("' + sampleItemPrefix + '" + ' + sampleItemNumDigits + ' digits)', null, null, 'left'); |
4788 |
02 May 18 |
olle |
return; |
4788 |
02 May 18 |
olle |
246 |
} |
4788 |
02 May 18 |
olle |
var url = 'reports/case_summary_alt_rec.jsp?ID='+App.getSessionId(); |
4788 |
02 May 18 |
olle |
url += '&caseName='+encodeURIComponent(caseName); |
4788 |
02 May 18 |
olle |
location.href = url; |
4788 |
02 May 18 |
olle |
250 |
} |
4788 |
02 May 18 |
olle |
251 |
|
3176 |
06 Mar 15 |
olle |
index.testReggie = function(event) |
2933 |
14 Nov 14 |
olle |
253 |
{ |
2933 |
14 Nov 14 |
olle |
if (event.currentTarget.value == 'Reggi' && event.charCode == 101) |
2933 |
14 Nov 14 |
olle |
255 |
{ |
2933 |
14 Nov 14 |
olle |
setTimeout(index.showSnake, 500); |
2933 |
14 Nov 14 |
olle |
257 |
} |
2933 |
14 Nov 14 |
olle |
258 |
} |
2933 |
14 Nov 14 |
olle |
259 |
|
4788 |
02 May 18 |
olle |
index.testReggie_alt_rec = function(event) |
4788 |
02 May 18 |
olle |
261 |
{ |
4788 |
02 May 18 |
olle |
if (event.currentTarget.value == 'Reggi' && event.charCode == 101) |
4788 |
02 May 18 |
olle |
263 |
{ |
4788 |
02 May 18 |
olle |
setTimeout(index.showSnake_alt_rec, 500); |
4788 |
02 May 18 |
olle |
265 |
} |
4788 |
02 May 18 |
olle |
266 |
} |
4788 |
02 May 18 |
olle |
267 |
|
3176 |
06 Mar 15 |
olle |
index.testSnake = function(event) |
3176 |
06 Mar 15 |
olle |
269 |
{ |
3176 |
06 Mar 15 |
olle |
if (event.currentTarget.value == 'Snak' && event.charCode == 101) |
3176 |
06 Mar 15 |
olle |
271 |
{ |
3176 |
06 Mar 15 |
olle |
setTimeout(index.showSnake, 500); |
3176 |
06 Mar 15 |
olle |
273 |
} |
3176 |
06 Mar 15 |
olle |
274 |
} |
3176 |
06 Mar 15 |
olle |
275 |
|
4788 |
02 May 18 |
olle |
index.testSnake_alt_rec = function(event) |
4788 |
02 May 18 |
olle |
277 |
{ |
4788 |
02 May 18 |
olle |
if (event.currentTarget.value == 'Snak' && event.charCode == 101) |
4788 |
02 May 18 |
olle |
279 |
{ |
4788 |
02 May 18 |
olle |
setTimeout(index.showSnake_alt_rec, 500); |
4788 |
02 May 18 |
olle |
281 |
} |
4788 |
02 May 18 |
olle |
282 |
} |
4788 |
02 May 18 |
olle |
283 |
|
2933 |
14 Nov 14 |
olle |
index.showSnake = function() |
2933 |
14 Nov 14 |
olle |
285 |
{ |
2933 |
14 Nov 14 |
olle |
var msg = '<img src="images/snake-icon-64.png" style="float: right;">' |
2933 |
14 Nov 14 |
olle |
msg += '– There\'s a big snake in the plane, Jock!<br>'; |
2933 |
14 Nov 14 |
olle |
msg += '– Oh, that\'s just my pet snake, Reggie!<br>'; |
2933 |
14 Nov 14 |
olle |
msg += '– I hate snakes, Jock! I hate \'em!<br>'; |
2933 |
14 Nov 14 |
olle |
msg += '– Come on! Show a little backbone, will ya?<br>'; |
2933 |
14 Nov 14 |
olle |
msg += '<div class="snake-quote-source">Indiana Jones - Raiders of the Lost Ark</div>'; |
2933 |
14 Nov 14 |
olle |
Forms.showNotification('caseName', msg, 'snake-quote', 'pointer-above', 'left'); |
2933 |
14 Nov 14 |
olle |
293 |
} |
2933 |
14 Nov 14 |
olle |
294 |
|
4788 |
02 May 18 |
olle |
index.showSnake_alt_rec = function() |
4788 |
02 May 18 |
olle |
296 |
{ |
4788 |
02 May 18 |
olle |
var msg = '<img src="images/snake-icon-64.png" style="float: right;">' |
4788 |
02 May 18 |
olle |
msg += '– There\'s a big snake in the plane, Jock!<br>'; |
4788 |
02 May 18 |
olle |
msg += '– Oh, that\'s just my pet snake, Reggie!<br>'; |
4788 |
02 May 18 |
olle |
msg += '– I hate snakes, Jock! I hate \'em!<br>'; |
4788 |
02 May 18 |
olle |
msg += '– Come on! Show a little backbone, will ya?<br>'; |
4788 |
02 May 18 |
olle |
msg += '<div class="snake-quote-source">Indiana Jones - Raiders of the Lost Ark</div>'; |
4788 |
02 May 18 |
olle |
Forms.showNotification('caseName_alt_rec', msg, 'snake-quote', 'pointer-above', 'left'); |
4788 |
02 May 18 |
olle |
304 |
} |
4788 |
02 May 18 |
olle |
305 |
|
2933 |
14 Nov 14 |
olle |
index.testMeludi = function(event) |
2933 |
14 Nov 14 |
olle |
307 |
{ |
2933 |
14 Nov 14 |
olle |
if (event.currentTarget.value == 'MeLuD' && event.charCode == 105) |
2933 |
14 Nov 14 |
olle |
309 |
{ |
2933 |
14 Nov 14 |
olle |
setTimeout(index.showMeludi, 500); |
2933 |
14 Nov 14 |
olle |
311 |
} |
2933 |
14 Nov 14 |
olle |
312 |
} |
2933 |
14 Nov 14 |
olle |
313 |
|
4788 |
02 May 18 |
olle |
index.testMeludi_alt_rec = function(event) |
4788 |
02 May 18 |
olle |
315 |
{ |
4788 |
02 May 18 |
olle |
if (event.currentTarget.value == 'MeLuD' && event.charCode == 105) |
4788 |
02 May 18 |
olle |
317 |
{ |
4788 |
02 May 18 |
olle |
setTimeout(index.showMeludi_alt_rec, 500); |
4788 |
02 May 18 |
olle |
319 |
} |
4788 |
02 May 18 |
olle |
320 |
} |
4788 |
02 May 18 |
olle |
321 |
|
3210 |
26 Mar 15 |
olle |
index.testMeludiUpperCaseI = function(event) |
3210 |
26 Mar 15 |
olle |
323 |
{ |
3210 |
26 Mar 15 |
olle |
if (event.currentTarget.value == 'MeLuD' && event.charCode == 73) |
3210 |
26 Mar 15 |
olle |
325 |
{ |
3210 |
26 Mar 15 |
olle |
setTimeout(index.showMeludi, 500); |
3210 |
26 Mar 15 |
olle |
327 |
} |
3210 |
26 Mar 15 |
olle |
328 |
} |
3210 |
26 Mar 15 |
olle |
329 |
|
4788 |
02 May 18 |
olle |
index.testMeludiUpperCaseI_alt_rec = function(event) |
4788 |
02 May 18 |
olle |
331 |
{ |
4788 |
02 May 18 |
olle |
if (event.currentTarget.value == 'MeLuD' && event.charCode == 73) |
4788 |
02 May 18 |
olle |
333 |
{ |
4788 |
02 May 18 |
olle |
setTimeout(index.showMeludi_alt_rec, 500); |
4788 |
02 May 18 |
olle |
335 |
} |
4788 |
02 May 18 |
olle |
336 |
} |
4788 |
02 May 18 |
olle |
337 |
|
2933 |
14 Nov 14 |
olle |
index.showMeludi = function() |
2933 |
14 Nov 14 |
olle |
339 |
{ |
3028 |
11 Dec 14 |
olle |
var msg = '<img src="images/dancing_reggie.gif">' |
2933 |
14 Nov 14 |
olle |
msg += '<br>'; |
3210 |
26 Mar 15 |
olle |
msg += '<div class="meludi-reggie-source">MeLuDI - Making Reggie dance to a new tune</div>'; |
3028 |
11 Dec 14 |
olle |
Forms.showNotification('caseName', msg, 'meludi-reggie', 'pointer-above', 'left'); |
2933 |
14 Nov 14 |
olle |
344 |
} |
2933 |
14 Nov 14 |
olle |
345 |
|
4788 |
02 May 18 |
olle |
index.showMeludi_alt_rec = function() |
4788 |
02 May 18 |
olle |
347 |
{ |
4788 |
02 May 18 |
olle |
var msg = '<img src="images/dancing_reggie.gif">' |
4788 |
02 May 18 |
olle |
msg += '<br>'; |
4788 |
02 May 18 |
olle |
msg += '<div class="meludi-reggie-source">MeLuDI - Making Reggie dance to a new tune</div>'; |
4788 |
02 May 18 |
olle |
Forms.showNotification('caseName_alt_rec', msg, 'meludi-reggie', 'pointer-above', 'left'); |
4788 |
02 May 18 |
olle |
352 |
} |
4788 |
02 May 18 |
olle |
353 |
|
2933 |
14 Nov 14 |
olle |
return index; |
2933 |
14 Nov 14 |
olle |
355 |
}(); |
2933 |
14 Nov 14 |
olle |
356 |
|
2933 |
14 Nov 14 |
olle |
Doc.onLoad(Index.initPage); |
2933 |
14 Nov 14 |
olle |
358 |
|