From 5c98e8f2253fb1e9d3790fee6b3ca927c6c02cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20Ol=C3=A1h?= Date: Fri, 9 May 2014 16:59:57 +0700 Subject: [PATCH] version 0.1.8 --- README.md | 2 +- bower.json | 2 +- dist/wow.min.js | 2 +- package.json | 2 +- src/wow.coffee | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b7372e6..1df90b7 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Follow [@mattaussaguel](http://twitter.com/mattaussaguel) for updates as WOW evo ## Version -0.1.7 +0.1.8 ## Documentation diff --git a/bower.json b/bower.json index 1c29857..3f9271e 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "wow", - "version": "0.1.7", + "version": "0.1.8", "homepage": "https://github.com/matthieua/WOW", "authors": [ "Matthieu Aussaguel " diff --git a/dist/wow.min.js b/dist/wow.min.js index 51d62f2..d2976ad 100644 --- a/dist/wow.min.js +++ b/dist/wow.min.js @@ -1,2 +1,2 @@ -/*! WOW - v0.1.7 - 2014-05-09 +/*! WOW - v0.1.8 - 2014-05-09 * Copyright (c) 2014 Matthieu Aussaguel; Licensed MIT */(function(){var a,b=function(a,b){return function(){return a.apply(b,arguments)}};a=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in a)d=a[c],null!=d&&(b[c]=d);return b},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a}(),this.WOW=function(){function c(a){null==a&&(a={}),this.scrollCallback=b(this.scrollCallback,this),this.scrollHandler=b(this.scrollHandler,this),this.start=b(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults)}return c.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0},c.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():document.addEventListener("DOMContentLoaded",this.start)},c.prototype.start=function(){var a,b,c,d;if(this.boxes=this.element.getElementsByClassName(this.config.boxClass),this.boxes.length){if(this.disabled())return this.resetStyle();for(d=this.boxes,b=0,c=d.length;c>b;b++)a=d[b],this.applyStyle(a,!0);return window.addEventListener("scroll",this.scrollHandler,!1),window.addEventListener("resize",this.scrollHandler,!1),this.interval=setInterval(this.scrollCallback,50)}},c.prototype.stop=function(){return window.removeEventListener("scroll",this.scrollHandler,!1),window.removeEventListener("resize",this.scrollHandler,!1),null!=this.interval?clearInterval(this.interval):void 0},c.prototype.show=function(a){return this.applyStyle(a),a.className=""+a.className+" "+this.config.animateClass},c.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},c.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),c.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.setAttribute("style","visibility: visible;"));return e},c.prototype.customStyle=function(a,b,c,d,e){return a.style.visibility=b?"hidden":"visible",b&&(a.dataset.wowAnimationName=this.animationName(a)),c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":a.dataset.wowAnimationName}),a},c.prototype.vendors=["moz","webkit"],c.prototype.vendorSet=function(a,b){var c,d,e,f;f=[];for(c in b)d=b[c],a[""+c]=d,f.push(function(){var b,f,g,h;for(g=this.vendors,h=[],b=0,f=g.length;f>b;b++)e=g[b],h.push(a[""+e+c.charAt(0).toUpperCase()+c.substr(1)]=d);return h}.call(this));return f},c.prototype.vendorCSS=function(a,b){var c,d,e,f,g,h;for(d=window.getComputedStyle(a),c=d.getPropertyCSSValue(b),h=this.vendors,f=0,g=h.length;g>f;f++)e=h[f],c=c||d.getPropertyCSSValue("-"+e+"-"+b);return c},c.prototype.animationName=function(a){var b;try{return null!=(b=this.vendorCSS(a,"animation-name"))?b.cssText:void 0}catch(c){return window.getComputedStyle(a).getPropertyValue("animation-name")||"none"}},c.prototype.scrollHandler=function(){return this.scrolled=!0},c.prototype.scrollCallback=function(){var a;return this.scrolled&&(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),!this.boxes.length)?this.stop():void 0},c.prototype.offsetTop=function(a){var b;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},c.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=window.pageYOffset,e=f+this.element.clientHeight-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},c.prototype.util=function(){return this._util||(this._util=new a)},c.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},c}()}).call(this); \ No newline at end of file diff --git a/package.json b/package.json index b99d53e..127641a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name" : "wow", "title" : "WOW", - "version" : "0.1.7", + "version" : "0.1.8", "description" : "", "keywords": [], "homepage" : "", diff --git a/src/wow.coffee b/src/wow.coffee index de19f66..acecb32 100644 --- a/src/wow.coffee +++ b/src/wow.coffee @@ -1,7 +1,7 @@ # # Name : wow # Author : Matthieu Aussaguel, http://mynameismatthieu.com/, @mattaussaguel -# Version : 0.1.7 +# Version : 0.1.8 # Repo : https://github.com/matthieua/WOW # Website : http://mynameismatthieu.com/wow #