diff --git a/README.md b/README.md
index 08d011d..cc70dd8 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,8 @@
-![image](https://raw.githubusercontent.com/jossef/open-accessability/master/misc/banner.png)
+![image](https://raw.githubusercontent.com/jossef/open-accessibility/master/misc/banner.png)
-[![Build Status](https://travis-ci.org/jossef/open-accessability.svg?branch=master)](https://travis-ci.org/jossef/open-accessability)
+[![Build Status](https://travis-ci.org/jossef/open-accessibility.svg?branch=master)](https://travis-ci.org/jossef/open-accessibility)
-Free accessability tools menu for website maintainers powered by jQuery. [See the demo](https://jossef.github.io/open-accessability/)
+Free accessibility tools menu for website maintainers powered by jQuery. [See the demo](https://jossef.github.io/open-accessibility/)
### Getting Started
@@ -10,20 +10,20 @@ Free accessability tools menu for website maintainers powered by jQuery. [See th
#### CDN
Add the following imports (make sure to import jQuery before)
```
-
-
+
+
```
#### Bower
```
-bower install open-accessability --save
+bower install open-accessibility --save
```
#### NPM
```
-npm install open-accessability --save
+npm install open-accessibility --save
```
### Initialization
@@ -61,9 +61,9 @@ localization: ['he']
```
### Langual support
-In order to use other language add the locale script file right after the `open-accessability.babel` libary ( The order is important ).
+In order to use other language add the locale script file right after the `open-accessibility.babel` libary ( The order is important ).
```
-
+
```
diff --git a/bower.json b/bower.json
index 1884011..a0e7bc2 100644
--- a/bower.json
+++ b/bower.json
@@ -1,8 +1,8 @@
{
"name": "open-accessibility",
- "version": "0.0.2",
+ "version": "1.0.0",
"author": "Jossef Harush",
- "description": "Free accessability tools menu for website maintainers powered by jQuery",
+ "description": "Free accessibility tools menu for website maintainers powered by jQuery",
"keywords": [
"accessibility",
"accessibility icons",
@@ -11,11 +11,11 @@
"open-accessibility"
],
"main": [
- "dist/open-accessability.min.css",
- "dist/open-accessability.min.js"
+ "dist/open-accessibility.min.css",
+ "dist/open-accessibility.min.js"
],
"license": "Apache-2.0",
- "homepage": "https://jossef.github.io/open-accessability/",
+ "homepage": "https://jossef.github.io/open-accessibility/",
"dependencies": {
"jquery": "*"
}
diff --git a/dist/open-accessability.min.css b/dist/open-accessibility.min.css
similarity index 100%
rename from dist/open-accessability.min.css
rename to dist/open-accessibility.min.css
diff --git a/dist/open-accessability.min.js b/dist/open-accessibility.min.js
similarity index 99%
rename from dist/open-accessability.min.js
rename to dist/open-accessibility.min.js
index 5e43c47..9fc3b15 100644
--- a/dist/open-accessability.min.js
+++ b/dist/open-accessibility.min.js
@@ -1 +1 @@
-"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};!function(n){function e(n){return n=n||"",m.filter(function(e){return n.match(new RegExp(e+"$","gi"))}).pop()}function t(){var n=window.chrome,e=window.navigator,t=e.vendor,i=e.userAgent.indexOf("OPR")>-1,o=e.userAgent.indexOf("Edge")>-1;return null!==n&&void 0!==n&&"Google Inc."===t&&0==i&&0==o}function i(){var n=navigator.userAgent||navigator.vendor||window.opera,e=n.substr(0,4);return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e)}function o(){var n;try{n=localStorage.getItem(r),n=JSON.parse(n)}catch(n){}return n&&"object"===("undefined"==typeof n?"undefined":_typeof(n))?n:{}}function s(n){localStorage.setItem(r,JSON.stringify(n))}function a(t,i){n(t).not(".open-accessibility *").each(function(){var t=n(this),o=t.attr("data-open-accessibility-text-original");o||(o=t.css("font-size"),t.attr("data-open-accessibility-text-original",o));var s=e(o)||"",a=parseFloat(o)*i;t.css("font-size",a+s)})}function c(n){var e="open-accessibility-size-";return e+n}function l(e){var t=n(".open-accessibility-menu");Object.keys(e).forEach(function(n,i){t.find('[data-lang="'+n+'"]').text(e[n])})}function d(e,t){var i={};return e.forEach(function(e){var o=t&&t[e]||n.fn.openAccessibility.locale&&n.fn.openAccessibility.locale[e];n.isPlainObject(o)?i[e]=o:console.error(e+"language does not set!")}),i}function c(n){var e="open-accessibility-size-";return e+n}var p='
\n',r="open-accessibility-config",m=["px","cm","em","ex","in","mm","pc","pt","vh","vw","vmin"];n.fn.openAccessibility=function(e){function r(){b.isMenuOpened?(x.fadeOut(300),f.fadeIn(300),w.removeClass("open-accessibility-collapsed"),w.addClass("open-accessibility-expanded")):(x.fadeIn(300),f.fadeOut(300),w.removeClass("open-accessibility-expanded"),w.addClass("open-accessibility-collapsed"));var n=[];b.invert&&n.push("invert(1)"),n.push("contrast("+b.contrast+"%)"),n.push("brightness("+b.brightness+"%)"),n.push("grayscale("+b.grayscale+"%)");var e=n.join(" ");y.css("filter",e),y.css("-ms-filter",e),y.css("-moz-filter",e),y.css("-webkit-filter",e),y.css("-o-filter",e),a(b.textSelector,b.zoom),b.cursor?(h.addClass("open-accessibility-cursor"),O||E.show()):(h.removeClass("open-accessibility-cursor"),O||E.hide()),s(b)}var m=this;e=e||{};var u={isMenuOpened:!1,highlightedLinks:!1,isMobileEnabled:!0,grayscale:0,brightness:100,contrast:100,maxZoomLevel:3,minZoomLevel:.5,zoomStep:.2,zoom:1,cursor:!1,textSelector:".open-accessibility-text",invert:!1,localization:["he"],iconSize:"m"},v=o(),g=n.extend({},u,e),b=n.extend({},g,v,e);if(!b.isMobileEnabled&&i())return void console.log("disabling accessibility plugin due to mobile browser");m.prepend(p);var h=n("html"),y=n("body"),w=n(".open-accessibility"),f=n(".open-accessibility-menu"),x=n(".open-accessibility-expand-button"),k=n(".open-accessibility-close-button"),V=n(".open-accessibility-invert-button"),H=n(".open-accessibility-cursor-button"),z=n(".open-accessibility-zoom-in-button"),_=n(".open-accessibility-zoom-out-button"),M=n(".open-accessibility-brightness-button"),L=n(".open-accessibility-monochrome-button"),C=n(".open-accessibility-contrast-button"),Z=n(".open-accessibility-reset-button"),E=n(".open-accessibility-cursor-workaround");w.addClass(c(b.iconSize));var I=d(b.localization,b.localizationMap);l(I[Object.keys(I)[0]]),h.addClass("open-accessibility-zoom"),M.click(function(){b.brightness+=50,b.brightness>150&&(b.brightness=50),r()}),C.click(function(){b.contrast+=50,b.contrast>150&&(b.contrast=50),r()}),L.click(function(){b.grayscale+=100,b.grayscale>100&&(b.grayscale=0),r()}),Z.click(function(){b=n.extend({},g),b.isMenuOpened=!1,r()}),z.click(function(){b.zoom=Math.min(b.maxZoomLevel,b.zoom+b.zoomStep),r()}),_.click(function(){b.zoom=Math.max(b.minZoomLevel,b.zoom-b.zoomStep),r()}),V.click(function(){b.invert=!b.invert,r()}),H.click(function(){b.cursor=!b.cursor,r()}),x.click(function(){b.isMenuOpened=!0,r()}),k.click(function(){b.isMenuOpened=!1,r()}),n(document).click(function(e){n(e.target).closest(".open-accessibility").length||b.isMenuOpened&&(b.isMenuOpened=!1,r())}),x.hide(),f.hide(),e.isMenuOpened?(b.isMenuOpened=!0,f.show(),x.hide()):b.isMenuOpened=!1,E.hide();var O=t();O||n(document).on("mousemove",function(n){b.cursor&&E.css({left:n.pageX/b.zoom,top:n.pageY/b.zoom})}),a(b.textSelector,1),r()}}(jQuery||$);
\ No newline at end of file
+"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};!function(n){function e(n){return n=n||"",m.filter(function(e){return n.match(new RegExp(e+"$","gi"))}).pop()}function t(){var n=window.chrome,e=window.navigator,t=e.vendor,i=e.userAgent.indexOf("OPR")>-1,o=e.userAgent.indexOf("Edge")>-1;return null!==n&&void 0!==n&&"Google Inc."===t&&0==i&&0==o}function i(){var n=navigator.userAgent||navigator.vendor||window.opera,e=n.substr(0,4);return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e)}function o(){var n;try{n=localStorage.getItem(r),n=JSON.parse(n)}catch(n){}return n&&"object"===("undefined"==typeof n?"undefined":_typeof(n))?n:{}}function s(n){localStorage.setItem(r,JSON.stringify(n))}function a(t,i){n(t).not(".open-accessibility *").each(function(){var t=n(this),o=t.attr("data-open-accessibility-text-original");o||(o=t.css("font-size"),t.attr("data-open-accessibility-text-original",o));var s=e(o)||"",a=parseFloat(o)*i;t.css("font-size",a+s)})}function c(n){var e="open-accessibility-size-";return e+n}function l(e){var t=n(".open-accessibility-menu");Object.keys(e).forEach(function(n,i){t.find('[data-lang="'+n+'"]').text(e[n])})}function d(e,t){var i={};return e.forEach(function(e){var o=t&&t[e]||n.fn.openAccessibility.locale&&n.fn.openAccessibility.locale[e];n.isPlainObject(o)?i[e]=o:console.error(e+"language does not set!")}),i}function c(n){var e="open-accessibility-size-";return e+n}var p='\n',r="open-accessibility-config",m=["px","cm","em","ex","in","mm","pc","pt","vh","vw","vmin"];n.fn.openAccessibility=function(e){function r(){b.isMenuOpened?(x.fadeOut(300),f.fadeIn(300),w.removeClass("open-accessibility-collapsed"),w.addClass("open-accessibility-expanded")):(x.fadeIn(300),f.fadeOut(300),w.removeClass("open-accessibility-expanded"),w.addClass("open-accessibility-collapsed"));var n=[];b.invert&&n.push("invert(1)"),n.push("contrast("+b.contrast+"%)"),n.push("brightness("+b.brightness+"%)"),n.push("grayscale("+b.grayscale+"%)");var e=n.join(" ");y.css("filter",e),y.css("-ms-filter",e),y.css("-moz-filter",e),y.css("-webkit-filter",e),y.css("-o-filter",e),a(b.textSelector,b.zoom),b.cursor?(h.addClass("open-accessibility-cursor"),O||E.show()):(h.removeClass("open-accessibility-cursor"),O||E.hide()),s(b)}var m=this;e=e||{};var u={isMenuOpened:!1,highlightedLinks:!1,isMobileEnabled:!0,grayscale:0,brightness:100,contrast:100,maxZoomLevel:3,minZoomLevel:.5,zoomStep:.2,zoom:1,cursor:!1,textSelector:".open-accessibility-text",invert:!1,localization:["he"],iconSize:"m"},v=o(),g=n.extend({},u,e),b=n.extend({},g,v,e);if(!b.isMobileEnabled&&i())return void console.log("disabling accessibility plugin due to mobile browser");m.prepend(p);var h=n("html"),y=n("body"),w=n(".open-accessibility"),f=n(".open-accessibility-menu"),x=n(".open-accessibility-expand-button"),k=n(".open-accessibility-close-button"),V=n(".open-accessibility-invert-button"),H=n(".open-accessibility-cursor-button"),z=n(".open-accessibility-zoom-in-button"),_=n(".open-accessibility-zoom-out-button"),M=n(".open-accessibility-brightness-button"),L=n(".open-accessibility-monochrome-button"),C=n(".open-accessibility-contrast-button"),Z=n(".open-accessibility-reset-button"),E=n(".open-accessibility-cursor-workaround");w.addClass(c(b.iconSize));var I=d(b.localization,b.localizationMap);l(I[Object.keys(I)[0]]),h.addClass("open-accessibility-zoom"),M.click(function(){b.brightness+=50,b.brightness>150&&(b.brightness=50),r()}),C.click(function(){b.contrast+=50,b.contrast>150&&(b.contrast=50),r()}),L.click(function(){b.grayscale+=100,b.grayscale>100&&(b.grayscale=0),r()}),Z.click(function(){b=n.extend({},g),b.isMenuOpened=!1,r()}),z.click(function(){b.zoom=Math.min(b.maxZoomLevel,b.zoom+b.zoomStep),r()}),_.click(function(){b.zoom=Math.max(b.minZoomLevel,b.zoom-b.zoomStep),r()}),V.click(function(){b.invert=!b.invert,r()}),H.click(function(){b.cursor=!b.cursor,r()}),x.click(function(){b.isMenuOpened=!0,r()}),k.click(function(){b.isMenuOpened=!1,r()}),n(document).click(function(e){n(e.target).closest(".open-accessibility").length||b.isMenuOpened&&(b.isMenuOpened=!1,r())}),x.hide(),f.hide(),e.isMenuOpened?(b.isMenuOpened=!0,f.show(),x.hide()):b.isMenuOpened=!1,E.hide();var O=t();O||n(document).on("mousemove",function(n){b.cursor&&E.css({left:n.pageX/b.zoom,top:n.pageY/b.zoom})}),a(b.textSelector,1),r()}}(jQuery||$);
\ No newline at end of file
diff --git a/gulpfile.babel.js b/gulpfile.babel.js
index 6baad1e..844b3fd 100644
--- a/gulpfile.babel.js
+++ b/gulpfile.babel.js
@@ -20,7 +20,7 @@ gulp.task('sass', () => {
}))
.pipe(cssmin())
.pipe(rename((path)=> {
- path.basename = 'open-accessability.min';
+ path.basename = 'open-accessibility.min';
}))
.pipe(gulp.dest('./dist'));
});
diff --git a/index.html b/index.html
index 964af56..0449a8c 100644
--- a/index.html
+++ b/index.html
@@ -14,8 +14,8 @@
-
-
+
+
@@ -288,7 +288,7 @@
-
+
@@ -318,11 +318,11 @@
כל אחד יכול לתרום לקוד הפרוייקט ולהפוך אותו ליותר טוב. מצאת באג?
- דווח עליו כאן
+ דווח עליו כאן
; יש לך רעיון למימוש יותר טוב? זורם!!! אני מציע לך לעשות
- fork
+ fork
ולפנק ב
- Pull Request
+ Pull Request
diff --git a/package.json b/package.json
index aaccacf..bdba5b0 100644
--- a/package.json
+++ b/package.json
@@ -1,11 +1,11 @@
{
"name": "open-accessibility",
- "version": "0.0.2",
- "description": "Free accessability tools menu for website maintainers powered by jQuery",
- "main": "dist/open-accessability.min.js",
+ "version": "1.0.0",
+ "description": "Free accessibility tools menu for website maintainers powered by jQuery",
+ "main": "dist/open-accessibility.min.js",
"repository": {
"type": "git",
- "url": "https://github.com/jossef/open-accessability"
+ "url": "https://github.com/jossef/open-accessibility"
},
"keywords": [
"accessibility",
@@ -17,9 +17,9 @@
"author": "Jossef Harush",
"license": "Apache-2.0",
"bugs": {
- "url": "https://github.com/jossef/open-accessability/issues"
+ "url": "https://github.com/jossef/open-accessibility/issues"
},
- "homepage": "https://jossef.github.io/open-accessability/",
+ "homepage": "https://jossef.github.io/open-accessibility/",
"dependencies": {
"jquery": "*"
},
diff --git a/src/open-accessability.babel.js b/src/open-accessibility.babel.js
similarity index 100%
rename from src/open-accessability.babel.js
rename to src/open-accessibility.babel.js
diff --git a/src/templates/menu.html b/src/templates/menu.html
index 1ba2182..255bb92 100644
--- a/src/templates/menu.html
+++ b/src/templates/menu.html
@@ -53,7 +53,7 @@