PageSourceSearch

https://popugai.info/wp-content/cache/min/1/wp-content/plugins/pho…/js/bwg_gallery_box.js?ver=1738475606

js popugai.info collected 2026-10-02 17:07:00 UTC 7,957 bytes, 23 lines download raw bytes

1var isPopUpOpened=!1;function spider_createpopup(url,current_view,width,height,duration,description,lifetime,lightbox_ctrl_btn_pos){url=url.replace(/&/g,'&');if(isPopUpOpened){return};isPopUpOpened=!0;if(spider_hasalreadyreceivedpopup(description)||spider_isunsupporteduseragent()){return}
2jQuery("html").attr("style","overflow:hidden !important;");jQuery("#bwg_spider_popup_loading_"+current_view).css({display:"block"});jQuery("#spider_popup_overlay_"+current_view).css({display:"block"});jQuery.get(url,function(data){var popup=jQuery('<div id="spider_popup_wrap" class="spider_popup_wrap" style="'+' width:'+width+'px;'+' height:'+height+'px;'+' margin-top:-'+height/2+'px;'+' margin-left: -'+width/2+'px; ">'+data+'</div>').hide().appendTo("body");spider_showpopup(description,lifetime,popup,duration,lightbox_ctrl_btn_pos)}).success(function(jqXHR,textStatus,errorThrown){jQuery("#bwg_spider_popup_loading_"+current_view).css({display:"none !important;"})})}
3function spider_showpopup(description,lifetime,popup,duration,lightbox_ctrl_btn_pos){isPopUpOpened=!0;popup.show();spider_receivedpopup(description,lifetime,lightbox_ctrl_btn_pos)}
4function spider_hasalreadyreceivedpopup(description){if(document.cookie.indexOf(description)>-1){delete document.cookie[document.cookie.indexOf(description)]}
5return!1}
6function spider_receivedpopup(description,lifetime,lightbox_ctrl_btn_pos){var date=new Date();date.setDate(date.getDate()+lifetime);document.cookie=description+"=true;expires="+date.toUTCString()+";path=/";if(lightbox_ctrl_btn_pos=='bottom'){jQuery(".bwg_toggle_container").css("bottom",jQuery(".bwg_ctrl_btn_container").height()+"px")}else if(lightbox_ctrl_btn_pos=='top'){jQuery(".bwg_toggle_container").css("top",jQuery(".bwg_ctrl_btn_container").height()+"px")}}
7function spider_isunsupporteduseragent(){return(!window.XMLHttpRequest)}
8function spider_destroypopup(duration){if(document.getElementById("spider_popup_wrap")!=null){if(typeof jQuery().fullscreen!=='undefined'&&jQuery.isFunction(jQuery().fullscreen)){if(jQuery.fullscreen.isFullScreen()){jQuery.fullscreen.exit()}}
9if(typeof enable_addthis!="undefined"&&enable_addthis){jQuery(".at4-share-outer").hide()}
10setTimeout(function(){jQuery(".spider_popup_wrap").remove();jQuery(".bwg_spider_popup_loading").css({display:"none"});jQuery(".spider_popup_overlay").css({display:"none"});jQuery(document).off("keydown");jQuery("html").attr("style","overflow:auto !important")},20)}
11isPopUpOpened=!1;var isMobile=(/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));var viewportmeta=document.querySelector('meta[name="viewport"]');if(isMobile&&viewportmeta){viewportmeta.content='width=device-width, initial-scale=1'}
12var scrrr=jQuery(document).scrollTop();window.location.hash="";jQuery(document).scrollTop(scrrr);clearInterval(bwg_playInterval)}
13function get_ajax_pricelist(){var post_data={};jQuery(".add_to_cart_msg").html("");post_data.ajax_task="display";post_data.image_id=jQuery('#bwg_popup_image').attr('image_id');jQuery("#ecommerce_ajax_loading").css('height',jQuery(".bwg_ecommerce_panel").css('height'));jQuery("#ecommerce_opacity_div").css('width',jQuery(".bwg_ecommerce_panel").css('width'));jQuery("#ecommerce_opacity_div").css('height',jQuery(".bwg_ecommerce_panel").css('height'));jQuery("#ecommerce_loading_div").css('width',jQuery(".bwg_ecommerce_panel").css('width'));jQuery("#ecommerce_loading_div").css('height',jQuery(".bwg_ecommerce_panel").css('height'));document.getElementById("ecommerce_opacity_div").style.display='';document.getElementById("ecommerce_loading_div").style.display='table-cell';jQuery.post(jQuery('#bwg_ecommerce_form').attr('action'),post_data,function(data){var pge_tabs=jQuery(data).find('.pge_tabs').html();jQuery('.pge_tabs').html(pge_tabs);jQuery(".pge_tabs li a").click(function(){jQuery(".pge_tabs_container > div").hide();jQuery(".pge_tabs li").removeClass("pge_active");jQuery(jQuery(this).attr("href")).show();jQuery(this).closest("li").addClass("pge_active");jQuery("[name=type]").val(jQuery(this).attr("href").substr(1));return!1});var manual=jQuery(data).find('.manual').html();jQuery('.manual').html(manual);var downloads=jQuery(data).find('.downloads').html();jQuery('.downloads').html(downloads);var pge_options=jQuery(data).find('.pge_options').html();jQuery('.pge_options').html(pge_options);var pge_add_to_cart=jQuery(data).find('.pge_add_to_cart').html();jQuery('.pge_add_to_cart').html(pge_add_to_cart)}).success(function(jqXHR,textStatus,errorThrown){document.getElementById("ecommerce_opacity_div").style.display='none';document.getElementById("ecommerce_loading_div").style.display='none'});return!1}
14function spider_ajax_save(form_id){var post_data={};post_data.bwg_name=jQuery("#bwg_name").val();post_data.bwg_comment=jQuery("#bwg_comment").val();post_data.bwg_email=jQuery("#bwg_email").val();post_data.bwg_captcha_input=jQuery("#bwg_captcha_input").val();post_data.ajax_task=jQuery("#ajax_task").val();post_data.image_id=jQuery("#image_id").val();post_data.comment_id=jQuery("#comment_id").val();jQuery("#ajax_loading").css('height',jQuery(".bwg_comments").css('height'));jQuery("#opacity_div").css('width',jQuery(".bwg_comments").css('width'));jQuery("#opacity_div").css('height',jQuery(".bwg_comments").css('height'));jQuery("#loading_div").css('width',jQuery(".bwg_comments").css('width'));jQuery("#loading_div").css('height',jQuery(".bwg_comments").css('height'));document.getElementById("opacity_div").style.display='';document.getElementById("loading_div").style.display='table-cell';jQuery.post(jQuery('#'+form_id).attr('action'),post_data,function(data){var str=jQuery(data).find('.bwg_comments').html();jQuery('.bwg_comments').html(str)}).success(function(jqXHR,textStatus,errorThrown){document.getElementById("opacity_div").style.display='none';document.getElementById("loading_div").style.display='none';jQuery(".bwg_comments").mCustomScrollbar({scrollInertia:150});jQuery(".bwg_comments_close_btn").click(bwg_comment)});return!1}
15function spider_rate_ajax_save(form_id){var post_data={};post_data.image_id=jQuery("#"+form_id+" input[name='image_id']").val();post_data.rate=jQuery("#"+form_id+" input[name='score']").val();post_data.ajax_task=jQuery("#rate_ajax_task").val();jQuery.post(jQuery('#'+form_id).attr('action'),post_data,function(data){var str=jQuery(data).find('#'+form_id).html();jQuery('#'+form_id).html(str)}).success(function(jqXHR,textStatus,errorThrown){});return!1}
16function spider_set_input_value(input_id,input_value){if(document.getElementById(input_id)){document.getElementById(input_id).value=input_value}}
17function spider_form_submit(event,form_id){if(document.getElementById(form_id)){document.getElementById(form_id).submit()}
18if(event.preventDefault){event.preventDefault()}else{event.returnValue=!1}}
19function spider_check_required(id,name){if(jQuery('#'+id).val()==''){alert(name+'* '+bwg_objectL10n.bwg_field_required);jQuery('#'+id).attr('style','border-color: #FF0000;');jQuery('#'+id).focus();return!0}else{return!1}}
20function spider_check_email(id){if(jQuery('#'+id).val()!=''){var email=jQuery('#'+id).val().replace(/^\s+|\s+$/g,'');if(email.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)==-1){alert(bwg_objectL10n.bwg_mail_validation);return!0}
21return!1}}
22function bwg_captcha_refresh(id){if(document.getElementById(id+"_img")&&document.getElementById(id+"_input")){srcArr=document.getElementById(id+"_img").src.split("&r=");document.getElementById(id+"_img").src=srcArr[0]+'&r='+Math.floor(Math.random()*100);document.getElementById(id+"_img").style.display="inline-block";document.getElementById(id+"_input").value=""}}
23function bwg_play_instagram_video(obj,bwg){jQuery(obj).parent().find("video").each(function(){if(jQuery(this).get(0).paused){jQuery(this).get(0).play();jQuery(obj).children().hide()}else{jQuery(this).get(0).pause();jQuery(obj).children().show()}})}

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.