PageSourceSearch

https://www.pokerstrategy.com/wp-content/cache/min/1/wp-content/th…/assets/js/main.js?ver=1790757655

js pokerstrategy.com collected 2026-10-01 11:44:54 UTC 11,417 bytes, 36 lines download raw bytes

1const bubbleUserMenuBackDrop=document.getElementById('user-menu-container-backdrop');const userMenuContainer=document.getElementById('user-menu-container');const bubbleUserMenu=document.getElementById('user-menu-bubble');if(bubbleUserMenuBackDrop){bubbleUserMenuBackDrop.addEventListener('show.bs.modal',e=>{userMenuContainer.classList.add('active');bubbleUserMenu.classList.add('active')});bubbleUserMenuBackDrop.addEventListener('hide.bs.modal',e=>{userMenuContainer.classList.remove('active');bubbleUserMenu.classList.remove('active')})}
2function initPopovers(){if(typeof bootstrap==='undefined'){setTimeout(initPopovers,100);return}
3document.querySelectorAll('[data-bs-toggle="popover"]').forEach(el=>{let opts={};if(el.dataset.bsContentId==='authorPopupShare'){opts.content=document.getElementById(el.dataset.bsContentId).innerHTML;opts.html=!0;opts.customClass='author-top-social-share';opts.fallbackPlacements=['bottom']}
4new bootstrap.Popover(el,opts)})}
5initPopovers();jQuery(document).ready(function(){jQuery("div.cst-faq-category").addClass("cst-faq-category-closed");jQuery("div.cst-faq-category > ul > li").addClass("cst-faq-question-closed");jQuery("div.cst-faq-category > label").click(function(e){if(!jQuery(this).parent().hasClass("cst-faq-category-closed"))jQuery(this).parent().addClass("cst-faq-category-closed");else{jQuery(this).parent().removeClass("cst-faq-category-closed");if(typeof dataLayer!=='undefined')dataLayer.push({'event':'globalEvent','eventAction':'FAQCat','eventLabel':$(this).html(),'eventValue':'0'})}});jQuery("div.cst-faq-category > ul > li > label").click(function(e){if(!jQuery(this).parent().hasClass("cst-faq-question-closed"))jQuery(this).parent().addClass("cst-faq-question-closed");else{jQuery(this).parent().removeClass("cst-faq-question-closed");if(typeof dataLayer!=='undefined')dataLayer.push({'event':'globalEvent','eventAction':'FAQQue','eventLabel':$(this).html(),'eventValue':'0'})}})});jQuery(document).ready(function(jQuery){jQuery('.buttonCollapse').on('click',function(){jQuery(this).toggleClass('button-active');jQuery('.collapse-dev').toggleClass('collapse-in')});jQuery('.deposit-button').on('click',function(){jQuery(this).toggleClass('is_active');jQuery('.deposit-option').toggleClass('collapse-in')});jQuery(".openAdvPopup").on("click",function(e){e.preventDefault();jQuery(".advDisPopup").addClass("visible")});jQuery(document).on("click",function(event){if(!jQuery(event.target).closest(".advDisText, .openAdvPopup").length){jQuery(".advDisPopup").removeClass("visible")}});jQuery('.partners-filter').on('click',function(e){e.preventDefault();jQuery(this).toggleClass('is_active');jQuery('.partners-filterOptions').stop(!0,!0).slideToggle(500).toggleClass('collapse-in')});jQuery('.filter-search').on('click',function(e){e.preventDefault();jQuery(this).toggleClass('is_active');jQuery('.formWrapper').stop(!0,!0).slideToggle(500).toggleClass('collapse-in')})})
6jQuery(document).ready(function($){$('[data-partner-intro="showMore"]').on('click',function(e){e.preventDefault();var $this=$(this);$('.partnerReview--intro-more').stop(!0,!0).slideToggle(300);if($this.hasClass('active')){$this.removeClass('active').text($this.attr('data-showmore-show'))}else{$this.addClass('active').text($this.attr('data-showmore-hide'))}});$('[data-dropdown="toggle"]').multiDropdown({after:function(){var dropdownButton=$(this);var list=dropdownButton.next('ul.options');list.find('li a').click(function(){var selectedOption=$(this);var dropdownButtonLabel=dropdownButton.find('.buttonLabel');list.find('.aktiv').removeClass('aktiv');dropdownButtonLabel.text(selectedOption.text());dropdownButtonLabel.trigger('toggle');selectedOption.parent().addClass('aktiv');if(list.is('#device')){dropdownButton.removeClass('is_active');list.stop(!0,!0).slideUp(200)}
7return!0})}})});jQuery(document).ready(function($){const COOKIE_NAME='checkedDevices';function setCookie(name,value,days=30){let expires="";if(days){const date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));expires="; expires="+date.toUTCString()}
8document.cookie=name+"="+encodeURIComponent(value)+expires+"; path=/"}
9function getCookie(name){const nameEQ=name+"=";const ca=document.cookie.split(';');for(let i=0;i<ca.length;i++){let c=ca[i];while(c.charAt(0)===' '){c=c.substring(1,c.length)}
10if(c.indexOf(nameEQ)===0){return decodeURIComponent(c.substring(nameEQ.length,c.length))}}
11return null}
12function removeCookie(name){document.cookie=name+'=; Max-Age=-99999999; path=/'}
13function filterPartners(){let selectedDevices=[];$('[data-partner-filter="devices"]:checked').each(function(){selectedDevices.push($(this).data('device'))});if(selectedDevices.length){setCookie(COOKIE_NAME,JSON.stringify(selectedDevices))}else{removeCookie(COOKIE_NAME)}
14if(!selectedDevices.length){$('.partnerList--listItem').show();return}
15$('.partnerList--listItem').each(function(){const partnerDevices=$(this).data('partner-devices');if(!partnerDevices){$(this).hide();return}
16const devicesArray=partnerDevices.split(',');const matched=selectedDevices.some(device=>devicesArray.includes(device));if(matched){$(this).show()}else{$(this).hide()}})}
17const savedDevices=getCookie(COOKIE_NAME);if(savedDevices){try{const devices=JSON.parse(savedDevices);
17devices.forEach(function(device){$('[data-partner-filter="devices"][data-device="'+device+'"]').prop('checked',!0)})}catch(e){console.log('Invalid cookie data')}}
18$(document).on('change','[data-partner-filter="devices"]',function(){filterPartners()});filterPartners();if($('[data-filter-group="devices"]').length){function applyPartnerFilters(){const selectedDevice=($('.selected-device').data('device')||'').toLowerCase();const selectedDeposits=[];$('[data-filter-group="deposit"] input:checked').each(function(){const deposit=$(this).siblings('label').data('filter-trigger').toLowerCase();selectedDeposits.push(deposit)});$('.partnerOverview-offerList-item').each(function(){const $item=$(this);const itemDevices=($item.data('partner-devices')||'').toString().toLowerCase().split(',').map(v=>v.trim()).filter(Boolean);const itemDeposits=($item.data('partner-deposit')||'').toString().toLowerCase().split(',').map(v=>v.trim()).filter(Boolean);const deviceMatch=!selectedDevice||selectedDevice==='any'||itemDevices.includes(selectedDevice);const depositMatch=!selectedDeposits.length||selectedDeposits.some(d=>itemDeposits.includes(d));if(deviceMatch&&depositMatch){$item.show()}else{$item.hide()}})}
19function getDeviceFromHash(){const match=window.location.hash.match(/devices\/([^\/]+)/i);if(!match){return null}
20return match[1]==='macos'?'mac':match[1]}
21function getDepositsFromHash(){const match=window.location.hash.match(/deposits\/([^\/]+)/i);return match?match[1].split('~'):[]}
22function updateHash(){const device=$('.selected-device').data('device');const deposits=[];$('[data-filter-group="deposit"] input:checked').each(function(){const deposit=$(this).siblings('label').data('filter-trigger');deposits.push(deposit)});let hash='';if(device&&device!='any'){hash+='devices/'+(device==='mac'?'macos':device)+'/'}else{hash+='#/'}
23if(deposits.length){hash+='deposits/'+deposits.join('~')+'/'}
24window.location.hash=hash}
25function setSelectedGame(){const currentPath=window.location.pathname;const $link=$('[data-filter-group="game_type"] a').filter(function(){return new URL(this.href).pathname===currentPath}).first();if($link.length){$('.selected-game').text($.trim($link.text()))}}
26function setSelectedOffer(){const currentPath=window.location.pathname;const $link=$('[data-filter-group="offer_type"] a').filter(function(){return new URL(this.href).pathname===currentPath}).first();if($link.length){$('.selected-offer').text($.trim($link.text()))}}
27setSelectedGame();setSelectedOffer();function setDevice(device,update=!0){const labels={windows:'Windows',ios:'iOS',android:'Android',mac:'Mac',any:pstUserData.all_device_text};$('.selected-device').text(labels[device]||'All Devices').data('device',device);if(update){updateHash()}
28applyPartnerFilters()}
29const hashDevice=getDeviceFromHash();const hashDeposits=getDepositsFromHash();if(hashDevice){setDevice(hashDevice,!1)}else{const platform=(pstUserData.platform||'').toLowerCase();if(['windows','ios','android','mac'].includes(platform)){setDevice(platform,!0)}}
30if(hashDeposits.length){hashDeposits.forEach(function(deposit){$('[data-filter-group="deposit"] label[data-filter-trigger="'+deposit+'"]').prev('input').prop('checked',!0)});$('.deposit-button').addClass('is_active');$('.deposit-option').addClass('collapse-in')}
31applyPartnerFilters();$('[data-filter-group="devices"] a').on('click',function(e){e.preventDefault();setDevice($(this).data('filter-trigger'))});$('[data-filter-group="deposit"] input[type="checkbox"]').on('change',function(){updateHash();applyPartnerFilters()})}
32$('.ps-banner-container:not(.left-skyscraper):not(.right-skyscraper)').each(function(){var container=this;var creative=container.querySelector('.ps-banner-creative');var fitFrame=null;function fitCreative(){fitFrame=null;creative.style.zoom='';if(container.clientWidth>0&&creative.scrollWidth>container.clientWidth){creative.style.zoom=container.clientWidth/creative.scrollWidth}}
33function scheduleFit(){if(fitFrame===null){fitFrame=window.requestAnimationFrame(fitCreative)}}
34var sizes=new ResizeObserver(scheduleFit);sizes.observe(container);sizes.observe(creative);new MutationObserver(scheduleFit).observe(creative,{childList:!0,subtree:!0});fitCreative()});var $skyscrapers=$('.ps-banner-container.left-skyscraper, .ps-banner-container.right-skyscraper');if($skyscrapers.length){var bannerFrame=null;function updateSkyscrapers(){bannerFrame=null;if($skyscrapers.css('display')==='none'){return}
35var content=document.querySelector('.container--main').getBoundingClientRect();var menu=document.getElementById('menu').getBoundingClientRect();var footer=document.getElementById('footer').getBoundingClientRect();var viewportWidth=document.documentElement.clientWidth;var top=Math.max(0,menu.bottom);var height=Math.max(0,Math.min(window.innerHeight,footer.top)-top);$skyscrapers.each(function(){var isLeft=this.classList.contains('left-skyscraper');var space=isLeft?content.left:viewportWidth-content.right;var width=Math.max(0,Math.min(475,space-5));$(this).css({left:isLeft?Math.max(0,content.left-width-5):Math.min(viewportWidth-width,content.right+5),top:top,width:width,height:height,visibility:width>0&&height>0?'visible':'hidden'})})}
36$(window).on('load scroll resize',function(){if(bannerFrame===null){bannerFrame=window.requestAnimationFrame(updateSkyscrapers)}});updateSkyscrapers()}});jQuery(function($){$('#changeLangMobile').on('click',function(e){e.preventDefault();let langs=[];$('.langCheckboxes:checked').each(function(){langs.push($(this).val())});$.ajax({url:pstUserData.ajax_url,type:'POST',dataType:'json',data:{action:'pst_change_stream_language',nonce:pstUserData.nonce,langs:langs},beforeSend:function(){$('#changeLangMobile').prop('disabled',!0)},success:function(response){if(response.success){location.reload()}else{alert('Could not change language')}},error:function(xhr){alert('AJAX request failed')},complete:function(){$('#changeLangMobile').prop('disabled',!1)}})});var currentUrl=window.location.href.replace(/\/$/,'');$('#menu-us-poker-menu a').each(function(){var href=this.href.replace(/\/$/,'');if(href===currentUrl){$(this).parent('li').addClass('current-menu-item')}})})

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.