').insertBefore("#player_jwpsrv"); } } function pauseadshide() { if(pauseads==1) { $(".pauseads").remove(); player.play(); } } function skip() { var x=document.getElementById('ads_button').style; x.display='block'; } setTimeout(document.getElementById('ads_button').style.display='block',5000); } } }) },500); } $('#loader-wrapper').show(); getPhiPlayer(hash,'puhutv'); $("#js-dropdown").click(function(){ $(this).toggleClass('is-open'); }); $("#dw-dropdown").click(function(){ $(this).toggleClass('is-open'); }); var acceptablehosts = ['rapidvideo','fembed','vcdn']; function checkiz(list, uri) { var result = false; if(list.length == 0) return result; for(var i=0;i 0) { result = true; break; } } return result; } $("#js-dropdown li").click(function(e) { e.preventDefault(); var $item = $(this); var $dropdown = $item.parents('.js-dropdown'); var alt = $item.data('dropdown-value'); $dropdown.find('.js-dropdown__current').text($item.text()); getPhiPlayer(hash,alt); }); $("#dropdown-item").click(function(e) { var $target = $(e.target); if (!$target.parents().hasClass('js-dropdown')) { $('.js-dropdown').removeClass('is-open'); } });