PageSourceSearch

https://www.toontrack.com/app/plugins/tt-seo/resources/assets/js/script-front.min.js?ver=v26.37.13

js toontrack.com collected 2026-10-01 11:25:02 UTC 2,290 bytes, 1 lines download raw bytes

1function generateUniqueId(e){return e+Math.random().toString(36).slice(2,11)+Date.now().toString(36)}function setCookie(e,t,a){let n="";if(a){const e=new Date;e.setTime(e.getTime()+24*a*60*60*1e3),n="; expires="+e.toUTCString()}document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t||"")+n+"; path=/; secure; samesite=Lax"}function doesUniqueCartIdExist(){return window.dataLayer=window.dataLayer||[],window.dataLayer.some(e=>e.hasOwnProperty("unique_cart_id"))}document.addEventListener("click",(function(e){const t=e.target.closest(".single_add_to_cart_button, .tt_ajax_add_to_cart");if(t&&!t.classList.contains("disabled")&&"true"!==t.getAttribute("aria-disabled")&&!t.disabled&&!doesUniqueCartIdExist()){const e=generateUniqueId("cart_");setCookie("tt_unique_cart_id",e,30),window.dataLayer.push({unique_cart_id:e})}})),jQuery(document).ready((function(e){e("#navbar-s").on("keypress",(function(t){if(13==(t.keyCode||t.which)){var a,n=e("#navbar-search-results li.selected");if(n.length>0)a=n.eq(0).find("a").attr("href");else a="/?s="+e("#navbar-s").val();return window.location.href=a,!1}})),e(document).on("click","#navbar-search-results-container .more-results, #navbar-search-results-container .more-results a",(function(t){t.preventDefault();var a="/?s="+e("#navbar-s").val();return window.location.href=a,!1})),e(document).on("click","#search-results-container .category-search",(function(t){t.preventDefault();var a=e("form.toontrack-search #search").val(),n=e(this).data("category"),r="/?s="+a;return n&&(r="/?c="+n+"&s="+a),window.location.href=r,!1})),e("#navbar-s").on("keydown",(function(t){var a,n=e("#navbar-search-results li"),r=t.keyCode,s=n.filter(".selected");40!=r&&38!=r||(n.removeClass("selected"),40==r?(a=!s.length||s.is(":last-child")?n.eq(0):s.next(),console.log(a)):38==r&&(a=!s.length||s.is(":first-child")?n.last():s.prev()),a.addClass("selected"))})),e(document).on("focusin","#navbar-search-results li a",(function(){e("#navbar-search-results li").removeClass("selected"),e(this).closest("li").addClass("selected")})),e("#mobile-search-button").on("click",(function(){var t=e("#mobile-search-form").is(":visible");e(".cart-claim-menu").slideUp(),t?e("#mobile-search-form").removeClass("d-block"):e("#mobile-search-form").addClass("d-block")}))}));

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.