PageSourceSearch

https://trailerdeconstruction.com/theme/stone/js/theme.js?v=e2463ba8

js trailerdeconstruction.com collected 2026-09-29 02:19:20 UTC 9,551 bytes, 1 lines download raw bytes

1var ModTheme=ModTheme||function(s){var e={},t={},o={},n={},i={},n=(e={settings:{debug:!0,meta:{},init:function(){}},cache:{window:window,document:document},base_url:function(o){return"/"+(o="undefined"===s.type(o)?"":o)+"/"},log:function(o){e.settings.debug&&console.log(o)}},{ajaxUrl:e.base_url("ajax"),send:function(o,e,r,t){s.ajax({type:o,url:n.ajaxUrl+e,dataType:"json",data:r,success:t})},call:function(o,e,r){n.send("POST",o,e,r)},get:function(o,e,r){n.send("GET",o,e,r)},init:function(){return{}}}),o={bindEvents:function(){s('a[href^="#"]').bind("click",function(o){o.preventDefault();var o=s(this).attr("href"),e="",e=0<s(o).length?o:(o=o.replace("#",""),s("a[name='"+o+"']"));t.scroll_to(e)}),o.init_dynamo_events(),o.init_navigation(),o.init_scrollToCTA(),o.init_hero_fit_cover(),o.init_resize(),0<s(".jq_logo_with_text").length&&t.adjustLogoText()},init_scrollToCTA:function(){0<s("#jq_scrollToCTA").length&&(window.onscroll=function(){var o=s("#jq_scrollToCTA"),e=document.body.scrollHeight-window.innerHeight,r=window.scrollY||window.pageYOffset||document.documentElement.scrollTop,t=s(o).data("bottom-offset"),n=("number"!=typeof t&&(t=0),s(o).data("top-offset"));20+(n="number"!=typeof n?0:n)<r?s(o).css("display","block"):s(o).css("display","none"),e-t<=r&&s(o).css("display","none")}),s("#jq_scrollToCTA, .jq_scrollToCTA").bind("click",function(o){o.preventDefault(),document.body.scrollTop=0,document.documentElement.scrollTop=0})},init_hero_fit_cover:function(){const o={defaultHeroMinHeight:null,init:function(){s(window).on("load",o.adjustHeroBackgroundHeight),s(window).on("resize",o.adjustHeroBackgroundHeight)},adjustHeroBackgroundHeight:function(){var e=document.querySelector(".jq_header"),r=document.querySelector(".jq_footer_cta_sticy"),t=document.querySelector(".jq_col_cta"),n=document.querySelector(".jq_col_image .jq_hero_image"),i=s(".jq_hero_fit_cover").data("fit-offset");if(n&&t)if(null===o.defaultHeroMinHeight&&(o.defaultHeroMinHeight=n.offsetHeight,o.defaultHeroMinHeight=window.getComputedStyle(n).minHeight),window.innerWidth<992&&t){e=e?e.offsetHeight:0,r=r?r.offsetHeight:0,t=t.offsetHeight;let o=window.innerHeight-e-r-t-(i||0);window.innerHeight<800&&(o=Math.max(o,200)),n.style.minHeight=o+"px"}else n.style.minHeight=o.defaultHeroMinHeight}};0<s(".jq_hero_fit_cover").length&&o.init()},init_resize:function(){let e=window.innerWidth,o;window.addEventListener("resize",()=>{clearTimeout(o),o=setTimeout(()=>{var o=window.innerWidth;o!==e&&(0<s(".jq_logo_with_text").length&&t.adjustLogoText(),e=o)},250)})},init_navigation:function(){i.init()},init_dynamo_events:function(){s(document).on("dynamoContactFormErrorShow",function(o,e){void 0!==e&&s.isArray(e)&&t.error_show(e)}),s(document).on("dynamoContactFormOtherErrorShow",function(o,e){void 0!==e&&s.isArray(e)&&t.error_contactFormOther_show(e)}),s(document).on("dynamoBusinessFormErrorShow",function(o,e){void 0!==e&&s.isArray(e)&&t.business_error_show(e)}),s(document).on("dynamoBusinessClaimFormErrorShow",function(o,e){void 0!==e&&s.isArray(e)&&t.business_claim_error_show(e)}),s(document).on("dynamoBusinessDeleteFormErrorShow",function(o,e){void 0!==e&&s.isArray(e)&&t.business_delete_error_show(e)}),s(document).on("dynamoListingInlineBusinessFormErrorShow",function(o,e){void 0!==e&&s.isArray(e)&&t.listing_inline_business_error_show(e)}),s(document).on("dynamoBusinessFormInitError",function(o,e){void 0!==e.error&&ModCore.ui_noty(e.error,"error")}),s(document).on("dynamoBusinessFormOnShow",function(o,e){t.scroll_to('a[name="contact_b"]')}),s(document).on("dynamoListingOnPaginate",function(o,e){t.scroll_to('a[name="lista"]')}),s(document).on("dynamoContactFormOnShow",function(o,e){var r;t.scroll_to('a[name="contactform"]'),0<s(".jq_contact_form_step:visible").length||(r=ModCore.dynamo_config_get_value(ModCore.dynamo_data_get(),"_cFPhone"),ModCore.string_is_empty(r))||ModCore.call_phone(r)}),s(document).on("dynamoPageNotificationShow",function(o,e){void 0!==e&&(e.status=void 0!==e.status?e.status:"error",e.msg=void 0!==e.msg?e.msg:"",ModCore.ui_noty(e.msg,e.status))}),s(document).on("dynamoPageScrollTo",function(o,e){void 0!==e&&void 0!==e.destination&&t.scroll_to(e.destination)}),s(document).on("dynamoContactFormStepChanged",function(o,e){if(void 0!==e.step)switch(e.step){case"address":ModCore.ui_noty("Please provide your address","success"),t.scroll_to(".jq_contact_form_step_address");break;case"custom_type_more":ModCore.ui_noty("Please give more details","success"),t.scroll_to(".jq_contact_form_step_custom_type_more")}}),s(document).on("dynamoBusinessFormStepChanged",function(o,e){void 0!==e.step&&"address"===e.step&&t.scroll_to(".jq_business_form_step_thankyou")}),s(document).on("dynamoListingInlineBusinessFormStepChanged",function(o,e){e.step}),s(document).on("dynamoContactFormErrorClear",function(o,e){t.error_clear()}),s(document).on("dynamoContactFormOtherErrorClear",function(o,e){t.error_contactFormOther_clear()}),s(document).on("dynamoBusinessFormErrorClear",function(o,e){t.business_error_clear()}),s(document).on("dynamoBusinessClaimFormErrorClear",function(o,e){t.business_claim_error_clear()}),s(document).on("dynamoBusinessDeleteFormErrorClear",function(o,e){t.business_delete_error_clear()}),s(document).on("dynamoListingInlineBusinessFormErrorClear",function(o,e){t.listing_inline_business_error_clear()}),s(document).on("dynamoListingViewDetailFormErrorShow",function(o,e){void 0!==e&&s.isArray(e)&&t.listing_viewdetail_error_show(e)}),s(document).on("dynamoListingViewDetailFormErrorClear",function(o,e){t.listing_viewdetail_error_clear()})},init:function(){o.bindEvents()}},i={init:function(){document.querySelectorAll(".dropdown-submenu > .dropdown-item.dropdown-toggle").forEach(function(o){o.addEventListener("click",function(o){o.preventDefault(),o.stopPropagation();const e=this.nextElementSibling;this.closest(".dropdown-menu").querySelectorAll(".dropdown-menu.show").forEach(function(o){o!==e&&o.classList.remove("show")}),e.classList.toggle("show")})}),document.querySelectorAll(".dropdown").forEach(function(o){o.addEventListener("hide.bs.dropdown",function(){this.querySelectorAll(".dropdown-menu.show").forEach(function(o){o.classList.remove("show")})})}),document.querySelectorAll(".nav-item.dropdown > a").forEach(function(t){const n=bootstrap.Dropdown.getOrCreateInstance(t,{autoClose:"outside"});t.addEventListener("click",function(o){var e=o.target.closest(".caret-area"),r=t.getAttribute("href");!e&&i.isRealHref(r)||(o.preventDefault(),o.stopPropagation(),n.toggle())})})},isRealHref:function(o){return!!o&&""!==(o=o.trim().toLowerCase())&&"#"!==o&&!o.startsWith("javascript:")}};return{init:(t={error_clear:function(){var o=s("#note");s(o).html("").hide()},error_contactFormOther_clear:function(){var o=s("#note_contactFormOther");s(o).html("").hide()},error_show:function(o){var e;void 0!==o&&(e=s("#note"),o=Mustache.render('<div class="notification_error">{{#errors}}{{.}}<br>{{/errors}}</div>',{errors:o}),s(e).html(o).show(),o=s(".jq_contact_form_scroll_to"),0==s(o).length&&(o=e),t.scroll_to(o))},error_contactFormOther_show:function(o){var e;void 0!==o&&(e=s("#note_contactFormOther"),o=Mustache.render('<div class="notification_error">{{#errors}}{{.}}<br>{{/errors}}</div>',{errors:o}),s(e).html(o).show())},listing_viewdetail_error_show:function(o){var e;void 0!==o&&(e=s(".jq_listing_viewdetail_request_error"),o=Mustache.render('<div class="notification_error">{{#errors}}{{.}}<br>{{/errors}}</div>',{errors:o}),s(e).html(o).show())},listing_viewdetail_error_clear:function(){var o=s(".jq_listing_viewdetail_request_error");s(o).html("").hide()},business_error_clear:function(){var o=s("#bnote");s(o).html("").hide()},business_claim_error_clear:function(){var o=s(".jq_business_form_claim_pop"),o=s("#bnote",s(o));s(o).html("").hide()},business_delete_error_clear:function(){var o=s(".jq_business_form_delete_pop"),o=s("#bnote",s(o));s(o).html("").hide()},listing_inline_business_error_clear:function(){var o=s("#bnote_listing_inline");s(o).html("").hide()},business_error_show:function(o){var e;void 0!==o&&(e=s("#bnote"),o=Mustache.render('<div class="notification_error">{{#errors}}{{.}}<br>{{/errors}}</div>',{errors:o}),s(e).html(o).show(),t.scroll_to(e))},business_claim_error_show:function(o){var e;void 0!==o&&(e=s(".jq_business_form_claim_pop"),e=s("#bnote",s(e)),o=Mustache.render('<div class="notification_error">{{#errors}}{{.}}<br>{{/errors}}</div>',{errors:o}),s(e).html(o).show(),t.scroll_to(e))},business_delete_error_show:function(o){var e;void 0!==o&&(e=s(".jq_business_form_delete_pop"),e=s("#bnote",s(e)),o=Mustache.render('<div class="notification_error">{{#errors}}{{.}}<br>{{/errors}}</div>',{errors:o}),s(e).html(o).show(),t.scroll_to(e))},listing_inline_business_error_show:function(o){var e;void 0!==o&&(e=s("#bnote_listing_inline"),o=Mustache.render('<div class="notification_error">{{#errors}}{{.}}<br>{{/errors}}</div>',{errors:o}),s(e).html(o).show(),t.scroll_to(e))},adjustLogoText:function(){var o,e,r;s(".jq_logo_with_text").length&&(o=s(".logo-text"),e=(r=s(".logo-with-text")).find("img").outerWidth()||0,(r=r.width()-e-16)<(e=o.outerWidth())?(r=Math.max(.1,r/e).toFixed(2),o.css("scale",r)):o.css("scale","1"))},scroll_to:function(o){var e,r=s(".jq_header").first(),t=0;!r.length||"sticky"!==(e=r.css("position"))&&"-webkit-sticky"!==e||(t=-r.outerHeight()),s.scrollTo(s(o),1e3,{offset:t})},logic:{},init:function(){o.init(),e.settings.init()}}).init,scroll_to:t.scroll_to}}(window.jQuery);jQuery(document).ready(ModTheme.init);

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.