PageSourceSearch

https://www.vamoosebus.com/shared/scripts/stdLib.min.js?ver=28.09.2026

js vamoosebus.com collected 2026-10-02 07:37:14 UTC 12,293 bytes, 9 lines download raw bytes

1function isnull(n){if(typeof n=="object")return n==null?!0:!1;n=n+"";return n==""||n=="null"||n=="undefined"}function isDate(n){var t=new Date(n);return t.toString()=="NaN"||t.toString()=="Invalid Date"?!1:!0}function isValidTime(n){var t=n.match(/^(\d{1,2}):(\d{2})(:(\d{2}))?(\s?(AM|am|PM|pm))?$/);if(t==null)return alert("Time is not in a valid format."),!1;var r=t[1],f=t[2],i=t[4],u=t[6];return(i==""&&(i=null),u==""&&(u=null),r<0||r>23)?(alert("Hour must be between 1 and 12. (or 0 and 23 for military time)"),!1):r<=12&&u==null&&confirm("Please indicate which time format you are using. OK = Standard Time, CANCEL = Military Time")?(alert("You must specify AM or PM."),!1):r>12&&u!=null?(alert("You can't specify AM or PM for military time."),!1):f<0||f>59?(alert("Minute must be between 0 and 59."),!1):i!=null&&(i<0||i>59)?(alert("Second must be between 0 and 59."),!1):!0}function zeroPad(n,t){isnull(t)&&(t=2);for(var i=new String(n);i.length<t;)i="0"+i;return i}function nvl(){for(var n=0;n<arguments.length;n++)if(!isnull(arguments[n]))return arguments[n];return""}function trim(n){try{return n.replace(/^\s+|\s+$/g,"")}catch(t){return n}}function go(n,t){isnull(t)||!t?window.location=n:window.open(n)}function navigateTo(n){window.location.replace(n)}function escapeXmlChars(n){return n=n+"",n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function unescapeXmlChars(n){return n=n+"",n.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&amp;/g,"&")}function delCookie(n){var t=new Date;set_cookie(n,"",t.getFullYear()-30,t.getMonth(),t.getDate(),"/");setTimeout("go('/')",0)}function getCookie(n){for(var i,r=document.cookie.split(";"),t=0;t<r.length;t++)if(i=r[t].split("="),n==trim(i[0]))return unescape(i[1]);return null}function get_cookie(n){var t=document.cookie.match(n+"=(.*?)(;|$)");return t?unescape(t[1]):null}function get_cookie_object(n){var u={},f=$.cookie(n),i,t,r;if(isnull(f))return null;for(i=$.cookie(n).split("&"),t=0;t<i.length;t++)r=i[t].split("="),u[r[0]]=r[1];return u}function set_cookie(n,t,i,r,u,f,e,o){var s=n+"="+t,h;i&&(h=new Date(i,r,u),s+="; expires="+h.toGMTString());f&&(s+="; path="+escape(f));e&&(s+="; domain="+escape(e));o&&(s+="; secure");document.cookie=s}function openWindow(n,t,i){var r;i=nvl(i,"defWin");r=isnull(t)?window.open(n,i):window.open(n,i,t);r.focus()}function showHideDiv(n){try{n!=lastObjID&&(document.getElementById(lastObjID).style.display="none")}catch(t){}document.getElementById(n).style.display=document.getElementById(n).style.display=="none"?"":"none";lastObjID=n}function showActiveElement(n){try{n!=activeElementID&&(document.getElementById(activeElementID).style.display="none")}catch(t){}document.getElementById(n).style.display="";activeElementID=n}function imgOnOff(n,t){isnull(arrImages[n.src])&&(arrImages[n.src]=new Image,arrImages[n.src].src=n.src);imgSrc=arrImages[n.src].src;imgSrc=imgSrc.toLowerCase();t?(imageOn=imgSrc.substring(0,imgSrc.indexOf("off.gif"))+"on.gif",n.src=imageOn):(imageOff=imgSrc.substring(0,imgSrc.indexOf("on.gif"))+"off.gif",n.src=imageOff)}function toggleImg(n,t){var i=document.getElementById(n);isnull(arrImages[i.src])&&(arrImages[i.src]=new Image,arrImages[i.src].src=i.src);i.src=t}function dlgFeatures(n,t,i){var r,u;return i?(r=(isnull(i.screenLeft)?i.screenX:i.screenLeft)+(i.document.body.clientWidth-n)/2,u=(isnull(i.screenTop)?i.screenY:i.screenTop)+(i.document.body.clientHeight-t)/2):(r=(isnull(window.screenLeft)?window.screenX:window.screenLeft)+(document.body.clientWidth-n)/2,u=(isnull(window.screenTop)?window.screenY:window.screenTop)+(document.body.clientHeight-t)/2),(r>screen.availWidth||u>screen.availHeight)&&(r=(screen.availWidth-n)/2,u=(screen.availHeight-t)/2),"dialogLeft:"+r+"px;dialogTop:"+u+"px;dialogWidth:"+n+"px;dialogHeight:"+t+"px;status:no; scroll:no; edge:no;help:no;"}function alertSize(){var n=0,t=0;typeof innerWidth=="number"?(n=window.innerWidth,t=window.innerHeight):document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?(n=document.documentElement.clientWidth,t=document.documentElement.clientHeight):document.body&&(document.body.clientWidth||document.body.clientHeight)&&(n=document.body.clientWidth,t=document.body.clientHeight);window.alert("Width = "+n+" and height = "+t)}function getScrollXY(){var n=0,t=0;typeof pageYOffset=="number"?(t=window.pageYOffset,n=window.pageXOffset):document.body&&(document.body.scrollLeft||document.body.scrollTop)?(t=document.body.scrollTop,n=document.body.scrollLeft):document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)&&(t=document.documentElement.scrollTop,n=document.documentElement.scrollLeft);window.alert("Horizontal scrolling = "+n+"\nVertical scrolling = "+t)}function cutString(n,t,i,r){var u,f,o,e;if(isnull(n)||t==0)return"";if((isnull(r)&&(r=!1),u=n,String(u).length<=t)||(f=String(u).substring(0,t),i==!0&&String(u).length-t<3))return u;if(o="",!r)for(e=t;e<String(u).length;e++){if(o=String(u).substring(e,e+1),o==" ")break;f+=o}return f.length<u.length&&i==!0?f+"...":f}function addFavorite(n,t){window.sidebar?window.sidebar.addPanel
1(t,n,""):window.external?window.external.AddFavorite(n,t):alert("You need to click CTRL+D to bookmark us.")}function qoute1(n){return"'"+n+"'"}function qoute2(n){return'"'+n+'"'}function getRadioSelectedValue(n,t,r){var u,f;try{for(u=t?document.getElementsByName(n):document.getElementById(n).getElementsByTagName("input"),i=0;i<u.length;i++)if(f=u[i],f.checked)return t?r[i]:f.value}catch(e){return null}}function setRadioSelectedValue(n,t){var u=document.getElementById(n).getElementsByTagName("input"),r;for(i=0;i<u.length;i++)r=u[i],r.value==t&&(r.checked=!0)}function AjaxTimeout(){return}function setDirty(n){form_is_dirty=n}function GetRadWindow(){var n=null;return window.radWindow?n=window.radWindow:window.frameElement.radWindow&&(n=window.frameElement.radWindow),n.rv=null,n}function limitToNumbers(){return}function compareDate(n,t){return isnull(n)?!0:isnull(t)?!1:(typeof n=="string"&&(n=new Date(n)),typeof t=="string"&&(t=new Date(t)),n.getYear()>t.getYear())?!1:n.getYear()<t.getYear()?!0:n.getMonth()>t.getMonth()?!1:n.getMonth()<t.getMonth()?!0:n.getDate()<=t.getDate()}function compareTime(n,t,i){var r,u;return $.type(n)=="date"?(r=n,u=t):(r=new Date("01/01/1900 "+n),u=new Date("01/01/1900 "+t)),isnull(i)?r<=u:(r=new Date(r.getTime()+i*6e4),r<=u)}function max(n,t){return n>t?n:t}function min(n,t){return n<t?n:t}function validateEmail(n){var t=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/,t=/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/;return t.test(n)}function validateZipCode(n){if(!n)return!1;return/^[a-zA-Z0-9\s\-]{3,20}$/.test(n)}function validateExpDate(n){var t=/(0[1-9]|1[0-2])([0-9]{4})/.exec(n),f;if(t){var e=t[1],i=t[2],r=new Date,u=r.getFullYear();if(Number(i)<u||Number(i)==u&&(f=r.getMonth()+1,Number(e)<f))return!1}else return!1;return!0}function validatePhone(n){return/^[\d-+() .]+$/.test(n)}function validateCardNum(n){n=n.replace(/[-' ']/g,"");return/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/.test(n)}function showLoadingMsg(n){$(".loading-message").text(n?n:"Loading...");app.showLoading()}function parseDate(n){if(isnull(n))return null;var t=n.match(/(\d+)/g);return new Date(t[0],t[1]-1,t[2])}function isObjectEqual(n,t){if(typeof n!="object"||typeof t!="object")return!1;const i=Object.keys(n),r=Object.keys(t);if(i.length!==r.length||!i.every(n=>r.includes(n)))return!1;for(const r of i){const i=n[r],u=t[r];if(typeof i!=typeof u)return!1;if(typeof i=="object"){if(!isObjectEqual(i,u))return!1}else if(i!==u)return!1}return!0}function buildObjFromQs(){var r,t,n,i,u,f;if(!(qsParm.length>0))for(r=window.location.search.substring(1),t=r.split("&"),n=0;n<t.length;n++)i=t[n].indexOf("="),i>0&&(u=t[n].substring(0,i),f=t[n].substring(i+1),qsParm[u]=f)}function getQSParameterByName(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i="[\\?&]"+n+"=([^&#]*)",r=new RegExp(i),t=r.exec(window.location.href);return t==null?"":decodeURIComponent(t[1].replace(/\+/g," "))}function limitChars(n,t,i){var r=$("#"+n).val(),u=r.length;return u>t?($("#"+i).html("You cannot write more then "+t+" characters!"),$("#"+n).val(r.substr(0,t)),!1):($("#"+i).html("You have "+(t-u)+" characters left."),!0)}function copyToClipboard(n,t){var i=document.getElementById(n),r;i.select();i.setSelectionRange(0,99999);document.execCommand("copy");try{r=document.getElementById(t);r.innerHTML="The text<br> <b>"+i.value+"<\/b> <br>was successfully copied to the clipboard."}catch(u){alert("The text \n"+i.value+"\nwas successfully copied to the clipboard.")}}function copyToClipboardResetTooltip(n){var t=document.getElementById(n);t.innerHTML="Copy to clipboard"}function getTimeRemaining(n,t){var r,u,o;globalServerDateTime=isnull(globalServerDateTime)?isnull(t)?new Date:t:new Date(globalServerDateTime.getTime()+1e3);var f=(n-globalServerDateTime)/1e3,i=parseInt(f),e=Math.floor(i/86400);return i-=e*86400,r=Math.floor(i/3600)%24,i-=r*3600,u=Math.floor(i/60)%60,i-=u*60,o=Math.ceil(i),{total:f,days:e,hours:r,minutes:u,seconds:o}}function getTimeRemainingWallClock(n,t){var s=Date.now()+(t||0),r=(n.getTime()-s)/1e3,i=r>0?parseInt(r):0,e=Math.floor(i/86400),u,f,o;return i-=e*86400,u=Math.floor(i/3600)%24,i-=u*3600,f=Math.floor(i/60)%60,i-=f*60,o=Math.ceil(i),{total:r,days:e,hours:u,minutes:f,seconds:o}}function flyToElement(n,t,i){var o=$(this),u=3,r=$(n).clone(),f,e;$(r).css({position:"absolute",top:$(n).offset().top+"px",left:$(n).offset().left+"px",opacity:1,"z-index":1e3});$("body").append($(r));f=$(t).offset().left+$(t).width()/2-$(n).width()/u/2;e=$(t).offset().top+$(t).height()/2-$(n).height()/u/2;$(r).animate({opacity:.4,left:f,top:e,width:$(n).width()/u,height:$(n).height()/u},1e3,function(){$(t).fadeOut("fast",function(){$(t).fadeIn("slow",function(){$(r).fadeIn("fast",function(){$(r).prependTo(i).css("position","static")})})})})}function StringBuilder(n){this.strings=[""];this.append(n)}function formatCurrency(n){if(isNaN(n))return n;var i=Math.abs(n).toFixed(2),t=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(i);return n<0&&(t="("+t+")"),t}
1function GetSeatsSelectedStructure(){return objSeatsSelectedPromise||(objSeatsSelectedPromise=new Promise((n,t)=>{$.ajax({type:"POST",url:"/shared/transportation/WebService/SeatsSelection_ws.asmx/GetSeatsSelectedStructure",data:JSON.stringify({returnProcesses:!1}),contentType:"application/json; charset=utf-8",dataType:"json",success:function(t){t.d&&n(t.d)},error:function(n){console.error("stdLib.js Error! GetSeatsSelectedStructure:\n",n);t(n)}})})),objSeatsSelectedPromise}var windowWidth=0,minWindowWidth=768,maxWindowWidth=1600,windowHeight=0,minWindowHeight=850,maxWindowHeight=1100,lastObjID,activeElementID,arrImages,imgSrc,form_is_dirty,qsParm,globalServerDateTime;$.fn.scrollIntoView=function(n,t){var i=0;return i=this.offset().top>$(document).height()-$(window).height()?$(document).height()-$(window).height():this.offset().top,$("html,body").animate({scrollTop:i},n,t),this};lastObjID="";activeElementID="";arrImages=[];imgSrc="";form_is_dirty=!1;qsParm=[];
2/*!
3 * Function: flyToElement
4 * Author: CodexWorld
5 * Author URI: http://www.codexworld.com  
6 * Author Email: [email protected]
7 * Description: This function is used for adding flying effect to the element.
8 */
9StringBuilder.prototype.append=function(n){n&&this.strings.push(n)};StringBuilder.prototype.clear=function(){this.strings.length=1};StringBuilder.prototype.toString=function(){return this.strings.join("")};String.format=function(n){var i,t;if(arguments.length<=1)return n;for(i=arguments.length-2,t=0;t<=i;t++)n=n.replace(new RegExp("\\{"+t+"\\}","gi"),arguments[t+1]);return n};let objSeatsSelectedPromise=null,objSeatsSelected=null;try{typeof envApi!="undefined"&&GetSeatsSelectedStructure().then(function(n){objSeatsSelected=n}).catch(function(n){console.error("stdLib.js - Failed to retrieve objSeatsSelected",n)})}catch(error){console.error("stdLib.js - envApi is undefined",error)}

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.