From e658a35157e6c1c582d4925ffa32282185550651 Mon Sep 17 00:00:00 2001 From: VodkaBears Date: Sat, 15 Feb 2014 14:20:19 +0400 Subject: [PATCH] Fix bad content rendering on ios. --- bower.json | 0 dist/jquery.remodal.css | 8 +------- dist/jquery.remodal.js | 2 +- dist/jquery.remodal.min.js | 2 +- remodal.jquery.json | 0 src/jquery.remodal.css | 8 +------- src/jquery.remodal.js | 2 +- 7 files changed, 5 insertions(+), 17 deletions(-) create mode 100644 bower.json create mode 100644 remodal.jquery.json diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..e69de29 diff --git a/dist/jquery.remodal.css b/dist/jquery.remodal.css index 7e476c6..49d282f 100644 --- a/dist/jquery.remodal.css +++ b/dist/jquery.remodal.css @@ -1,4 +1,4 @@ -/*! Remodal - v0.9 - 2014-02-14 +/*! Remodal - v0.9 - 2014-02-15 * https://github.com/VodkaBears/remodal * Copyright (c) 2014 VodkaBears; */ /* Fonts */ @@ -13,12 +13,6 @@ html.remodal_lock, body.remodal_lock { /* Background for effects(begin) */ .remodal-bg { - -webkit-filter: blur(0px); - -moz-filter: blur(0px); - -o-filter: blur(0px); - -ms-filter: blur(0px); - filter: blur(0px); - -webkit-transition: -webkit-filter 0.2s linear; -moz-transition: -moz-filter 0.2s linear; -o-transition: -o-filter 0.2s linear; diff --git a/dist/jquery.remodal.js b/dist/jquery.remodal.js index adb44ea..0e05fbd 100644 --- a/dist/jquery.remodal.js +++ b/dist/jquery.remodal.js @@ -1,4 +1,4 @@ -/*! Remodal - v0.9 - 2014-02-14 +/*! Remodal - v0.9 - 2014-02-15 * https://github.com/VodkaBears/remodal * Copyright (c) 2014 VodkaBears; */ ; diff --git a/dist/jquery.remodal.min.js b/dist/jquery.remodal.min.js index cd93b70..416e37b 100644 --- a/dist/jquery.remodal.min.js +++ b/dist/jquery.remodal.min.js @@ -1,4 +1,4 @@ -/*! Remodal - v0.9 - 2014-02-14 +/*! Remodal - v0.9 - 2014-02-15 * https://github.com/VodkaBears/remodal * Copyright (c) 2014 VodkaBears; */ !function(a){"use strict";function b(b,c){this.settings=a.extend({},e,c),this.modal=b,this.buildDOM(),this.addEventListeners(),this.index=f.push(this)-1,this.busy=!1}var c,d="remodal",e={hashTracking:!0},f=[],g=function(a){var b=a.css("transitionDuration")||a.css("webkitTransitionDuration")||a.css("mozTransitionDuration")||a.css("oTransitionDuration")||a.css("msTransitionDuration")||0,c=a.css("transitionDelay")||a.css("webkitTransitionDelay")||a.css("mozTransitionDelay")||a.css("oTransitionDelay")||a.css("msTransitionDelay")||0;return 1e3*(parseFloat(b)+parseFloat(c))},h=function(){var a=document.createElement("div");a.style.visibility="hidden",a.style.width="100px",document.body.appendChild(a);var b=a.offsetWidth;a.style.overflow="scroll";var c=document.createElement("div");c.style.width="100%",a.appendChild(c);var d=c.offsetWidth;return a.parentNode.removeChild(a),b-d};b.prototype.buildDOM=function(){this.body=a(document.body),this.bg=a("."+d+"-bg"),this.modalClose=a("").addClass(d+"-close"),this.overlay=a("
").addClass(d+"-overlay"),this.modal.hasClass(d)||this.modal.addClass(d),this.modal.css("visibility","visible"),this.modal.append(this.modalClose),this.overlay.append(this.modal),this.body.append(this.overlay),this.confirm=this.modal.find("."+d+"-confirm"),this.cancel=this.modal.find("."+d+"-cancel");var b=g(this.overlay),c=g(this.modal),e=g(this.bg);this.td=c>b?c:b,this.td=e>this.td?e:this.td},b.prototype.addEventListeners=function(){this.modalClose.bind("click."+d,function(a){a.preventDefault(),this.close()}.bind(this)),this.cancel.bind("click."+d,function(a){a.preventDefault(),this.modal.trigger("cancel"),this.close()}.bind(this)),this.confirm.bind("click."+d,function(a){a.preventDefault(),this.modal.trigger("confirm"),this.close()}.bind(this)),a(document).bind("keyup."+d,function(a){27===a.keyCode&&this.close()}.bind(this)),this.overlay.bind("click."+d,function(b){var c=a(b.target);c.hasClass(d+"-overlay")&&this.close()}.bind(this))},b.prototype.lockScreen=function(){a("html, body").addClass(d+"_lock"),this.body.css("padding-right","+="+h())},b.prototype.unlockScreen=function(){a("html, body").removeClass(d+"_lock"),this.body.css("padding-right","-="+h())},b.prototype.open=function(){if(!this.busy){this.busy=!0,this.modal.trigger("open");var a=this.modal.attr("data-"+d+"-id");a&&this.settings.hashTracking&&(location.hash=a),c&&c!==this&&(c.overlay.hide(),c.body.removeClass(d+"_active")),c=this,this.lockScreen(),this.overlay.show(),setTimeout(function(){this.body.addClass(d+"_active"),setTimeout(function(){this.busy=!1,this.modal.trigger("opened")}.bind(this),this.td+50)}.bind(this),25)}},b.prototype.close=function(){this.busy||(this.busy=!0,this.modal.trigger("close"),this.settings.hashTracking&&this.modal.attr("data-"+d+"-id")===location.hash.substr(1)&&(location.hash=""),this.body.removeClass(d+"_active"),setTimeout(function(){this.overlay.hide(),this.unlockScreen(),this.busy=!1,this.modal.trigger("closed")}.bind(this),this.td+50))},a&&(a.fn[d]=function(c){return this.each(function(e,f){var g=a(f);if(!g.data(d)||!g.data(d).open){var h=new b(g,c);g.data(d,h)}})}),a(document).on("click","[data-"+d+"-target]",function(b){b.preventDefault();var c=b.currentTarget,e=c.getAttribute("data-"+d+"-target"),f=a("[data-"+d+"-id="+e+"]");f.data(d).open()}),a(document).find("."+d).each(function(b,c){var e=a(c),f=e.data(d+"-options");f||(f={}),e[d](f)});var i=function(b,e){var f=location.hash.replace("#","");if("undefined"==typeof e&&(e=!0),f){var g=a("[data-"+d+"-id="+f+"]");if(g.length){var h=g.data(d);h&&h.settings.hashTracking&&h.open()}}else e&&c&&!c.busy&&c.settings.hashTracking&&c.close()};a(window).bind("hashchange."+d,i),i(null,!1)}(window.jQuery); \ No newline at end of file diff --git a/remodal.jquery.json b/remodal.jquery.json new file mode 100644 index 0000000..e69de29 diff --git a/src/jquery.remodal.css b/src/jquery.remodal.css index 7e476c6..49d282f 100644 --- a/src/jquery.remodal.css +++ b/src/jquery.remodal.css @@ -1,4 +1,4 @@ -/*! Remodal - v0.9 - 2014-02-14 +/*! Remodal - v0.9 - 2014-02-15 * https://github.com/VodkaBears/remodal * Copyright (c) 2014 VodkaBears; */ /* Fonts */ @@ -13,12 +13,6 @@ html.remodal_lock, body.remodal_lock { /* Background for effects(begin) */ .remodal-bg { - -webkit-filter: blur(0px); - -moz-filter: blur(0px); - -o-filter: blur(0px); - -ms-filter: blur(0px); - filter: blur(0px); - -webkit-transition: -webkit-filter 0.2s linear; -moz-transition: -moz-filter 0.2s linear; -o-transition: -o-filter 0.2s linear; diff --git a/src/jquery.remodal.js b/src/jquery.remodal.js index adb44ea..0e05fbd 100644 --- a/src/jquery.remodal.js +++ b/src/jquery.remodal.js @@ -1,4 +1,4 @@ -/*! Remodal - v0.9 - 2014-02-14 +/*! Remodal - v0.9 - 2014-02-15 * https://github.com/VodkaBears/remodal * Copyright (c) 2014 VodkaBears; */ ;