PluginProbe
MaxButtons – Create buttons / 6.8
MaxButtons – Create buttons v6.8
6.23 6.24 6.25 6.26 6.26.1 6.27 6.28 6.3 6.4 6.5 6.6 6.7 6.8 6.9 7.0 7.1 7.1.1 7.1.2 7.1.3 7.10 7.11 7.13 7.13.1 7.13.2 7.13.3 All 100 releases
maxbuttons / js / min / front.js

front.js in MaxButtons – Create buttons 6.8, at js/min/front.js

1 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 jQuery(document).ready(function(o){function t(t){t.preventDefault();var a=o(this).data("popup"),c=o(this).find("a").attr("href"),n=a.width,e=a.height,i=(o(window).width()-n)/2,l=(o(window).height()-e)/2,r="toolbar=0,scrollbars=1, location=0, width="+n+",height="+e+",left="+i+",top="+l,d=window.open(c,"mb-social-share-window",r);d.focus(),mbSocialTrack()}function a(t,a){var n=mb_ajax.ajaxurl,e=a.share_url,i=a.network,l=a.collection_id,r=(a.nonce,{share_url:e,network:i}),a={block_name:"social",block_action:"ajax_get_count",action:"mbpro_collection_block_front",collection_id:l,collection_type:"social",block_data:r};o.ajax({type:"POST",url:n,data:a,success:function(o){c(o,t)}})}function c(t,a){var c=o.parseJSON(t),n=o(a).data("onload"),e=parseInt(n.count_threshold),i=parseInt(c.data.count);if(i>=e){var l=n.text,r=n.text2;l=l.replace("{count}",i),l=l.replace("{c}",i),r=r.replace("{count}",i),r=r.replace("{c}",i),o(a).find(".mb-text").html(l),o(a).find(".mb-text2").html(r)}}function n(){return"function"!=typeof o?void console.log("Maxbuttons : Jquery load conflict."):(o(".maxcollection .mb-collection-item[data-popup]").on("click",t),void o(".maxcollection .mb-collection-item[data-onload]").each(function(){var t=o(this).parents(".maxcollection").data("collection"),c=o(this).data("onload");c.collection_id=t,a(this,c)}))}mbSocialTrack=function(){},n()});