PageSourceSearch

https://www.amtrakvacations.com/sites/amtrak/files/js/js_s7PeMeGvK…qkFvZyf7AE2QJxDtSZFkxIkSMa2qdeGwg9adfU2vN6g

js amtrakvacations.com collected 2026-10-03 23:00:20 UTC 5,432 bytes, 3 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2"use strict";(function($,Drupal,once){Drupal.behaviors.modalCustom={attach:function attach(context,settings){$(once('modalCustom','.modal',context)).each(function(){function setCookie(variable,value,expires_seconds){var d=new Date();d=new Date(d.getTime()+1000*expires_seconds);document.cookie=variable+'='+value+'; expires='+d.toGMTString()+';';}function getCookie(name){var match=document.cookie.match(RegExp('(?:^|;\\s*)'+name+'=([^;]*)'));return match?match[1]:null;}var displayModal=true;if(localStorage.getItem('purlPartner')){var purlStorage=localStorage.getItem('purlPartner');var purl=JSON.parse(purlStorage);if(!purl.purlData.displayPopup)displayModal=false;}var modal=document.querySelector('.modal--email');var modalTitle=modal.querySelector('.modal__title span').innerHTML;var modalForm=modal.querySelector('form');var isGlobal=modal.classList.contains("is-global");var delay=modal.getAttribute('data-delay');var modalScrollDelayAttr=modal.getAttribute('data-scroll-delay');if(typeof modalScrollDelayAttr!=='undefined'&&modalScrollDelayAttr!==false)var scrollDelay=modal.getAttribute('data-scroll-delay');var delaySeconds=delay*1000;var url=window.location.search;var notMarketo=!url.includes('mkt_tok=');function showModal(){$(modal).modal({showClose:false});}function scrollShowModal(){if(!sessionStorage.getItem('modal-'+modal.id+'-scrolled'))$(window).on('scroll',function(){var windowHeight=$(window).height();var documentHeight=$(document).height();var scrollTop=$(window).scrollTop();var trackLength=documentHeight-windowHeight;var pctScrolled=Math.floor(scrollTop/trackLength*100);if(pctScrolled>=scrollDelay){showModal();setSession('modal-'+modal.id+'-scrolled',true);$(window).off('scroll');}});}function setSession(key,value){if(typeof Storage!=="undefined")sessionStorage.setItem(key,value);}modalForm.addEventListener('submit',function(){setSession('modal-submit','true');});if(modal&&displayModal&&sessionStorage.getItem('modal-submit')!=='true'&&notMarketo)setTimeout(function(){if(!isGlobal)if(!sessionStorage.getItem('modal-first'))if(typeof scrollDelay==='undefined'||scrollDelay===null){showModal();setSession('modal-first',modal.querySelector('.modal__title span').innerHTML);}else{scrollShowModal();setSession('modal-first',modal.querySelector('.modal__title span').innerHTML);}else{if(!sessionStorage.getItem('modal-second')&&sessionStorage.getItem('modal-first')!==modalTitle)if(typeof scrollDelay==='undefined'||scrollDelay===null){showModal();setSession('modal-second',true);}else{scrollShowModal();setSession('modal-second',true);}}else{if(!sessionStorage.getItem('modal-global'))if(typeof scrollDelay==='undefined'||scrollDelay===null){showModal();setSession('modal-global',true);if(!sessionStorage.getItem('modal-first'))setSession('modal-first',true);else setSession('modal-second',true);}else{scrollShowModal();setSession('modal-global',true);if(!sessionStorage.getItem('modal-first'))setSession('modal-first',true);else setSession('modal-second',true);}}},delaySeconds);else{if(sessionStorage.getItem('modal-submit'))setSession('modal-submit','false');}});}};Drupal.behaviors.modalForm={attach:function attach(context,settings){$(once('modalForm','.modal',context)).each(function(){var modal=$('.modal');var form=$('.modal form');if(modal.hasClass('new-tab')&&form.length)form.attr('target','_blank');});}};Drupal.behaviors.modalConfirmation={attach:function attach(context,settings){$(once('modalConfirmation','.webform-confirmation-modal',context)).each(function(){$('.jquery-modal').css('display','none');$('.webform-confirmation-modal').focus();});}};document.addEventListener('dialog:beforecreate',function(event){if(!document.body.matches('.site-amtrak, .site-railbookers')||!event.target.classList.contains('webform-confirmation-modal--content'))return;event.settings.classes=$.extend({},event.settings.classes);event.settings.classes['ui-dialog']=[event.settings.classes['ui-dialog'],'webform-confirmation-modal'].filter(Boolean).join(' ');});Drupal.behaviors.exitIntent={attach:function attach(context,settings){$(once('exitIntent','.exit-intent.modal',context)).each(function(){var exitIntent=document.querySelector('.exit-intent.modal')?document.querySelector('.exit-intent.modal'):null;function setSession(key,value){if(typeof Storage!=="undefined")sessionStorage.setItem(key,value);}if(exitIntent){var delay=exitIntent.getAttribute('data-delay')?exitIntent.getAttribute('data-delay')*1000:5000;var mouseEvent=function mouseEvent(e){var shouldShowExitIntent=!e.toElement&&!e.relatedTarget&&e.clientY
2<10;if(shouldShowExitIntent&&!sessionStorage.getItem('intent-displayed')){if($('.modal--email').length)$('.modal--email .modal__close > a.close').click();$(exitIntent).modal({showClose:false});setSession('intent-displayed');}};setTimeout(function(){if(!sessionStorage.getItem('intent-displayed'))document.addEventListener('mouseout',mouseEvent);},delay);}});}};})(jQuery,Drupal,once);;
3"use strict";(function($,Drupal,drupalSettings){"use strict";Drupal.behaviors.removeVisualSearch={attach:function attach(context,settings){var isEdge=/Edg\//.test(navigator.userAgent);if(isEdge)$('img',context).each(function(){$(this).addClass('remove-edge-visual-search');if($(this).parent('a').length&&$(this).parent('a').attr('class')===undefined)$(this).parent('a').addClass('adjust-a-size');});}};})(jQuery,Drupal);;

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.