diff --git a/README.md b/README.md index ee51d89..185eb80 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -jquery.switcher +jquery.switcher v1.1.0 =============== Custom checkbox / radio button in jquery diff --git a/bower.json b/bower.json index 7dc6823..44d67ac 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "jquery.switcher", - "version": "1.0.0", + "version": "1.1.0", "homepage": "http://djanix.github.io/jquery.switcher/", "docs": "http://amsul.github.io/pickadate.js", "authors": [ diff --git a/dist/switcher.css b/dist/switcher.css index 82762f8..b26a7ee 100644 --- a/dist/switcher.css +++ b/dist/switcher.css @@ -1,4 +1,4 @@ -/* jquery.switcher - 1.0.1 +/* jquery.switcher - 1.1.0 * Copyright (c) 2014-07-16 Janic Beauchemin - https://github.com/djanix/ */ diff --git a/dist/switcher.min.css b/dist/switcher.min.css index 46ef7e9..12f4458 100644 --- a/dist/switcher.min.css +++ b/dist/switcher.min.css @@ -1,4 +1,4 @@ -/* jquery.switcher - 1.0.1 +/* jquery.switcher - 1.1.0 * Copyright (c) 2014-07-16 Janic Beauchemin - https://github.com/djanix/ */ diff --git a/dist/switcher.min.js b/dist/switcher.min.js index a49eea9..b9d8c73 100644 --- a/dist/switcher.min.js +++ b/dist/switcher.min.js @@ -1,4 +1,4 @@ -/* jquery.switcher - 1.0.1 +/* jquery.switcher - 1.1.0 * Copyright (c) 2014-07-16 Janic Beauchemin - https://github.com/djanix/ */ !function(a){function b(b,c){this.input=b,this.container=null,this.settings=a.extend({},h,a(b).data(),c),this._defaults=h,this._name=g,this.init()}function c(){this.removeEventListener("touchmove",d),this.removeEventListener("touchend",c),k=!1}function d(b){if(b.preventDefault(),k){var d=b.touches[0].pageX,e=b.touches[0].pageY,f=i-d,g=j-e,h=null;Math.abs(f)>=l?h=f>0?"left":"right":Math.abs(g)>=l&&(h=g>0?"down":"up"),h&&(c.call(this),a(this).trigger("swipe",h).trigger("swipe"+h))}}function e(a){1==a.touches.length&&(i=a.touches[0].pageX,j=a.touches[0].pageY,k=!0,this.addEventListener("touchmove",d,!1),this.addEventListener("touchend",c,!1))}function f(){this.addEventListener&&this.addEventListener("touchstart",e,!1)}var g="switcher",h={"class":"switcher",selected:!1,language:"en",disabled:!1,copy:{en:{yes:"yes",no:"no"},fr:{yes:"oui",no:"non"}}};a.extend(b.prototype,{init:function(){this.buildHtml(this.input,this.settings),this.bindEvents(this.container,this.settings)},buildHtml:function(b,c){var d=this,e=a(b);e.wrap('
'),e.after('