PageSourceSearch

https://torquemetals.com/wp-content/themes/torque-metals/theme/js/script.min.js?ver=0.1.0

js torquemetals.com collected 2026-10-09 21:50:37 UTC 4,139 bytes, 1 lines download raw bytes

1(()=>{document.addEventListener("DOMContentLoaded",function(){let e=document.querySelectorAll("[data-scroll]");function t(){e.forEach(o=>{o.getBoundingClientRect().top<window.innerHeight?o.setAttribute("data-scroll","in"):o.removeAttribute("data-scroll")})}window.addEventListener("scroll",t),t()});document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".mobile-menu .menu-item-has-children");e.forEach(function(t){var o=document.createElement("button");o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#111718"><path d="M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"/></svg>',o.classList.add("toggle-menu-button"),t.appendChild(o)}),document.querySelectorAll(".toggle-menu-button").forEach(function(t){t.addEventListener("click",function(o){o.preventDefault(),o.stopPropagation(),document.querySelectorAll(".toggle-menu-button").forEach(function(r){r!==t&&r.classList.remove("active")}),t.classList.toggle("active");var a=this.parentElement,n=a.querySelector("a");n.classList.contains("is-open")?n.classList.remove("is-open"):(document.querySelectorAll(".menu-item a").forEach(function(r){r.classList.remove("is-open")}),n.classList.add("is-open"));var l=n.nextElementSibling;if(l.classList.contains("show"))l.classList.remove("show"),l.style.height="0px";else{var c=a.parentElement;c.querySelectorAll("li .sub-menu").forEach(function(r){r.classList.remove("show"),r.style.height="0px"}),l.classList.toggle("show"),l.style.height="auto"}})})});$(document).ready(function(){$(".image-gallery-carousel").slick({infinite:!0,slidesToShow:1,slidesToScroll:1,dots:!1,autoplay:!1,variableWidth:!1,arrows:!0,centerMode:!0,prevArrow:$(".slick-gallery-prev"),nextArrow:$(".slick-gallery-next"),responsive:[{breakpoint:1400,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:782,settings:{slidesToShow:1,slidesToScroll:1}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1}}]})});var i=!1;window.onscroll=function(){d()};function d(){if(document.documentElement.scrollTop>100&&!i){let e=document.querySelector(".top-header-menu");e.setAttribute("isShrunk","on"),e.classList.add("smaller"),i=!0}else if(document.documentElement.scrollTop<=50&&i){let e=document.querySelector(".top-header-menu");e.removeAttribute("isShrunk"),e.classList.remove("smaller"),i=!1}}$(document).ready(function(){let e="";$("#team-member-wrapper button").click(function(){var t=$(this);e=t.val(),$("#"+e).removeClass("hidden"),$("#"+e).addClass("flex")}),$(".close-card").click(function(){console.log("wrapper clicked"),console.log(e),$("#"+e).addClass("hidden"),$("#"+e).removeClass("flex"),$("#"+e).css("display","hidden")})});$(document).ready(function(){$("#input_5_5 option:first").attr("hidden",!0),$("#input_5_5").on("change",function(){var e=$
1(this).val();$(this).css("color",e===""?"rgb(19 35 61 / 0.5)":"#000")}).trigger("change")});var s=6;$(document).ready(function(){$("#post-date-filter").change(function(){var e=$("#postFilter");return $.ajax({url:e.attr("action"),data:e.serialize()+"&perPage="+s,type:e.attr("method"),success:function(t){jQuery(".filtered-post-wrapper").html(t),s>$("#filtered-post-wrapper").children("div").length?$("#loadMorePosts").prop("disabled",!0):$("#loadMorePosts").prop("disabled",!1)}}),!1}),$("#loadMorePosts").click(function(){var e=$("#postFilter");return s=s+6,$.ajax({url:e.attr("action"),data:e.serialize()+"&perPage="+s,type:e.attr("method"),success:function(t){jQuery(".filtered-post-wrapper").html(t),s>$("#filtered-post-wrapper").children("div").length&&$("#loadMorePosts").prop("disabled",!0)}}),!1}),$("#filtered-post-wrapper").children("div").length<6?$("#loadMorePosts").addClass("hidden"):$("#loadMorePosts").removeClass("hidden"),$("#post-type-filter").change(function(){var e=$("#postFilter");return $.ajax({url:e.attr("action"),data:e.serialize()+"&perPage="+s,type:e.attr("method"),success:function(t){jQuery(".filtered-post-wrapper").html(t),s>$("#filtered-post-wrapper").children("div").length?$("#loadMorePosts").prop("disabled",!0):$("#loadMorePosts").prop("disabled",!1)}}),!1})});})();

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.