Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix overflow problem + Version 0.1.3 + Fix MakeFile problem

  • Loading branch information...
commit 47e488d8d4d8c1a09fc7be41916e590523257249 1 parent 97845d1
@afshinm afshinm authored
View
2  Makefile
@@ -1,6 +1,6 @@
BASE = .
build:
- cd build && node build.js
+ cd build && node build.js
.PHONY: build
View
2  minified/widearea.min.css
@@ -1 +1 @@
-.widearea-overlayLayer{position:fixed;top:0;bottom:0;left:0;right:0;z-index:999998;-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;-ms-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out}.widearea-overlayLayer.light{background-color:#fff}.widearea-overlayLayer textarea{-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;-ms-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out}.widearea-overlayLayer.light textarea{color:#ccc;background-color:#fff}.widearea-overlayLayer.light textarea:hover,.widearea-overlayLayer.light textarea:focus{color:black}.widearea-overlayLayer.dark{background-color:#2f3030}.widearea-overlayLayer.dark textarea{color:#999;background-color:#2f3030}.widearea-overlayLayer.dark textarea:hover,.widearea-overlayLayer.dark textarea:focus{color:#eee}.widearea-wrapper{position:relative}.widearea-wrapper textarea{padding-right:20px}textarea.widearea-fullscreen{padding:20px;padding-top:30px;border:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-width:900px;height:100%;margin:0 auto;display:block;font-size:20px;box-shadow:none;resize:none;line-height:1.6em}.widearea-controlPanel{position:absolute;right:0;top:0;padding-top:30px;padding-right:20px}.widearea-icons{width:16px;height:16px;position:absolute;top:0;right:0;padding-top:5px;padding-right:5px}.widearea-icon{height:16px;width:16px;-ms-filter:"alpha(opacity=50)";filter:alpha(opacity=50);-khtml-opacity:.5;opacity:.5;display:block;-webkit-transition:all .1s ease-out;-moz-transition:all .1s ease-out;-ms-transition:all .1s ease-out;-o-transition:all .1s ease-out;transition:all .1s ease-out}.widearea-icon:hover{-ms-filter:"alpha(opacity=100)";filter:alpha(opacity=100);-khtml-opacity:1;opacity:1}.widearea-icon.fullscreen{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpDNjVFRDY3OUI3MTAxMUUyQjA3QkQ4Nzg0REMzNTFCNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpDNjVFRDY3QUI3MTAxMUUyQjA3QkQ4Nzg0REMzNTFCNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkM2NUVENjc3QjcxMDExRTJCMDdCRDg3ODREQzM1MUI3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkM2NUVENjc4QjcxMDExRTJCMDdCRDg3ODREQzM1MUI3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+INk8jQAAAORJREFUeNqs070KwjAUBeCr6CCCu6C4CHUqOnXooLPPoB36aNbRxUW6qW8gfYCW4iB0EQRxrCdwCiHWxRj4SEhu/tobEZEMSk0s30tsxGYNNrZwgCvkrOvKEEasl7CqFljAGabQhT70IOLENTzgBk+4wBxOoi3gGsdTk9sUGWMu56i27GACvhagdnO0ozvsq8Z9ztnp9ws4+GJdwJgKYyyo+0AhbMCDOwNzKtnnMSasW6CjtQeQakdO2fcR25Q/Fusr/PwRrX+jVSK1uIPqTGBmpHJVjrDXUjlhKov1YxLb5/wWYADvoXd4CZG5iQAAAABJRU5ErkJggg==)}.widearea-icon.close{width:18px;height:18px;margin-bottom:15px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJk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QzM1MUI3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkRCRDVCN0MyQjczODExRTJCMDdCRDg3ODREQzM1MUI3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+AzMsvAAAATRJREFUeNpibJq8jAEHcABibSDmB+L/QPwBiK8D8QFkRbU5kWCaBYsBUUBcAMSmOCw4CsTTgBjFBUxIbGYgngrES6GGnAfiaiiNDKyhaqYiOwTZIJAtWUD8CYhTgdgIiNuA+B4Ol2VBDUMxKBCI04D4NxC7AfEcJA1sDLhBWvOU5cEwg9iBuBPJlpMMpIF6oGHsTNDwUIV6YQ4D6UAXZAbIIGOowAoG8oEByCA+KOcJBQYJMTFQB3AwQaMbBGQoMOgpyKCzUE4EBQZdBBl0GohvA7ESEKeQYchlkBkgg34CcTlS6jYn0aBGYMb9CQvs9UA8C4hZgXgXmst+4TFkFtCQteh5LQvqIlBymA3E54C4CuplbACkNhvGQS5G/kIljiIVI4bEFiPYyqNlUExUwQYDAAEGANGJQntFVY0xAAAAAElFTkSuQmCC)}
+.widearea-overlayLayer{position:fixed;top:0;bottom:0;left:0;right:0;z-index:999998;-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;-ms-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out}.widearea-overlayLayer.light{background-color:#fff}.widearea-overlayLayer textarea{-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;-ms-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out}.widearea-overlayLayer.light textarea{color:#ccc;background-color:#fff}.widearea-overlayLayer.light textarea:hover,.widearea-overlayLayer.light textarea:focus{color:black}.widearea-overlayLayer.dark{background-color:#2f3030}.widearea-overlayLayer.dark textarea{color:#999;background-color:#2f3030}.widearea-overlayLayer.dark textarea:hover,.widearea-overlayLayer.dark textarea:focus{color:#eee}.widearea-wrapper{position:relative}.widearea-wrapper textarea{padding-right:20px !important;-webkit-box-sizing:border-box !important;-moz-box-sizing:border-box !important;box-sizing:border-box !important}textarea.widearea-fullscreen{padding:20px !important;padding-top:30px !important;border:none !important;-webkit-box-sizing:border-box !important;-moz-box-sizing:border-box !important;box-sizing:border-box !important;max-width:900px !important;height:100% !important;width:100% !important;outline:none !important;margin:0 auto !important;display:block !important;font-size:20px !important;box-shadow:none !important;resize:none !important;line-height:1.6em !important}.widearea-controlPanel{position:absolute;right:0;top:0;padding-top:30px;padding-right:20px}.widearea-icons{width:16px;height:16px;position:absolute;top:0;right:0;padding-top:6px;padding-right:5px}.widearea-icon{height:16px;width:17px;background-repeat:no-repeat;-ms-filter:"alpha(opacity=50)";filter:alpha(opacity=50);-khtml-opacity:.5;opacity:.5;display:block;-webkit-transition:all .1s ease-out;-moz-transition:all .1s ease-out;-ms-transition:all .1s ease-out;-o-transition:all .1s ease-out;transition:all .1s ease-out}.widearea-icon:hover{-ms-filter:"alpha(opacity=100)";filter:alpha(opacity=100);-khtml-opacity:1;opacity:1}.widearea-icon.fullscreen{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbi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lUExUwQYDAAEGANGJQntFVY0xAAAAAElFTkSuQmCC)}
View
15 minified/widearea.min.js
@@ -1,7 +1,8 @@
-(function(g,b){"object"===typeof exports?b(exports):"function"===typeof define&&define.amd?define(["exports"],b):b(g)})(this,function(g){function b(a){this._targetElement=a;this._options={wideAreaAttr:"data-widearea",exitOnEsc:!0,defaultColorScheme:"light",closeIconLabel:"Close WideArea",changeThemeIconLabel:"Toggle Color Scheme",fullScreenIconLabel:"WideArea Mode"};var f=this;a=this._targetElement.querySelectorAll("textarea["+this._options.wideAreaAttr+"='enable']");for(var c=function(){m.call(f,
-this)},d=a.length-1;0<=d;d--){var e=a[d],h=document.createElement("div"),j=document.createElement("div"),b=document.createElement("a");h.className="widearea-wrapper";j.className="widearea-icons";b.className="widearea-icon fullscreen";b.title=this._options.fullScreenIconLabel;b.href="javascript:void(0);";b.onclick=c;var g=e.cloneNode();g.value=e.value;h.appendChild(g);j.appendChild(b);h.appendChild(j);e.parentNode.replaceChild(h,e)}}function m(a){var f=this;a=a.parentNode.parentNode.querySelector("textarea");
-var c=a.cloneNode();c.className=("widearea-fullscreen "+a.className).trim();a.className=("widearea-fullscreened "+a.className).trim();var d=document.createElement("div");d.className="widearea-controlPanel";var e=document.createElement("a");e.href="javascript:void(0);";e.className="widearea-icon close";e.title=this._options.closeIconLabel;e.onclick=function(){l.call(f)};var b=document.createElement("a");b.href="javascript:void(0);";b.className="widearea-icon changeTheme";b.title=this._options.changeThemeIconLabel;
-b.onclick=function(){n.call(f)};d.appendChild(e);d.appendChild(b);e=document.createElement("div");e.className="widearea-overlayLayer "+this._options.defaultColorScheme;e.appendChild(c);e.appendChild(d);document.body.appendChild(e);c.focus();c.value=a.value;this._onKeyDown=function(a){27===a.keyCode&&f._options.exitOnEsc&&l.call(f);9==a.keyCode&&(a.preventDefault(),a=c.selectionStart,c.value=c.value.substring(0,a)+"\t"+c.value.substring(c.selectionEnd),c.selectionEnd=a+1)};window.addEventListener?
-window.addEventListener("keydown",f._onKeyDown,!0):document.attachEvent&&document.attachEvent("onkeydown",f._onKeyDown)}function n(){var a=document.querySelector(".widearea-overlayLayer");a.className=/dark/gi.test(a.className)?a.className.replace("dark","light"):a.className.replace("light","dark")}function l(){var a=document.querySelector("textarea.widearea-fullscreened"),b=document.querySelector(".widearea-overlayLayer"),c=b.querySelector("textarea");a.focus();a.value=c.value;a.className=a.className.replace("widearea-fullscreened ",
-"");b.parentNode.removeChild(b);window.removeEventListener?window.removeEventListener("keydown",this._onKeyDown,!0):document.detachEvent&&document.detachEvent("onkeydown",this._onKeyDown)}var k=function(a){if("string"===typeof a){if(a=document.querySelector(a))return new b(a);throw Error("There is no element with given selector.");}return new b(document.body)};k.version="0.1.1";k.fn=b.prototype={clone:function(){return new b(this)},setOption:function(a,b){this._options[a]=b;return this},setOptions:function(a){var b=
-this._options,c={},d;for(d in b)c[d]=b[d];for(d in a)c[d]=a[d];this._options=c;return this}};return g.wideArea=k});
+(function(g,b){"object"===typeof exports?b(exports):"function"===typeof define&&define.amd?define(["exports"],b):b(g)})(this,function(g){function b(a){this._targetElement=a;this._options={wideAreaAttr:"data-widearea",exitOnEsc:!0,defaultColorScheme:"light",closeIconLabel:"Close WideArea",changeThemeIconLabel:"Toggle Color Scheme",fullScreenIconLabel:"WideArea Mode"};var f=this;a=this._targetElement.querySelectorAll("textarea["+this._options.wideAreaAttr+"='enable']");for(var c=function(){n.call(f,
+this)},e=a.length-1;0<=e;e--){var d=a[e],h=document.createElement("div"),k=document.createElement("div"),b=document.createElement("a");h.className="widearea-wrapper";k.className="widearea-icons";b.className="widearea-icon fullscreen";b.title=this._options.fullScreenIconLabel;h.style.width=parseInt(j(d,"width"))+"px";h.style.height=j(d,"height");d.style.width=j(d,"width");d.style.height=j(d,"height");b.href="javascript:void(0);";b.onclick=c;var g=d.cloneNode();g.value=d.value;h.appendChild(g);k.appendChild(b);
+h.appendChild(k);d.parentNode.replaceChild(h,d)}}function j(a,f){var c="";a.currentStyle?c=a.currentStyle[f]:document.defaultView&&document.defaultView.getComputedStyle&&(c=document.defaultView.getComputedStyle(a,null).getPropertyValue(f));return c.toLowerCase?c.toLowerCase():c}function n(a){var f=this;a=a.parentNode.parentNode.querySelector("textarea");var c=a.cloneNode();c.className=("widearea-fullscreen "+a.className).replace(/^\s+|\s+$/g,"");a.className=("widearea-fullscreened "+a.className).replace(/^\s+|\s+$/g,
+"");var e=document.createElement("div");e.className="widearea-controlPanel";var d=document.createElement("a");d.href="javascript:void(0);";d.className="widearea-icon close";d.title=this._options.closeIconLabel;d.onclick=function(){m.call(f)};var b=document.createElement("a");b.href="javascript:void(0);";b.className="widearea-icon changeTheme";b.title=this._options.changeThemeIconLabel;b.onclick=function(){p.call(f)};e.appendChild(d);e.appendChild(b);d=document.createElement("div");d.className="widearea-overlayLayer "+
+this._options.defaultColorScheme;d.appendChild(c);d.appendChild(e);document.body.appendChild(d);c.focus();c.value=a.value;this._onKeyDown=function(a){27===a.keyCode&&f._options.exitOnEsc&&m.call(f);9==a.keyCode&&(a.preventDefault(),a=c.selectionStart,c.value=c.value.substring(0,a)+"\t"+c.value.substring(c.selectionEnd),c.selectionEnd=a+1)};window.addEventListener?window.addEventListener("keydown",f._onKeyDown,!0):document.attachEvent&&document.attachEvent("onkeydown",f._onKeyDown)}function p(){var a=
+document.querySelector(".widearea-overlayLayer");a.className=/dark/gi.test(a.className)?a.className.replace("dark","light"):a.className.replace("light","dark")}function m(){var a=document.querySelector("textarea.widearea-fullscreened"),b=document.querySelector(".widearea-overlayLayer"),c=b.querySelector("textarea");a.focus();a.value=c.value;a.className=a.className.replace(/widearea-fullscreened/gi,"");b.parentNode.removeChild(b);window.removeEventListener?window.removeEventListener("keydown",this._onKeyDown,
+!0):document.detachEvent&&document.detachEvent("onkeydown",this._onKeyDown)}var l=function(a){if("string"===typeof a){if(a=document.querySelector(a))return new b(a);throw Error("There is no element with given selector.");}return new b(document.body)};l.version="0.1.3";l.fn=b.prototype={clone:function(){return new b(this)},setOption:function(a,b){this._options[a]=b;return this},setOptions:function(a){var b=this._options,c={},e;for(e in b)c[e]=b[e];for(e in a)c[e]=a[e];this._options=c;return this}};
+return g.wideArea=l});
View
2  package.json
@@ -1,7 +1,7 @@
{
"name": "WideArea",
"description": "Create expandable textarea and write large amount of text easily.",
- "version": "0.1.2",
+ "version": "0.1.3",
"author": "Afshin Mehrabani <afshin.meh@gmail.com>",
"repository": {
"type": "git",
View
5 widearea.js
@@ -1,5 +1,5 @@
/**
- * WideArea v0.1.2
+ * WideArea v0.1.3
* https://github.com/usablica/widearea
* MIT licensed
*
@@ -19,7 +19,7 @@
}
} (this, function (exports) {
//Default config/variables
- var VERSION = '0.1.2';
+ var VERSION = '0.1.3';
/**
* WideArea main class
@@ -82,6 +82,7 @@
//bind to click event
fullscreenIcon.onclick = fullscreenIconClickHandler;
+
//clone current textarea
var newTextArea = currentTextArea.cloneNode();
newTextArea.value = currentTextArea.value;
Please sign in to comment.
Something went wrong with that request. Please try again.