PageSourceSearch

https://cdn.3dbrute.com/public-assets/js/e769188ae21db52328ef6c.js

js 3dbrute.com collected 2026-10-06 19:44:49 UTC 4,146 bytes, 11 lines download raw bytes

1(function($){window.loadSinglePostById=function(postId,newUrl=null,shouldPushState=!0,tag=null){window.__startLoadTime=performance.now();const $container=$(".main-content-wrapper");SPA_LAYOUT.showSinglePost();$("#filter-search").val("");$("#clearSearchButton").hide();$("body").addClass("body-single-mode");$.ajax({url:loadSinglePostById_object.ajax_url,method:"POST",data:{action:"load_product_management",post_id:postId,tag:tag,},beforeSend:function(){window.startHeaderProgressBar();if(typeof getProductPlaceholderHTML==="function"){$container.show().html(getProductPlaceholderHTML())}},success:function(res){if(res.success&&res.data.html){if(loadSinglePostById_object.is_user_logged_in){$.post(loadSinglePostById_object.ajax_url,{action:"update_recent_view",post_id:postId,}).done(function(res){}).fail(function(err){console.error("❌ update_recent_view lỗi:",err)})}else{}
2window.__currentPostId__=postId;window.isViewingSinglePost=!0;window.currentPageTemplate=res.data.template||"default";if(typeof trackEventLocal==="function"){const loadTime=Math.round(performance.now()-window.__startLoadTime);trackEventLocal("view_item",{post_id:postId,load_time:loadTime})}else{console.warn("⚠️ trackEventLocal NOT FOUND — không thể gửi event view_item")}
3$container.hide().html(res.data.html).fadeIn(100);if(res.data.dominant_color&&res.data.dominant_color.rgb){const $slider=$container.find(".slider-container").first();if($slider.length){$slider[0].style.setProperty("--glow-rgb",res.data.dominant_color.rgb)}}
4if(res.data.show_ads){setTimeout(()=>{window.resetAndReloadAutoAds?.(".ads-wrapper-product")},300)}
5setTimeout(()=>{if(typeof bindAuthorLinkClick==="function")bindAuthorLinkClick();if(typeof bindBreadcrumbClick==="function")bindBreadcrumbClick();if(typeof initTagLinkAjax==="function")initTagLinkAjax();if(typeof initCategoryLinkAjax==="function")initCategoryLinkAjax();if(typeof initAjaxLoadRelatedPost==="function")initAjaxLoadRelatedPost();if(typeof window.bindScrollToComment==="function")window.bindScrollToComment();if(typeof initAllSingleProduct==="function")initAllSingleProduct();if(typeof initLightboxModel==="function")initLightboxModel();if(typeof initShareButton==="function"){initShareButton($container)}
6if(typeof bindSearchEnter==="function"){bindSearchEnter($container)}
7if(typeof initLikeModal==="function")initLikeModal();if(typeof processLazyIcons==="function")processLazyIcons();if(typeof ProductComments==="function")ProductComments();window.finishHeaderProgressBar()},200);if(res.data.seo){if(res.data.seo.title)document.title=res.data.seo.title;window.updateOrCreateMeta("description",res.data.seo.description);window.updateOrCreateMeta("keywords",res.data.seo.keywords)}
8if(res.data.inline){try{$.globalEval(res.data.inline)}catch(e){console.error("❌ Inline script error:",e)}}
9if(res.data.scripts){window.loadScriptAndStyle(res.data.scripts,function(){if(typeof initLightboxModel!=="function"){window.initLightboxModel=function(){const lightbox=GLightbox({selector:"a[model-lightbox]",touchNavigation:!0,loop:!1,slideEffect:"fade",openEffect:"zoom",closeEffect:"zoom",keyboardNavigation:!0,zoomable:!1,swipeClose:!1,});let isScrolling=!1;document.addEventListener("wheel",function(event){if(document.body.classList.contains("glightbox-open")){event.preventDefault();if(!isScrolling){isScrolling=!0;if(event.deltaY>0)lightbox.nextSlide();else if(event.deltaY<0)lightbox.prevSlide();setTimeout(()=>(isScrolling=!1),500)}}},{passive:!1},)}}
10if(typeof initLightboxModel==="function")initLightboxModel();if(typeof initRelatedPost==="function")initRelatedPost();})}
11if(shouldPushState){const finalUrl=newUrl||window.location.pathname;const pageTemplate=window.currentPageTemplate||"default";const newState={postId:postId,postUrl:finalUrl,pageTemplate:pageTemplate,};history.pushState(newState,"",finalUrl);window.sendGTMPageview()}}else{$container.html("<p>⚠️ Error loading content.</p>")}},error:function(xhr,status,error){$container.html("<p>⚠️ AJAX failed.</p>");console.error("❌ AJAX lỗi:",error)},})};window.addEventListener("pageshow",function(e){if(e.persisted){}else{}})})(jQuery)

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.