Skip to content

Commit

Permalink
Updated readme and JS map, fixed a bug and changed the example link.
Browse files Browse the repository at this point in the history
  • Loading branch information
pgooch committed Sep 22, 2017
1 parent ce0728f commit 661aeaf
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,2 +1,3 @@
.idea
*.iml
*.iml
*.codekit3
5 changes: 0 additions & 5 deletions index.html
Expand Up @@ -110,10 +110,5 @@ <h1>jQuery linenumbers plugin</h1>
<p>You'll need to give your text area a set width, or the two line numbers won't line up right with the text, this has been tested as a px value, but percents should be ok in any format as long as the col_width is the same. Other than that it should work just fine. Internet Explorer has not been fully tested (due to the lack of a machine that can run it) but should work.</p>
<h2><a href="https://github.com/drakonoved/line-numbers/archive/master.zip" target="_blank">Download</a></h2>
<h3>version 1.0.2 &mdash; Sep 17, 2017 &mdash; 4.80kb</h3>
<p>Version History</p>
<ul>
<li><b>1.0.2</b> <em>Sep 17th 2017</em> Bug fixing.</li>
<li><b>1.0.0</b> <em>May 27th 2012</em> Initial release.</li>
</ul>
</body>
</html>
2 changes: 2 additions & 0 deletions jquery-linenumbers.js
Expand Up @@ -18,6 +18,8 @@
$(this).before('<textarea data-name="linenumbers" style="width:'+new_textarea_width+'px;height:'+textarea_height+'px;float:left;margin-right:'+'-'+new_textarea_width+'px;white-space:pre;overflow:hidden;" disabled="disabled"></textarea>');
// Edit the existing textarea's styles
$(this).css({'width':new_textarea_width+'px','height':textarea_height+'px','float':'right'});
// Add a clearing div.
$(this).after('<div style="clear:both;"></div>');
// Define a simple variable for the line-numbers box
var lnbox = $(this).parent().find('textarea[disabled="disabled"]');
// Bind some actions to all sorts of events that may change it's contents
Expand Down
4 changes: 2 additions & 2 deletions jquery-linenumbers.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions jquery-linenumbers.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion readme.md
@@ -1,7 +1,7 @@
jQueryLineNumbersPlugin
=======================

This jQuery plugin will take any normal text area and give it line numbers. See the [example](https://drakonoved.github.io/line-numbers/) for more infromation
This jQuery plugin will take any normal text area and give it line numbers. See the [example](http://pgooch.github.io/jQueryLinenNumbersPlugin/) for more infromation

Usage
-----
Expand Down Expand Up @@ -34,5 +34,6 @@ This plugin has been realsed under the GNU General Public License v3.0.

Version History
---------------
+ 1.1.- • Sep 17th 2017 - _Updated example link, fixed a bug that would cause text after the box to appear over the line-numbers box, added minified JS map, remvoed version numbers from example page._
+ 1.0.2 • Sep 17th 2017 - _Bug fixing._
+ 1.0.0 • May 27th 2012 - _Initial release._

0 comments on commit 661aeaf

Please sign in to comment.