<commit_before>linkem.js
=========
A jQuery plugin for easy replication of DOM text.

What?
-----
`linkem` lets you easily link DOM elements to an input element, for
real-time replication of text across your page. As a user is typing text
into an input field, or selecting from a drop-down menu, that text can
be shown immediately wherever you like.

How?
----
Source jQuery and `linkem`:
```diff
 <!DOCTYPE html>
 <html>
   <head>
+    <script
+      src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">
+    </script>
+    <script src="jquery.linkem.js"></script>
   </head>
   <body>
   </body>
 </html>
```

Create an input element and as many empty divs as you want, all with the
same `class` attribute:
```diff
 <!DOCTYPE html>
 <html>
   <head>
     <script
       src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">
     </script>
     <script src="jquery.linkem.js"></script>
   </head>
   <body>
+    <input class="linkables" />
+    <div class="linkables"></div>
   </body>
 </html>
```

Use jQuery to call `.linkem()` on the class:
```diff
 <!DOCTYPE html>
 <html>
   <head>
     <script
       src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">
     </script>
     <script src="jquery.linkem.js"></script>
   </head>
   <body>
     <input class="linkables" />
     <div class="linkables"></div>
+    <script>$(".linkables").linkem()</script>
   </body>
 </html>
```

Type away and watch your input instantly replicate!<commit_msg>Update the README with the demo site and install instructions<commit_after>linkem.js
=========
A jQuery plugin for easy replication of DOM text.

What?
-----
`linkem` lets you easily link DOM elements to an input element, for
real-time replication of text across your page. As a user is typing text
into an input field, or selecting from a drop-down menu, that text can
be shown immediately wherever you like.

Show me!
-------
Go to [the demo site][demo] for a live example of the plugin in action.

How?
----

Install it:
```shell
$ cd path/to/my/js
$ wget https://raw.github.com/mybuddymichael/jquery-linkem/master/jquery.linkem.js
```
Or you can go [directly to the code][raw] and copy and paste it into a file
called `jquery.linkem.js` wherever your JavaScript files live.

Then source jQuery and `linkem`:
```diff
 <!DOCTYPE html>
 <html>
   <head>
+    <script
+      src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">
+    </script>
+    <script src="jquery.linkem.js"></script>
   </head>
   <body>
   </body>
 </html>
```

Create an input element and as many empty divs as you want, all with the
same `class` attribute:
```diff
 <!DOCTYPE html>
 <html>
   <head>
     <script
       src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">
     </script>
     <script src="jquery.linkem.js"></script>
   </head>
   <body>
+    <input class="linkables" />
+    <div class="linkables"></div>
   </body>
 </html>
```

Use jQuery to call `.linkem()` on the class:
```diff
 <!DOCTYPE html>
 <html>
   <head>
     <script
       src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">
     </script>
     <script src="jquery.linkem.js"></script>
   </head>
   <body>
     <input class="linkables" />
     <div class="linkables"></div>
+    <script>$(".linkables").linkem()</script>
   </body>
 </html>
```

Type away and watch your input instantly replicate!


[demo]: http://mybuddymichael.github.com/jquery-linkem/
[raw]: https://raw.github.com/mybuddymichael/jquery-linkem/master/jquery.linkem.js
{'fraction_non_alphanumeric': 0.16919617762788083, 'fraction_numerical': 0.00505902192242833, 'mean_word_length': 3.18213866039953, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6900554', 'n_tokens_mistral': 1235, 'n_tokens_neox': 1173, 'n_words': 349}