/* * iziModal | v1.0 * http://izimodal.dolce.ninja * by Marcelo Dolce. * js修改过 */ (function(jQuery){ "use strict"; var PLUGIN_NAME = 'iziModal'; var STATES = { CLOSING: 'closing', CLOSED: 'closed', OPENING: 'opening', OPENED: 'opened', DESTROYED: 'destroyed' }; function whichAnimationEvent(){ var t, el = document.createElement("fakeelement"); var animations = { "animation" : "animationend", "OAnimation" : "oAnimationEnd", "MozAnimation" : "animationend", "WebkitAnimation": "webkitAnimationEnd" }; for (t in animations){ if (el.style[t] !== undefined){ return animations[t]; } } } var animationEvent = whichAnimationEvent(); var isMobile = false; if (/Mobi/.test(navigator.userAgent)) { isMobile = true; } var iziModal = function (element, options) { this.init(element, options); }; iziModal.prototype = { constructor: iziModal, init: function (element, options) { var that = this; this.jQueryelement = jQuery(element); this.id = this.jQueryelement.attr('id'); this.state = STATES.CLOSED; this.options = options; this.timer = null; this.headerHeight = 0; this.jQueryheader = jQuery('
' + options.subtitle + '