PATH:
home
/
letacommog
/
aacote
/
wp-content
/
plugins
/
dc-woocommerce-multi-vendor
/
assets
/
frontend
/
js
(function ($) { $.fn.simplePopup = function (options) { var defaults = $.extend({ }, options); /****************************** Private Variables *******************************/ var object = $(this); var settings = $.extend(defaults, options); /****************************** Public Methods *******************************/ var methods = { init: function() { return this.each(function () { methods.appendHTML(); methods.setEventHandlers(); methods.showPopup(); }); }, /****************************** Append HTML *******************************/ appendHTML: function() { // if this has already been added we don't need to add it again if ($('.simplePopupBackground').length === 0) { var background = '<div class="simplePopupBackground"></div>'; $('body').prepend(background); } if(object.find('.simplePopupClose').length === 0) { var close = '<div class="simplePopupClose">X</div>'; object.prepend(close); } }, /****************************** Set Event Handlers *******************************/ setEventHandlers: function() { $(".simplePopupClose, .simplePopupBackground").on("click", function (event) { methods.hidePopup(); }); $(window).on("resize", function(event){ methods.positionPopup(); }); }, showPopup: function() { $(".simplePopupBackground").css({ "opacity": "0.7" }); $(".simplePopupBackground").fadeIn("fast"); object.fadeIn("slow"); methods.positionPopup(); }, hidePopup: function() { $(".simplePopupBackground").fadeOut("fast"); object.fadeOut("fast"); }, positionPopup: function() { var windowWidth = $(window).width(); var windowHeight = $(window).height(); var popupWidth = object.width(); var popupHeight = object.height(); var topPos = (windowHeight / 2) - (popupHeight / 2); var leftPos = (windowWidth / 2) - (popupWidth / 2); if(topPos < 30) topPos = 30; /*object.css({ "position": "absolute", "top": topPos });*/ }, }; if (methods[options]) { // $("#element").pluginName('methodName', 'arg1', 'arg2'); return methods[options].apply(this, Array.prototype.slice.call(arguments, 1)); } else if (typeof options === 'object' || !options) { // $("#element").pluginName({ option: 1, option:2 }); return methods.init.apply(this); } else { $.error( 'Method "' + method + '" does not exist in simple popup plugin!'); } }; })(jQuery);
[+]
..
[-] wcmp_vendor_dashboard.js
[edit]
[-] product.js
[edit]
[-] coupon.js
[edit]
[-] vendor_review_rating.js
[edit]
[-] product-classify.js
[edit]
[-] vendor_dashboard.js
[edit]
[-] vendor_dashboard.min.js
[edit]
[-] jquery.mCustomScrollbar.concat.min.js
[edit]
[-] vendor_review_rating.min.js
[edit]
[-] single-product-multiple-vendors.js
[edit]
[-] wcmp_vendor_map_widget_data.js
[edit]
[-] wcmp-country-state.js
[edit]
[-] wcmp_vendor_announcements.js
[edit]
[-] wcmp_vendor_map_widget_data.min.js
[edit]
[-] profile_edit.min.js
[edit]
[-] simplepopup.js
[edit]
[-] frontend.min.js
[edit]
[-] vendor-shipping.js
[edit]
[-] wcmp_vendor_dashboard.min.js
[edit]
[-] single-product-multiple-vendors.min.js
[edit]
[-] vendor_order_by_product.js
[edit]
[-] meta-boxes.js
[edit]
[-] frontend.js
[edit]
[-] wcmp-customer-qna.min.js
[edit]
[-] simplepopup.min.js
[edit]
[-] wcmp-customer-qna.js
[edit]
[-] wcmp_vendor_announcements.min.js
[edit]
[-] vendor-list.js
[edit]
[-] vendor_order_by_product.min.js
[edit]
[-] profile_edit.js
[edit]