PageSourceSearch

https://www.backroads.com/sites/default/files/js/js_nXiqSlsb0G4Psl…YyeDwP388aNIaZrKtWxBEZuQS55q6_KcpS3_ASUxTa0

js backroads.com collected 2026-10-02 04:23:25 UTC 4,993 bytes, 3 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2(function($){'use strict';Drupal.AjaxCommands.prototype.turnstileRender=function(){window.onloadTurnstileCallback();};window.onloadTurnstileCallback=function(){$('.cf-turnstile').each(function(){if($(this).is(':empty')){const widget=this;const appearance=$(widget).data('appearance')||'';const setA11yVisibility=function(visible){if(visible){$(widget).removeAttr('inert');$(widget).removeAttr('aria-hidden');}else{$(widget).attr('inert','true');$(widget).attr('aria-hidden','true');}};turnstile.render(widget,{'before-interactive-callback':function(){if(appearance==='interaction-only')setA11yVisibility(true);}});if(appearance==='interaction-only')setA11yVisibility(false);}});};})(jQuery);;
3(function(Drupal,once){'use strict';function getSubmitButtons(form){return form.querySelectorAll('button[type="submit"], input[type="submit"], button.webform-button--submit');}function hasBlockingValidationError(form){return !!form.querySelector('.form-item--error, .message-error--complete-all-fields');}function setSubmitEnabled(form,enabled){const shouldEnable=enabled&&!hasBlockingValidationError(form);getSubmitButtons(form).forEach((button)=>{button.disabled=!shouldEnable;if(shouldEnable)button.removeAttribute('aria-disabled');else button.setAttribute('aria-disabled','true');});}function syncForm(form){const response=form.querySelector('[name="cf-turnstile-response"]');const hasToken=!!(response&&response.value);setSubmitEnabled(form,hasToken);if(hasToken)clearTurnstileError(form);}function gateForm(form){if(!form||form.hasAttribute('data-bkr-turnstile-gated'))return;form.setAttribute('data-bkr-turnstile-gated','true');setSubmitEnabled(form,false);}function clearTurnstileError(form){const existing=form.querySelector('[data-bkr-turnstile-error]');if(existing)existing.remove();}function showTurnstileError(form,widget){clearTurnstileError(form);setSubmitEnabled(form,false);const message=document.createElement('div');message.setAttribute('data-bkr-turnstile-error','true');message.setAttribute('role','alert');message.className='bkr-turnstile-error messages messages--error';message.style.marginTop='0.75rem';const text=document.createElement('span');text.textContent=Drupal.t('Security check failed to load. Please retry before signing up.');message.appendChild(text);const retry=document.createElement('button');retry.type='button';retry.className='button button--small';retry.style.marginLeft='0.75rem';retry.textContent=Drupal.t('Retry');retry.addEventListener('click',function(){clearTurnstileError(form);if(window.turnstile&&typeof window.turnstile.reset==='function')try{window.turnstile.reset(widget);}catch(e){}});message.appendChild(retry);const anchor=widget.parentNode||form;anchor.appendChild(message);}function enhanceRenderOptions(widget,options){if(!widget)return options||{};const form=widget.closest('form');if(!form)return options||{};gateForm(form);const nextOptions=options||{};const previousCallback=nextOptions.callback;const previousExpired=nextOptions['expired-callback'];const previousError=nextOptions['error-callback'];const previousTimeout=nextOptions['timeout-callback'];nextOptions.callback=function(token){setSubmitEnabled(form,!!token);if(token)clearTurnstileError(form);if(typeof previousCallback==='function')previousCallback(token);};nextOptions['expired-callback']=function(){setSubmitEnabled(form,false);if(typeof previousExpired==='function')previousExpired();};nextOptions['error-callback']=function(){showTurnstileError(form,widget);if(typeof previousError==='function')previousError();return true;};nextOptions['timeout-callback']=function(){showTurnstileError(form,widget);if(typeof previousTimeout==='function')previousTimeout();};return nextOptions;}function patchTurnstileApi(){if(!window.turnstile)return false;if(window.turnstile.__bkrSubmitGatePatched)return true;const originalRender=window.turnstile.render.bind(window.turnstile);window.turnstile.render=function(el,options){const widget=typeof el==='string'?document.querySelector(el):el;return originalRender(el,enhanceRenderOptions(widget,options));};window.turnstile.__bkrSubmitGatePatched=true;return true;}function wrapOnloadCallback(){if(window.__bkrTurnstileOnloadWrapped)return;window.__bkrTurnstileOnloadWrapped=true;const previous=window.onloadTurnstileCallback;window.onloadTurnstileCallback=function(){patchTurnstileApi();if(typeof previous==='function')previous();document.querySelectorAll('form[data-bkr-turnstile-gated="true"]').forEach(syncForm);};}wrapOnloadCallback();Drupal.behaviors.bkrTurnstileSubmitGate={attach(context){once('bkr-turnstile-submit-gate','form',context).forEach((form)=>{if(form.querySelector('.cf-turnstile')){gateForm(form);syncForm(form);}});patchTurnstileApi();once('bkr-turnstile-submit-gate-poll','html',document).forEach(()=>{window.setInterval(()=>{document.querySelectorAll('form[data-bkr-turnstile-gated="true"]').forEach(syncForm);},400);});}};})(Drupal,once);;

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.