1var jsLoader={ 2 3 openTasks: 0, 4 onNoOpenTasks: null, 5 initializationCallbacks: [], 6 loadBase: 'https://ticketing.diagonale.at', 7 loadPath: 'js', 8 9 libs: {}, 10 11 loadOptions: { 12 bypassCache: false //new Date().valueOf() 13 }, 14 15 initializeOne: function(name) { 16 var e=null; 17 try { window[name].initialize(); } 18 catch (e) { e=null; } 19 this.openTasks--; 20 if (this.openTasks<0) this.openTasks=0; 21 if (this.openTasks==0) 22 if (this.onNoOpenTasks) this.onNoOpenTasks(); 23 }, 24 25 loadOne: function (name, definition) { 26 var src=name+'/'+definition.version+'/'+name+'.js'; 27 if (this.loadPath) src=this.loadPath+'/'+src; 28 if (this.loadBase) src=this.loadBase+'/'+src; 29 if (this.loadOptions.bypassCache) src+='?nocache='+this.loadOptions.bypassCache; 30 var js=document.createElement('script'); 31 js.type='text/javascript'; 32 js.language='JavaScript'; 33 js.onload=function () { 34 window.setTimeout( 'jsLoader.initializeOne("'+name+'");', 10); 35 }; 36 js.src=src; 37 document.head.appendChild(js); 38 this.openTasks++; 39 }, 40 41 loadAll: function () { 42 this.onNoOpenTasks=this.allInitialized; 43 var lib=false; 44 for (lib in this.libs) { 45 this.loadOne(lib, this.libs[lib]); 46 } 47 if (!lib) this.onNoOpenTasks(); 48 }, 49 50 allInitialized: function () { 51 var ic=null; 52 var e=null; 53 for (ic in this.initializationCallbacks) { 54 try { this.initializationCallbacks[ic](); } 55 catch(e) { e=null; } 56 } 57 } 58 59} 60 61jsLoader.libs.ttIntegration={ version: 'v38' }; 62jsLoader.loadAll();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.