3){}else if(funcs.length===3){func=window[funcs[0]][funcs[1]][funcs[2]];}else if(funcs.length===2){func=window[funcs[0]][funcs[1]];}else{func=window[self.funcName];} if(typeof func!==’undefined’&&func!==null){func.apply(null,this.parameters);} if(self.deleteWhenComplete===true)delete items[name];if(self.isBlock===true){log(“—– F’D: “+self.name);processAll();}}},file:function(name,path,isBlock,blockedBy,async,defer,proceedIfError){var self=this;this.name=name;this.path=path;this.async=async;this.defer=defer;this.isBlock=isBlock;this.blockedBy=blockedBy;this.isInitialized=false;this.isError=false;this.isComplete=false;this.proceedIfError=proceedIfError;this.isTimeDelay=false;this.process=function(){self.isInitialized=true;log(“… file = “+name);var scr=document.createElement(‘script’);scr.src=path;if(async===true)scr.async=true;else if(defer===true)scr.defer=true;scr.onerror=function(){log(“—– ERR’D: “+self.name);self.isError=true;if(self.isBlock===true){processAll();}};scr.onreadystatechange=scr.onload=function(){var state=scr.readyState;log(“—– F’D: “+self.name);if((!state||/loaded|complete/.test(state))){self.isComplete=true;if(self.isBlock===true){processAll();}}};document.getElementsByTagName(‘head’)[0].appendChild(scr);}},fileLoaded:function(name,isComplete){this.name=name;this.path=””;this.async=false;this.defer=false;this.isBlock=false;this.blockedBy=[];this.isInitialized=true;this.isError=false;this.isComplete=isComplete;this.proceedIfError=false;this.isTimeDelay=false;this.process=function(){};}};function init(){window.addEventListener(“load”,function(){setTimeout(function(){timeDelayFired=true;log(‘TDELAY —–‘);processAll();},5000);},false);} function addFile(name,path,isBlock,blockedBy,async,defer,proceedIfError,priority){var item=new obj.file(name,path,isBlock,blockedBy,async,defer,proceedIfError);if(priority===true){hpItems[name]=item}else{lpItems[name]=item} items[name]=item;checkIfBlocked(item);} function setallowLoad(settobool){allowLoad=settobool} function addFunc(name,func,parameters,isBlock,blockedBy,autoInc,deleteWhenComplete,proceedIfError,priority){if(autoInc===true)name=name+”_”+incr++;var item=new obj.func(name,func,parameters,isBlock,blockedBy,deleteWhenComplete,proceedIfError);if(priority===true){hpItems[name]=item}else{lpItems[name]=item} items[name]=item;checkIfBlocked(item);} function addTimeDelayFile(name,path){var item=new obj.file(name,path,false,[],false,false,true);item.isTimeDelay=true;log(name+’ … ‘+’ FILE! TDELAY’);lpItems[name]=item;items[name]=item;checkIfBlocked(item);} function addTimeDelayFunc(name,func,parameters){var item=new obj.func(name,func,parameters,false,[],true,true);item.isTimeDelay=true;log(name+’ … ‘+’ FUNCTION! TDELAY’);lpItems[name]=item;items[name]=item;checkIfBlocked(item);} function checkIfBlocked(item){if(isBlocked(item)===true||allowLoad==false)return;item.process();} function isBlocked(item){if(item.isTimeDelay===true&&timeDelayFired===false){log(item.name+” blocked …
Travel from Bhatpara to Tiruchengodu by car Read More »