var matcher = []; var matcher_last=1; $(document).ready(function(){ $('body').on('click','.pd1f612534a03e5d292c8a4b9bf9929cc6opentext',function(){ var h = $('.pd1f612534a03e5d292c8a4b9bf9929cc6bottom_textdis').css('height', 'auto').height(); $(this).removeClass('pd1f612534a03e5d292c8a4b9bf9929cc6opentext'); $(this).addClass('pd1f612534a03e5d292c8a4b9bf9929cc6closetext'); $('.pd1f612534a03e5d292c8a4b9bf9929cc6bottom_textdis').animate({ height : h+'px' },1000); }) $('body').on('click','.pd1f612534a03e5d292c8a4b9bf9929cc6closetext',function(){ $(this).removeClass('pd1f612534a03e5d292c8a4b9bf9929cc6closetext'); $(this).addClass('pd1f612534a03e5d292c8a4b9bf9929cc6opentext'); $('.pd1f612534a03e5d292c8a4b9bf9929cc6bottom_textdis').animate({ height : '100px' },300); }); $('.menuopen').click(function(event){ preventdefault(); $('.menumobile').animate({"right":"0px"}, "slow"); $('.menu-overlay').fadeIn(); }); /*$('.pd1f612534a03e5d292c8a4b9bf9929cc6active_lang').click(function(){ $(".pd1f612534a03e5d292c8a4b9bf9929cc6languages ul").slideToggle(); });*/ $('.pd1f612534a03e5d292c8a4b9bf9929cc6matcher_content').css('opacity','0'); $('pd1f612534a03e5d292c8a4b9bf9929cc6mb_button,pd1f612534a03e5d292c8a4b9bf9929cc6mb_button_opened').click(function(){ if($("pd1f612534a03e5d292c8a4b9bf9929cc6menu").is(":visible") ){ $("pd1f612534a03e5d292c8a4b9bf9929cc6menu").slideUp(); $('.pd1f612534a03e5d292c8a4b9bf9929cc6menu-overlay').fadeOut(); $('pd1f612534a03e5d292c8a4b9bf9929cc6mb_button').css('display','block'); $('pd1f612534a03e5d292c8a4b9bf9929cc6mb_button_opened').css('display','none'); }else{ $("pd1f612534a03e5d292c8a4b9bf9929cc6menu").slideDown(); $('.pd1f612534a03e5d292c8a4b9bf9929cc6menu-overlay').fadeIn(); $('pd1f612534a03e5d292c8a4b9bf9929cc6mb_button').css('display','none'); $('pd1f612534a03e5d292c8a4b9bf9929cc6mb_button_opened').css('display','block'); } }); $('.pd1f612534a03e5d292c8a4b9bf9929cc6menu-overlay').click(function(){ $("pd1f612534a03e5d292c8a4b9bf9929cc6menu").slideUp(); $('.pd1f612534a03e5d292c8a4b9bf9929cc6menu-overlay').fadeOut(); $('pd1f612534a03e5d292c8a4b9bf9929cc6mb_button').css('display','block'); $('pd1f612534a03e5d292c8a4b9bf9929cc6mb_button_opened').css('display','none'); }); $('#pd1f612534a03e5d292c8a4b9bf9929cc6menu_icon').click(function(){ $(".pd1f612534a03e5d292c8a4b9bf9929cc6menu_popup").css("display","block"); $('.pd1f612534a03e5d292c8a4b9bf9929cc6popup_overlay').css('display','block'); }); $('.pd1f612534a03e5d292c8a4b9bf9929cc6filter_icon').click(function(){ $(".pd1f612534a03e5d292c8a4b9bf9929cc6filters_popup").css("display","block"); $('.pd1f612534a03e5d292c8a4b9bf9929cc6popup_overlay').css('display','block'); }); $('#pd1f612534a03e5d292c8a4b9bf9929cc6close_popup, #pd1f612534a03e5d292c8a4b9bf9929cc6accept').click(function(){ $(".pd1f612534a03e5d292c8a4b9bf9929cc6popup_").css("display","none"); $('.pd1f612534a03e5d292c8a4b9bf9929cc6popup_overlay').css('display','none'); }); $('.pd1f612534a03e5d292c8a4b9bf9929cc6rate_stars img').hover(function(){ var star = $(this).attr('id').split('_'); $(this).closest('.pd1f612534a03e5d292c8a4b9bf9929cc6rate_stars').find('.pd1f612534a03e5d292c8a4b9bf9929cc6star').attr('src','https://comparebestpokies.com?p=image&image=png'); for (var m = 1; m <= star[3]; m++) { $( '#pd1f612534a03e5d292c8a4b9bf9929cc6star_'+star[1]+'_'+star[2]+'_'+m ).attr('src','https://comparebestpokies.com?p=image&image=png'); } },function(){ $('.pd1f612534a03e5d292c8a4b9bf9929cc6active_star').attr('src','https://comparebestpokies.com?p=image&image=png'); $('.pd1f612534a03e5d292c8a4b9bf9929cc6passive_star').attr('src','https://comparebestpokies.com?p=image&image=png'); $('.pd1f612534a03e5d292c8a4b9bf9929cc6rate_stars>div').remove(); }); $('.pd1f612534a03e5d292c8a4b9bf9929cc6rate_stars img').click(function(){ if( $(this).parents('.pd1f612534a03e5d292c8a4b9bf9929cc6rate_stars').attr('data-click') == 'clicked'){ $(this).parents('.pd1f612534a03e5d292c8a4b9bf9929cc6rate_stars').append('

'+$translate['error_rating']+'
'); }else{ //alert($(this).parents('.rate_stars').attr('data-click') ) var star = $(this).attr('id').split('_'); $(this).closest('.pd1f612534a03e5d292c8a4b9bf9929cc6rate_stars').find('.pd1f612534a03e5d292c8a4b9bf9929cc6star').addClass('pd1f612534a03e5d292c8a4b9bf9929cc6passive_star'); for (var m = 1; m <= star[3]; m++) { $( '#pd1f612534a03e5d292c8a4b9bf9929cc6star_'+star[1]+'_'+star[2]+'_'+m ).removeClass('pd1f612534a03e5d292c8a4b9bf9929cc6passive_star'); $( '#pd1f612534a03e5d292c8a4b9bf9929cc6star_'+star[1]+'_'+star[2]+'_'+m ).addClass('pd1f612534a03e5d292c8a4b9bf9929cc6active_star'); } $(this).parents('.pd1f612534a03e5d292c8a4b9bf9929cc6rate_stars').append('
'+$translate['success_rating']+'
'); $(this).parents('.pd1f612534a03e5d292c8a4b9bf9929cc6rate_stars').attr('data-click','clicked'); } }); var bonus_count = 3; var k=1;var m1;var m2; $(".pd1f612534a03e5d292c8a4b9bf9929cc6TableHeader .pd1f612534a03e5d292c8a4b9bf9929cc6divTableCell pd1f612534a03e5d292c8a4b9bf9929cc6sort_icon").each(function(){ $(this).click(function(){ var cl=$(this).parent().attr("id"); $('.pd1f612534a03e5d292c8a4b9bf9929cc6rowbody').each(function() { if($(this).attr('id') == 'pd1f612534a03e5d292c8a4b9bf9929cc6emptyrow'){ $(this).remove(); } }); if( bonus_count % 2 == 1 ){ cl = 'pd1f612534a03e5d292c8a4b9bf9929cc6bonu_scell'; }else{cl = 'pd1f612534a03e5d292c8a4b9bf9929cc6scorecell'; } $(".pd1f612534a03e5d292c8a4b9bf9929cc6trow").detach().sort(function(a,b){ var n1 = parseInt($(a).find('.'+cl).attr('data-'+cl)); var n2 = parseInt($(b).find('.'+cl).attr('data-'+cl)); if(n1!=''){if(cl == 'pd1f612534a03e5d292c8a4b9bf9929cc6scorecell' ){return n2 > n1 ? 1 : -1;}else{return n1 > n2 ? 1 : -1;} } }).appendTo( $(".pd1f612534a03e5d292c8a4b9bf9929cc6TableHeader").parent() ).ready(function () { l=1; $(".pd1f612534a03e5d292c8a4b9bf9929cc6trow:visible").each(function(){ $(this).find('.pd1f612534a03e5d292c8a4b9bf9929cc6numberofcasino').removeClass('pd1f612534a03e5d292c8a4b9bf9929cc6first_casino').addClass('pd1f612534a03e5d292c8a4b9bf9929cc6other_casino'); $(this).find('.pd1f612534a03e5d292c8a4b9bf9929cc6numberofcasino').text(l); l++; }) }); var emptyrow = '
'; emptyrow += '
'; emptyrow += '
'; emptyrow += '
'; emptyrow += '
'; emptyrow += '
'; emptyrow += '
'; emptyrow += '
'; $('.pd1f612534a03e5d292c8a4b9bf9929cc6rowbody:visible').before(emptyrow); }) }); $(" :checkbox, :radio").click(function(event) { if(type == 'checkbox'){ if(value != 'pd1f612534a03e5d292c8a4b9bf9929cc6cat_all' ){ $('.pd1f612534a03e5d292c8a4b9bf9929cc6cat_all').prop('checked',false); }else{ $(":checked").each(function() { $(this).prop('checked',false); }) } } if(type == 'radio'){ var text_mb=''; var total_words = []; var i; $('.pd1f612534a03e5d292c8a4b9bf9929cc6content_info pd1f612534a03e5d292c8a4b9bf9929cc6content_title').html($(this).attr('data-title')); total_words = $(this).attr('data-text').trim().split(/ +/); for (var i = 0; i < 10; i++) { text_mb += total_words[i] + ' ' ; } $('.pd1f612534a03e5d292c8a4b9bf9929cc6content_info').css('background','url('+$(this).attr('data-image')+') no-repeat center top'); $('.pd1f612534a03e5d292c8a4b9bf9929cc6content_info pd1f612534a03e5d292c8a4b9bf9929cc6game_content_title_mobile').html(text_mb + 'Read more'); $('.pd1f612534a03e5d292c8a4b9bf9929cc6content_info pd1f612534a03e5d292c8a4b9bf9929cc6game_content_title_pc').html($(this).attr('data-text')); } var checked = []; $(":checked").each(function() { push(value); }); if(length == 0){ $('.pd1f612534a03e5d292c8a4b9bf9929cc6cat_all').prop('checked',true); push('pd1f612534a03e5d292c8a4b9bf9929cc6cat_all'); } var trow = []; rowlist(checked)//list by selected element }); $('pd1f612534a03e5d292c8a4b9bf9929cc6icon_list li>a').click(function(){ $('.pd1f612534a03e5d292c8a4b9bf9929cc6popup_overlay').css('display','block'); var popup = ''; popup += ''; popup += ''+$(this).attr('data-title')+''; popup += ''+$(this).attr('data-text')+''; $('.pd1f612534a03e5d292c8a4b9bf9929cc6mini_popup').html(popup); $(".pd1f612534a03e5d292c8a4b9bf9929cc6mini_popup").css("display","block"); }); $('.pd1f612534a03e5d292c8a4b9bf9929cc6rank').click( function(){ closemenu(); Rank(sm,site_url); }); $('.pd1f612534a03e5d292c8a4b9bf9929cc6ifeellucky_click').click( function(){ closemenu(); FeelLucky(site_url) }); $(document).click(function(event) { if($(target).attr("class") == 'pd1f612534a03e5d292c8a4b9bf9929cc6popup_main' ) { close_popup(); } }); $(document).click(function(event) { if($(target).attr("class") == 'pd1f612534a03e5d292c8a4b9bf9929cc6popup_overlay' ) { close_popup_main(); } }); $(document).click(function(event) { if($(target).attr("class") == 'pd1f612534a03e5d292c8a4b9bf9929cc6popup_overlay_matcher' ) { close_popup_matcher(); } }); $('.pd1f612534a03e5d292c8a4b9bf9929cc6matcher_click').click(function(){ closemenu(); //$(".popup_main_matcher").attr('style','position:fixed;top:50px;max-width:1200px;') if( $(window).width()<768 ) $('pd1f612534a03e5d292c8a4b9bf9929cc6mb_button,pd1f612534a03e5d292c8a4b9bf9929cc6mb_button_opened').click(); $(".pd1f612534a03e5d292c8a4b9bf9929cc6popup_main_matcher, .pd1f612534a03e5d292c8a4b9bf9929cc6popup_overlay_matcher").css("display","block"); $(".pd1f612534a03e5d292c8a4b9bf9929cc6matcher_active").attr('style','opacity:1;z-index:9999;'); var marginleft,margintop; var wheight = $(window).height(); var wwidth = $(window).width(); var mwidth = $('.pd1f612534a03e5d292c8a4b9bf9929cc6matcher_active').width(); var mheight = $('.pd1f612534a03e5d292c8a4b9bf9929cc6matcher_active').height(); marginleft = (wwidth - mwidth)/2; margintop = (wheight-mheight)/2; //$(".matcher_active").attr('style','left:'+marginleft +'px') //alert(mwidth) $(".pd1f612534a03e5d292c8a4b9bf9929cc6popup_main_matcher").attr('style','display:block;position:absolute;max-width:1200px;left:'+marginleft+'px'); OWL(); }); //matcher begin $('.pd1f612534a03e5d292c8a4b9bf9929cc6matcher_back').click(function(e){ preventdefault(); pop(); log(matcher); $(this).parents('.pd1f612534a03e5d292c8a4b9bf9929cc6matcher_content').attr('style','opacity:0;z-index:0;'); $(this).parents('.pd1f612534a03e5d292c8a4b9bf9929cc6matcher_content').prev().attr('style','opacity:1;z-index:9999;display:block'); }); $('.pd1f612534a03e5d292c8a4b9bf9929cc6matcher_item_a').click(function(){ /*if( 1100 < $(window).width() ){ $(this).find('main_image').css('display','none'); $(this).find('hover_image').css('display','block'); }*/ var index,value,result,checked = []; $(this).parents('.pd1f612534a03e5d292c8a4b9bf9929cc6matcher_content').find('.pd1f612534a03e5d292c8a4b9bf9929cc6active_item').removeClass('pd1f612534a03e5d292c8a4b9bf9929cc6active_item');//remove active item $(this).addClass('pd1f612534a03e5d292c8a4b9bf9929cc6active_item');//add class active item index = $(this).attr('data-id').split('_')[0]; value = $(this).attr('data-id').split('_')[1]; matcher[index] = $(this).attr('data-id'); log( keys(matcher).length ); //alert(length); if( keys(matcher).length == 5){ for (x in matcher) { push(matcher[x]); } rowlist(checked); matcher = []; $('.pd1f612534a03e5d292c8a4b9bf9929cc6matcher_content:last').append('

'+$translate['m_find_title']+'

'); setTimeout(function(){ close_popup_matcher(); $('.pd1f612534a03e5d292c8a4b9bf9929cc6matcher_find_content').remove(); $('.pd1f612534a03e5d292c8a4b9bf9929cc6load_mathcer_result').addClass('pd1f612534a03e5d292c8a4b9bf9929cc6full_matcher_result'); $('.pd1f612534a03e5d292c8a4b9bf9929cc6load_mathcer_result').html('
'+$translate['m_title']+'
'+$translate['m_text']+'
'); }, 3000); // //log('dsdsd'); }else{ $(this).parents('.pd1f612534a03e5d292c8a4b9bf9929cc6matcher_content').attr('style','opacity:0;z-index:0;'); $(this).parents('.pd1f612534a03e5d292c8a4b9bf9929cc6matcher_content').hide().next().attr('style','display:block;opacity:1;z-index:9999'); } }); //matcher end /*$(document).click(function(event) { if( -1 == $(target).attr("class").indexOf('noteblock') ) { $('.noteblock').remove(); } });*/ $('#pd1f612534a03e5d292c8a4b9bf9929cc6matcher_game .pd1f612534a03e5d292c8a4b9bf9929cc6item').hover( function () { if( 1100<$(window).width() ) $(this).find('.pd1f612534a03e5d292c8a4b9bf9929cc6matcher_game_info').css('display', 'block'); }, function () { $(this).find('.pd1f612534a03e5d292c8a4b9bf9929cc6matcher_game_info').css('display', 'none'); }); $('i[data-click="open"], i[data-click="close"]').click(function(){ var objparent = $(this).parent(); var obj = $(this).parent().find('span'); var shorttext = text(); var fulltext = attr('data-text'); attr('data-text',shorttext); html(fulltext); $(this).hide(); if( $(this).attr('data-click') == 'open' ){ find('i[data-click="close"]').show(); }else{ find('i[data-click="open"]').show(); } //$(this).hide(); }); /*$('.matcher_game_info i[data-click="close"]').click(function(){ alert('test') var parent = $(this).parent(); var shorttext = text(); var fulltext = attr('data-text')+' show less'; attr('data-text',shorttext); html(fulltext); });*/ $('#pd1f612534a03e5d292c8a4b9bf9929cc6bonu_scell .pd1f612534a03e5d292c8a4b9bf9929cc6sort_icon').click(function(){ if(bonus_count%2 == 1){ $('.pd1f612534a03e5d292c8a4b9bf9929cc6hide_s').css('display','none'); $('.pd1f612534a03e5d292c8a4b9bf9929cc6shw_s').css('display','table-cell'); //alert('depoziti elave et') }else{ //$('#scorecell').click(); $('.pd1f612534a03e5d292c8a4b9bf9929cc6hide_s').css('display','table-cell'); $('.pd1f612534a03e5d292c8a4b9bf9929cc6shw_s').css('display','none'); } bonus_count++; }); $('#pd1f612534a03e5d292c8a4b9bf9929cc6scorecell .pd1f612534a03e5d292c8a4b9bf9929cc6sort_icon').click(function(){ $('.pd1f612534a03e5d292c8a4b9bf9929cc6hide_s').css('display','table-cell'); $('.pd1f612534a03e5d292c8a4b9bf9929cc6shw_s').css('display','none'); bonus_count++; }) // Tooltip only Text $('.pd1f612534a03e5d292c8a4b9bf9929cc6c_tooltip').hover(function(){ var obj = $(this); find('.pd1f612534a03e5d292c8a4b9bf9929cc6tooltip').fadeIn(); }, function() { $(this).attr('title', $(this).data('tipText')); $('.pd1f612534a03e5d292c8a4b9bf9929cc6tooltip').fadeOut(); }); //context menu $(document).ready(function () { $(".pd1f612534a03e5d292c8a4b9bf9929cc6cn").on("contextmenu",function(e){ //prevent default context menu for right click preventdefault(); var link = $(this).attr('href'); var cmenu = ''; cmenu += '
'; cmenu += ''; cmenu += '
'; $('body').append(cmenu); var menu = $(".pd1f612534a03e5d292c8a4b9bf9929cc6contextmenu"); //hide menu if already shown hide(); //get x and y values of the click event var pageX = pagex; var pageY = pagey; //position menu div near mouse cliked area css({top: pageY , left: pageX}); var mwidth = width(); var mheight = height(); var screenWidth = $(window).width(); var screenHeight = $(window).height(); //if window is scrolled var scrTop = $(window).scrollTop(); //if the menu is close to right edge of the window if(pageX+mwidth > screenWidth){ css({left:pageX-mwidth}); } if(pageX < mwidth ){ if(mwidth < screenWidth) css({left:pageX-10}); else css({left:0}); log('soldan yer chatmir'); } log(pageX); //if the menu is close to bottom edge of the window if(pageY+mheight > screenHeight+scrTop){ css({top:pageY-mheight}); } //finally show the menu show(); }); $("html").on("click", function(){ $(".pd1f612534a03e5d292c8a4b9bf9929cc6contextmenu").hide(); }); }); //context menu var pd1f612534a03e5d292c8a4b9bf9929cc6hash = hash; if(pd1f612534a03e5d292c8a4b9bf9929cc6hash=="#matcher") { $('.pd1f612534a03e5d292c8a4b9bf9929cc6matcher_click').click(); } }); function closemenu(){ var width = $(window).width(); if(width < 1100){ $("pd1f612534a03e5d292c8a4b9bf9929cc6menu").slideUp(); $('pd1f612534a03e5d292c8a4b9bf9929cc6mb_button').css('display','block'); $('pd1f612534a03e5d292c8a4b9bf9929cc6mb_button_opened').css('display','none'); } } function rowlist(checked){ $(".pd1f612534a03e5d292c8a4b9bf9929cc6divTableBody .pd1f612534a03e5d292c8a4b9bf9929cc6rowbody").hide(); var f = 1; $(".pd1f612534a03e5d292c8a4b9bf9929cc6trow").each(function() { if($(this).attr('id') == 'pd1f612534a03e5d292c8a4b9bf9929cc6emptyrow') $(this).remove(); t = $(this).attr('class').split(' '); saygac = 0; for(i = 0; i < length; i++){ if( 0 <= indexof( checked[i] ) ){ saygac++; } } if(length == saygac && saygac != 0){ $(this).find('.pd1f612534a03e5d292c8a4b9bf9929cc6numberofcasino').removeClass('pd1f612534a03e5d292c8a4b9bf9929cc6first_casino').addClass('pd1f612534a03e5d292c8a4b9bf9929cc6other_casino'); $(this).find('.pd1f612534a03e5d292c8a4b9bf9929cc6numberofcasino').text(f); $(this).show(); f++; var emptyrow = '
'; emptyrow += '
'; emptyrow += '
'; emptyrow += '
'; emptyrow += '
'; emptyrow += '
'; emptyrow += '
'; emptyrow += '
'; $(this).before(emptyrow); } }); f = 1; } function FeelLucky(site_url){ if( $(window).width()<768 ) $('pd1f612534a03e5d292c8a4b9bf9929cc6mb_button,pd1f612534a03e5d292c8a4b9bf9929cc6mb_button_opened').click(); $('body').append('
'); $.ajax({ type: 'post', url: site_url+'', data: 'l='+lg, success: function (result){ $('.pd1f612534a03e5d292c8a4b9bf9929cc6load_content').html(result); var marginleft; var wwidth = $(window).width(); var mwidth = $('.pd1f612534a03e5d292c8a4b9bf9929cc6popup_main').width(); marginleft = (wwidth - mwidth)/2; $('.pd1f612534a03e5d292c8a4b9bf9929cc6popup_main').css('margin-left',marginleft+'px') } }); } function Rank(sm,site_url){ if( $(window).width()<768 ) $('pd1f612534a03e5d292c8a4b9bf9929cc6mb_button,pd1f612534a03e5d292c8a4b9bf9929cc6mb_button_opened').click(); $('body').append('
'); $.ajax({ type: 'post', url: site_url+'', data:'sm='+sm+'&l='+lg, success: function (result){ $('.pd1f612534a03e5d292c8a4b9bf9929cc6load_content').html(result); var marginleft; var wwidth = $(window).width(); var mwidth = $('.pd1f612534a03e5d292c8a4b9bf9929cc6popup_main').width(); marginleft = (wwidth - mwidth)/2; $('.pd1f612534a03e5d292c8a4b9bf9929cc6popup_main').css('margin-left',marginleft+'px'); var rankheight = $('.pd1f612534a03e5d292c8a4b9bf9929cc6rank_content').height() + 200; $('.pd1f612534a03e5d292c8a4b9bf9929cc6body').css('height',rankheight); $('body').css('height',rankheight); } }); } function OWL(){ /*var owl_cat_game = $('#matcher_game'); owlcarousel({ margin: 0, loop: false, nav: false, dots: true, navText: [ "", "" ], responsive: { 0: { items: 5 }, 600: { items: 5 }, 1000: { items: 5 } } }); */ /*var owl_cat_device = $('#matcher_device'); owlcarousel({ margin: 0, loop: false, nav: false, dots: true, navText: [ "", "" ], responsive: { 0: { items: 3 }, 600: { items: 3 }, 1000: { items: 3 } } });*/ /*var owl_cat_payment = $('#matcher_payment'); owlcarousel({ margin: 0, loop: false, nav: false, dots: true, navText: [ "", "" ], responsive: { 0: { items: 5 }, 600: { items: 5 }, 1000: { items: 5 } } });*/ /*var owl_cat_level = $('#matcher_level'); owlcarousel({ margin: 0, loop: false, nav: false, dots: true, navText: [ "", "" ], responsive: { 0: { items: 3 }, 600: { items: 3 }, 1000: { items: 3 } } });*/ } function close_popup_main(){ $(".pd1f612534a03e5d292c8a4b9bf9929cc6popup_overlay").remove(); $('.pd1f612534a03e5d292c8a4b9bf9929cc6popup_main').remove(); } function close_popup(){ $(".pd1f612534a03e5d292c8a4b9bf9929cc6popup_overlay").remove(); $('.pd1f612534a03e5d292c8a4b9bf9929cc6popup_main').remove(); $('.pd1f612534a03e5d292c8a4b9bf9929cc6body').css('height','auto'); } function close_popup_matcher(){ matcher = []; //log(matcher); $('.pd1f612534a03e5d292c8a4b9bf9929cc6popup_main_matcher .pd1f612534a03e5d292c8a4b9bf9929cc6active_item').removeClass('pd1f612534a03e5d292c8a4b9bf9929cc6active_item'); $(".pd1f612534a03e5d292c8a4b9bf9929cc6popup_overlay_matcher").css('display','none'); $('.pd1f612534a03e5d292c8a4b9bf9929cc6popup_main_matcher').css('display','none'); $('.pd1f612534a03e5d292c8a4b9bf9929cc6matcher_content').attr('style','z-index:-1;opacity:0;'); } function redirect(url){ open(url, '_blank'); }