/********************************************* * streetfighter.js *********************************************/ /* ------------------------------------------- * @init ------------------------------------------- */ $(function(){ var u = new EPOS_CARD.Util(); $.modal(); }); /* ------------------------------------------- * @plugin ------------------------------------------- */ (function($){ /* * $.modal * [_ */ $.modal = function(config){ var u = new EPOS_CARD.Util(); var c = $.extend({ elm: ".js-capcomModal" },config); // vars var $elm = $(c.elm); if($elm.length === 0){ return false; } // trigger if(!u.isRangeSP()){ $elm.colorbox({ className: "capcomCbox", width: "100%", maxWidth: "1140px", maxHeight: "85%", fixed: true, onComplete: function(){ EPOS_CARD.module.equalHeight(true, true); EPOS_CARD.module.sizeFix(); } }); } else { $elm.colorbox({ className: "capcomCbox", height: "", maxWidth: "100%", maxHeight: "90%", fixed: true, onComplete: function(){ EPOS_CARD.module.equalHeight(true, true); EPOS_CARD.module.sizeFix(); } }); } } })(jQuery);