modify landing page

This commit is contained in:
Bkk1234 committed 2026-11-16 01:39:59 +07:00
commit dd232b1c02
2599 files changed
+226992

No files matched your search

@@ -0,0 +1,3 @@
/*! 20231212-21-RELEASE */
(()=>{const e="tbl-exm-history",t=80,i=10,o=2147483647,s="b4fa4ea0877d7ba760a995ab7c3bb98a";class r{constructor(e,t){TRC.util.addSupportForGoogleFonts(),this.trcManager=e,this.mixpanelEnabled=this.shouldEnableMixPanel(),this.mixpanelEnabled&&TRC.Mixpanel.loadMixpanelScript(s),this.sendEvent("AVAILABLE"),this.enableIosWebviewFix=TRC.util.isTrue(e.global["enable-ios-back-fix"]),this.timeToStopWaitingForLoad=+e.global["tbl-stop-waiting-loading"]||60,this.useSafariIOSOverride=this.isSafariIOSOverride(),this.stopWaitingForLoad=!1,this.feedIsVisible=!1,this.referrer=this.trcManager.getReferrer(),this.isGoogleTraffic=this.wasReferredFromGoogle(),this.url=window.location.href,this.enableExploreMoreNewDisplay=TRC.util.isTrue(e.global["enable-explore-more-new-display"]),this.enableIgnoreHistory=TRC.util.isTrue(e.global["enable-explore-more-ignore-history"]),this.otherModulesHaveBeenLoaded=TRC.FooterOverlay||TRC.FeedView||TRC.TaboolaVignette,this.isDesktop=!TRC.Device.isTouchDevice,TRC.ExploreMorePlacement=t.exm.placement,this.listenToModulesLoad(),this.setOptions(t),this.setCSS(),TRC.dispatch("ExploreMoreReady",this),this.googleTrafficActivationFeatureEnabled&&this.isGoogleTraffic?this.googleTrafficInitWrapper():this.iosWebviewHashAndGesture(),TRC.MetricsManager.sendMetricsEvent(TRC,e,{name:"ExploreMore",value:"1",type:"counter"},null),this.sendEventsForSpaExperiment("available")}shouldEnableMixPanel(){const{MIXPANEL_PERCENT:e}=r.GLOBAL_ATTRIBUTES,{isPercentEnabled:t}=TRC.util,{global:i}=this.trcManager;return t(i,e)}sendMixPanelEvent(e,t={}){this.mixpanelEnabled&&TRC.Mixpanel.isMixPanelLoaded()&&TRC.Mixpanel.sendMixpanelEvent(e,t)}sendEvent(e,t={}){const i=t.target?`${e} - ${t.target}`:e,o=TRC.util.merge({},t);delete o.target,this.sendMixPanelEvent(i,o);const{isPercentEnabled:s}=TRC.util,{SUPPLY_FEATURE_PERCENT:n}=r.GLOBAL_ATTRIBUTES,{global:a}=this.trcManager;if(s(a,n)){const{msg:i=""}=t,o=TRC.util.merge({},t);delete o.msg;const s=Object.keys(o).map(e=>`${e}: ${o[e]}`).join(", ");TRC.util.sendSupplyFeature(r.SUPPLY_FEATURE_TYPE,e,i,s)}}sendEventsForSpaExperiment(e){this.trcManager.sendAbTestEvent("explore-more",`explore-more-${e}`),TRC.ModuleLoader.load("spa-detector",TRC.SpaDetector,function(){const t=TRC.SpaDetector.detectSpa().isSpa;t&&this.trcManager.sendAbTestEvent("explore-more",`explore-more-${e}-spa`)}.trcBind(this))}iosWebviewHashAndGesture(){if(this.enableIosWebviewFix){if(this.navigation=r.initNavigator(),this.hashNeeded=r.isHashNeeded(),r.isGestureNeeded()||this.useSafariIOSOverride)return this.inspectGesture();if(this.hashNeeded)return this.waitForLoadToEnd()}this.init()}static initNavigator(){if(window.performance&&window.performance.getEntriesByType){const e=performance.getEntriesByType("navigation");if(e&&e.length>0)return e[0]}if(window.performance&&window.performance.timing)return window.performance.timing}waitForLoadToEnd(e=!0){let t;if(e&&(t=TRC.Timeout.set(()=>this.stopWaitingForLoad=!0,1e3*this.timeToStopWaitingForLoad)),this.stopWaitingForLoad)return this.init();0===this.navigation.loadEventEnd?TRC.Timeout.set(()=>this.waitForLoadToEnd(!1)):(TRC.Timeout.clear(t),this.init())}inspectGesture(){const e=()=>{this.waitForLoadToEnd(),TRC.dom.off(window,"touchend",e),TRC.dom.off(window,"mousedown",e)};TRC.dom.on(window,"touchend",e),TRC.dom.on(window,"mousedown",e)}static isHashNeeded(){const e=navigator.userAgent.toLowerCase();return e.indexOf("apple")>-1&&e.indexOf("iphone")>-1&&e.indexOf("webkit")>-1&&(navigator.userAgent.indexOf("FBAN")>-1||navigator.userAgent.indexOf("FBAV")>-1)&&-1===e.indexOf("safari")&&-1===e.indexOf("firefox")&&-1===e.indexOf("chrome")&&!location.hash}static isGestureNeeded(){const e=navigator.userAgent.toLowerCase();return 1===history.length&&e.indexOf("apple")>-1&&e.indexOf("macintosh")>-1&&e.indexOf("webkit")>-1&&e.indexOf("chrome")>-1}setOptions(t){const{exm:i,drp:o}=t;let s=null;const{global:n}=this.trcManager;this.titleText=r.getTranslatedTextBySiteLanguage(i.title,"TITLE_TEXT"),this.css=i.css||"",this.headerSelector=i.headerSelector||"header",this.enableHideHeaderFeature=TRC.util.isEnabledByDefault(n["explore-more-enable-hide-all-but-header"])&&!this.isDesktop,this.enablePositionCorrection=TRC.util.isEnabledByDefault(n["explore-more-enable-position-correction"])&&!this.isDesktop,this.enableMissingPubHeaderEvent=TRC.util.isTrue(n["explore-more-enable-missing-header-event"]),this.publisherHeaderHeight=0,this.zIndexChanged=!1,this.hideAllButHeader=!1,this.styleToHideAllButHeader="",this.siteHeader=this.enforceMaxHeight(this.headerSelector),this.enableHideHeaderFeature&&this.siteHeader&&(this.styleToHideAllButHeader=this.createStyleToHideAllButHeader(),this.hideAllButHeader=!!this.styleToHideAllButHeader),this.shouldNotCopyPublisherHeaderHtml=i.shouldNotCopyPublisherHeaderHtml||!1,this.feedContainer=i.container?document.getElementById(i.container):null,this.feedContainerWidth=`${i.feedContainerWidth||"85"}%`,this.historyLengthOnInit=0,this.currentHistoryLength=0,o&&o["eLine truncated