1jQuery(document).ready(function($){const saved=localStorage.getItem('global_search_redirect_after_login');const ajaxGlobal=(typeof ajax_global==='object'&&ajax_global)?ajax_global:{};function bindMobileStickyFooterAfterInteraction(){const readyClass='cp-mobile-sticky-ready';const mobileQuery=window.matchMedia?window.matchMedia('(max-width: 767px)'):null;const interactionEvents=['pointerdown','pointerup','pointermove','touchstart','touchmove','touchend','mousedown','mouseup','mousemove','click','keydown','keyup','focus','scroll','wheel'];const sideStickyTemplateId='cp-footer-side-sticky-template';const mobileFooterTemplateId='cp-sticky-footer-menu-template';const interactionFallbackDelayMs=8000;let stickyReady=!1;function isMobileViewport(){return mobileQuery?mobileQuery.matches:window.innerWidth<=767} 2function injectTemplate(templateId){const template=document.getElementById(templateId);if(!template||template.getAttribute('data-cp-injected')==='1'){return} 3const fragment=template.content?template.content.cloneNode(!0):document.createRange().createContextualFragment(template.innerHTML);template.parentNode.insertBefore(fragment,template);template.setAttribute('data-cp-injected','1')} 4function maybeInjectMobileStickyFooter(){if(stickyReady&&isMobileViewport()){injectTemplate(mobileFooterTemplateId)}} 5function revealMobileStickyElements(reason){if(stickyReady){return} 6stickyReady=!0;document.documentElement.classList.add(readyClass);document.documentElement.setAttribute('data-cp-sticky-footer-trigger',reason||'manual');injectTemplate(sideStickyTemplateId);maybeInjectMobileStickyFooter()} 7if(typeof window.coinpediaScheduleDeferredStart==='function'){window.coinpediaScheduleDeferredStart(revealMobileStickyElements,{interactionEvents:interactionEvents,listenerTargets:[window,document],fallbackDelayMs:interactionFallbackDelayMs,interactionIdleTimeoutMs:150})}else{window.setTimeout(function(){revealMobileStickyElements('fallback_8s')},interactionFallbackDelayMs)} 8document.addEventListener('click',function(event){const closeButton=event.target.closest('.footer-side-sticky .hide-stickyimage');if(!closeButton){return} 9const stickyAd=closeButton.closest('.footer-side-sticky');if(stickyAd){stickyAd.style.display='none'}});if(mobileQuery){const handleViewportChange=function(){maybeInjectMobileStickyFooter()};if(typeof mobileQuery.addEventListener==='function'){mobileQuery.addEventListener('change',handleViewportChange)}else if(typeof mobileQuery.addListener==='function'){mobileQuery.addListener(handleViewportChange)}}} 10bindMobileStickyFooterAfterInteraction();function hideDismissibleAdBlock(triggerElement){const $trigger=$(triggerElement);if(!$trigger.length){return} 11const $adContainer=$trigger.closest('.banner_ad_hide, .side_banner_ads_block, .homepage_banner_ad, .homepage_sidebanner_ad, .border-dark-grey');if(!$adContainer.length){return} 12$adContainer.hide()} 13$(document).on('click','.close-ad-btn',function(event){event.preventDefault();event.stopPropagation();hideDismissibleAdBlock(this)});function normalizeThemeJsBaseUrl(){if(ajaxGlobal.THEME_ASSET_JS_BASE_URL){return String(ajaxGlobal.THEME_ASSET_JS_BASE_URL).replace(/\/+$/,'')} 14const siteBaseUrl=(ajaxGlobal.HOME_BASE_URL||window.location.origin).replace(/\/+$/,'');return siteBaseUrl+'/wp-content/themes/jannah-child/assets/js'} 15function getThemeAssetVersion(fileName){if(!ajaxGlobal.THEME_ASSET_JS_VER||typeof ajaxGlobal.THEME_ASSET_JS_VER!=='object'){return''} 16const version=ajaxGlobal.THEME_ASSET_JS_VER[fileName];return version?String(version):''} 17function buildThemeJsUrl(fileName){const baseUrl=normalizeThemeJsBaseUrl();const version=getThemeAssetVersion(fileName);const url=baseUrl+'/'+fileName;return version?(url+'?ver='+encodeURIComponent(version)):url} 18if(!saved){$(document).on('focusin pointerdown','#searchform',function(){loadScriptOnce(buildThemeJsUrl('global-search.js'),'global-search-js').catch(function(){console.warn('Failed to load global search script')})})}else{let parsedData;try{parsedData=JSON.parse(saved)}catch(error){console.error('Error parsing saved search data:',error);localStorage.removeItem('global_search_redirect_after_login');return} 19const{searchType,searchkeyword,followId,companyId}=parsedData;jQuery('.search-global-btn').trigger('click');setTimeout(()=>{loadScriptOnce(buildThemeJsUrl('global-search.js'),'global-search-js',function(){if(typeof clickGlobalsearchInput==='function'){clickGlobalsearchInput();mobileGobalSearchTab();if(window.innerWidth<=1023){if(typeof openModalSearch==='function'){openModalSearch()}} 20if(searchType){fetchTheAPIResult(searchType,searchkeyword)}else{fetchResources()} 21if(searchType){jQuery('#posts').removeClass('active').hide();jQuery('#posts-mb').removeClass('active').hide();jQuery(`.tab-item[data-type="${searchType}"]`).addClass('active').siblings().removeClass('active');if(searchType==3){jQuery('#professionals').addClass('active').show();jQuery('#professionals-mb').addClass('active').show()}else if(searchType==2){jQuery('#companies').addClass('active').show();jQuery('#companies-mb').addClass('active').show()}} 22if(searchkeyword){const keywordInput=document.querySelector('.search-clear');if(keywordInput){keywordInput.value=searchkeyword;keywordInput.focus()}} 23if(followId){const followEl=document.querySelector(`[data-follow-id="${followId}"]`);if(followEl)followEl.scrollIntoView({behavior:'smooth'});triggerFollowForUser(followId)} 24if(companyId){const followEl=document.querySelector(`[data-company-id="${c
24ompanyId}"]`);if(followEl)followEl.scrollIntoView({behavior:'smooth'});triggerFollowForCompany(companyId)} 25localStorage.removeItem('global_search_redirect_after_login')}else{console.warn('Global search functions not yet loaded.')}})},300);function triggerFollowForUser(userId){const button=document.querySelector(`.follow-user-btn[data-professional-id="${userId}"]`);if(button){button.click()}} 26function triggerFollowForCompany(companyId){const button=document.querySelector(`.follow-company-btn[data-company-id="${companyId}"]`);if(button){button.click()}}} 27function loadLikeDislikeScript(callback){loadScriptOnce(buildThemeJsUrl('like-dislike-block.js'),'like-dislike-script-js',callback)} 28function disableFeedbackModalDataToggle(scope){const $scope=scope?$(scope):$(document);$scope.find('.writing_no[data-toggle="modal"], .writing_no[data-bs-toggle="modal"]').each(function(){$(this).removeAttr('data-toggle data-target data-bs-toggle data-bs-target')})} 29disableFeedbackModalDataToggle(document);$(document).on('click','.writing_yes',function(){const triggerElement=this;loadLikeDislikeScript(function(){if(typeof likeFunction==='function'){likeFunction(1,triggerElement)}})});$(document).on('click','.writing_no',function(event){const triggerElement=this;event.preventDefault();event.stopPropagation();event.stopImmediatePropagation();disableFeedbackModalDataToggle(document);loadLikeDislikeScript(function(){if(typeof window.openDislikeModalWithPrecheck==='function'){window.openDislikeModalWithPrecheck(triggerElement);return} 30$('#myModal').modal('show')})});function getCurrencyLoaderMarkup(){const fallback='<div class="loader-overlay" aria-hidden="true"><div class="spinner"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div></div>';if(!window.tie||typeof window.tie.ajax_loader!=='string'){return fallback} 31if(window.tie.ajax_loader.indexOf('class="spinner"')===-1){return fallback} 32return window.tie.ajax_loader} 33function setCurrencyTriggerLoadingFallback(isLoading,triggerElement){const $target=triggerElement?$(triggerElement).closest('.select-currency, .select-currency-mobile'):$('.select-currency, .select-currency-mobile');if(!$target.length){return} 34if(isLoading){$target.addClass('btn-loader-host currency-trigger-loading').attr('aria-busy','true');if(!$target.children('.loader-overlay').length){$target.append(getCurrencyLoaderMarkup())} 35return} 36$target.removeClass('btn-loader-host currency-trigger-loading').removeAttr('aria-busy');$target.children('.loader-overlay').remove()} 37function setCurrencyTriggerLoading(isLoading,triggerElement){if(typeof window.coinpediaSetCurrencyTriggerLoading==='function'){window.coinpediaSetCurrencyTriggerLoading(isLoading,triggerElement);return} 38setCurrencyTriggerLoadingFallback(isLoading,triggerElement)} 39const currencyWarmupInteractionEvents=['pointerdown','keydown','touchstart','focus'];let hasCurrencyWarmupStarted=!1;function warmCurrencySelectorAssets(){if(hasCurrencyWarmupStarted){return} 40if(!document.querySelector('.select-currency, .select-currency-mobile')){return} 41hasCurrencyWarmupStarted=!0;loadScriptOnce(buildThemeJsUrl('country-currency-select.js'),'country-currency-select-js',function(){if(typeof window.coinpediaWarmCurrencyListCache==='function'){window.coinpediaWarmCurrencyListCache()}}).catch(function(){})} 42function bindCurrencyWarmup(){if(!document.querySelector('.select-currency, .select-currency-mobile')){return} 43if(typeof window.coinpediaScheduleDeferredStart==='function'){window.coinpediaScheduleDeferredStart(warmCurrencySelectorAssets,{interactionEvents:currencyWarmupInteractionEvents,listenerTargets:[window,document]});return} 44window.setTimeout(function(){warmCurrencySelectorAssets()},8000)} 45bindCurrencyWarmup();$(document).on('click','.select-currency, .select-currency-mobile',function(){const triggerElement=this;if($(triggerElement).hasClass('currency-trigger-loading')){return} 46loadScriptOnce(buildThemeJsUrl('country-currency-select.js'),'country-currency-select-js',function(){if(typeof country_currency_Select==='function'){country_currency_Select(triggerElement)}else{setCurrencyTriggerLoading(!1,triggerElement);console.warn('country_currency_Select not ready')}}).catch(function(){setCurrencyTriggerLoading(!1,triggerElement);console.warn('Failed to load country currency selector script')})});$('.search-modal-mb').click(function(){loadScriptOnce(buildThemeJsUrl('global-search.js'),'global-search-js').then(function(){$('#global-search-modal').fadeIn().addClass('show').removeClass('hide').modal('show');$('.site.tie-container').removeClass('side-aside-open');
46$('.search-clear-mb').val('');$('.clear-btn').hide();$('.viewAllPosts_mb, .viewAllLink_mb, .view_professional_mb, .view_company_mb, .view_cryptocurrency_mb, .view_exchange_mb').hide();document.querySelectorAll('.suggestions-box .tab-menu').forEach(function(tabMenu){tabMenu.classList.add('cp-drag-scroll-inline')})}).catch(function(){console.warn('Failed to load global search script')})})})
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.