Файл: mscasino/wicket-event-jquery.min-ver-2A8B8EF9295A81B4FF15AA3DE14044D7.js
Строк: 245
<?php
(function(a){if(typeof(Wicket)==="undefined"){window.Wicket={}}if(typeof(Wicket.Event)==="object"){return}jQuery.extend(true,Wicket,{Browser:{_isKHTML:null,isKHTML:function(){var b=Wicket.Browser;if(b._isKHTML===null){b._isKHTML=(/Konqueror|KHTML/).test(window.navigator.userAgent)&&!/Apple/.test(window.navigator.userAgent)}return b._isKHTML},_isSafari:null,isSafari:function(){var b=Wicket.Browser;if(b._isSafari===null){b._isSafari=!/Chrome/.test(window.navigator.userAgent)&&/KHTML/.test(window.navigator.userAgent)&&/Apple/.test(window.navigator.userAgent)}return b._isSafari},_isChrome:null,isChrome:function(){var b=Wicket.Browser;if(b._isChrome===null){b._isChrome=(/KHTML/).test(window.navigator.userAgent)&&/Apple/.test(window.navigator.userAgent)&&/Chrome/.test(window.navigator.userAgent)}return b._isChrome},_isOpera:null,isOpera:function(){var b=Wicket.Browser;if(b._isOpera===null){b._isOpera=!Wicket.Browser.isSafari()&&typeof(window.opera)!=="undefined"}return b._isOpera},_isIE:null,isIE:function(){var b=Wicket.Browser;if(b._isIE===null){b._isIE=!Wicket.Browser.isSafari()&&(typeof(document.all)!=="undefined"||window.navigator.userAgent.indexOf("Trident/")>-1)&&typeof(window.opera)==="undefined"}return b._isIE},_isIEQuirks:null,isIEQuirks:function(){var b=Wicket.Browser;if(b._isIEQuirks===null){b._isIEQuirks=Wicket.Browser.isIE()&&window.document.documentElement.clientHeight===0}return b._isIEQuirks},_isIELessThan7:null,isIELessThan7:function(){var d=Wicket.Browser;if(d._isIELessThan7===null){var c=window.navigator.userAgent.indexOf("MSIE");var b=parseFloat(window.navigator.userAgent.substring(c+5));d._isIELessThan7=Wicket.Browser.isIE()&&b<7}return d._isIELessThan7},_isIE7:null,isIE7:function(){var d=Wicket.Browser;if(d._isIE7===null){var c=window.navigator.userAgent.indexOf("MSIE");var b=parseFloat(window.navigator.userAgent.substring(c+5));d._isIE7=Wicket.Browser.isIE()&&b>=7}return d._isIE7},_isIELessThan9:null,isIELessThan9:function(){var d=Wicket.Browser;if(d._isIELessThan9===null){var c=window.navigator.userAgent.indexOf("MSIE");var b=parseFloat(window.navigator.userAgent.substring(c+5));d._isIELessThan9=Wicket.Browser.isIE()&&b<9}return d._isIELessThan9},_isIELessThan11:null,isIELessThan11:function(){var b=Wicket.Browser;if(b._isIELessThan11===null){b._isIELessThan11=!Wicket.Browser.isSafari()&&typeof(document.all)!=="undefined"&&typeof(window.opera)==="undefined"}return b._isIELessThan11},_isIE11:null,isIE11:function(){var d=Wicket.Browser;if(d._isIE11===null){var c=window.navigator.userAgent;var b=c.indexOf("Trident");var e=c.indexOf("rv:11");d._isIE11=b&&e}return d._isIE11},_isGecko:null,isGecko:function(){var b=Wicket.Browser;if(b._isGecko===null){b._isGecko=(/Gecko/).test(window.navigator.userAgent)&&!Wicket.Browser.isSafari()}return b._isGecko}},Event:{idCounter:0,getId:function(c){var b=jQuery(c),d=b.prop("id");if(typeof(d)==="string"&&d.length>0){return d}else{d="wicket-generated-id-"+Wicket.Event.idCounter++;b.prop("id",d);return d}},keyCode:function(b){return Wicket.Event.fix(b).keyCode},stop:function(b,c){b=Wicket.Event.fix(b);if(c){b.stopImmediatePropagation()}else{b.stopPropagation()}return b},fix:function(b){var c=b||window.event;return jQuery.event.fix(c)},fire:function(b,c){c=(c==="mousewheel"&&Wicket.Browser.isGecko())?"DOMMouseScroll":c;jQuery(b).trigger(c)},add:function(c,f,e,g,b){if(f==="domready"){jQuery(e)}else{if(f==="load"&&c===window){jQuery(window).on("load",function(){jQuery(e)})}else{f=(f==="mousewheel"&&Wicket.Browser.isGecko())?"DOMMouseScroll":f;var d=c;if(typeof(c)==="string"){d=document.getElementById(c)}if(!d&&Wicket.Log){Wicket.Log.error('Cannot bind a listener for event "'+f+'" on element "'+c+'" because the element is not in the DOM')}jQuery(d).on(f,b,g,e)}}return c},remove:function(b,d,c){jQuery(b).off(d,c)},subscribe:function(b,c){if(b){jQuery(document).on(b,c)}},unsubscribe:function(b,c){if(b){if(c){jQuery(document).off(b,c)}else{jQuery(document).off(b)}}else{jQuery(document).off()}},publish:function(c){if(c){var b=Array.prototype.slice.call(arguments).slice(1);jQuery(document).triggerHandler(c,b);jQuery(document).triggerHandler("*",b)}},Topic:{DOM_NODE_REMOVING:"/dom/node/removing",DOM_NODE_ADDED:"/dom/node/added",AJAX_CALL_BEFORE:"/ajax/call/before",AJAX_CALL_PRECONDITION:"/ajax/call/precondition",AJAX_CALL_BEFORE_SEND:"/ajax/call/beforeSend",AJAX_CALL_SUCCESS:"/ajax/call/success",AJAX_CALL_COMPLETE:"/ajax/call/complete",AJAX_CALL_AFTER:"/ajax/call/after",AJAX_CALL_FAILURE:"/ajax/call/failure",AJAX_HANDLERS_BOUND:"/ajax/handlers/bound"}}})})();
?>