Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

readme improved

  • Loading branch information...
commit cc77db06f755a59eaf81576da858a0412e2778e9 1 parent d7b2afc
Pau Fracés authored January 18, 2013

Showing 1 changed file with 12 additions and 18 deletions. Show diff stats Hide diff stats

  1. 30  README.md
30  README.md
Source Rendered
@@ -2,35 +2,29 @@
2 2
 
3 3
 Split html in divs
4 4
 
5  
-**html-split** only depends on:
6  
-*   [jsLib](https://github.com/pfraces/jslib), a general purpose JavaScript
7  
-    micro-library
8  
-*   [DAL](https://github.com/pfraces/dal), a micro-library for dealing with the
9  
-    DOM
10  
-
11  
-Both has been created explicitly for this project, hence they limited set of
12  
-features, but can be used on its own offering a simple yet powerful toolset
13  
-
14 5
 # Example
15 6
 
16 7
 ```js
17  
-run = function () {
  8
+window.test = function () {
18 9
   var size = { width: '20em', height: '10em' }
19 10
     , tokens = split(dal('content').getHtml(), size)
20  
-    , original = dal().color({ bg: 'red', fg: 'white' }).size(size);
  11
+    , original = dal()
  12
+        .size(size)
  13
+        .class.add('token')
  14
+        .uncollapse();
21 15
     
22  
-  for (var i = 0; i < tokens.length; i++)
23  
-    dal('split').add(original.clone().html(tokens[tokens.length - (1 + i)]));
  16
+  for (var i = 0; i < tokens.length; i++) {
  17
+    dal('split')
  18
+      .add(original.clone().html(tokens[tokens.length - (1 + i)]));
  19
+  }
24 20
 }
25 21
 ```
26  
-See the complete example at the [examples](https://github.com/pfraces/html-split-examples) repo
27  
-
28  
-## Split it!
29  
-
30  
-Here they are! Splitted and inverted :)
  22
+Here they are! Splitted and inverted :D
31 23
 
32 24
 ![Split!](https://github.com/pfraces/html-split/raw/master/split.png)
33 25
 
  26
+See the complete example at the [examples](https://github.com/pfraces/html-split-examples) repo
  27
+
34 28
 # Install
35 29
 
36 30
     $ npm install html-split

0 notes on commit cc77db0

Please sign in to comment.
Something went wrong with that request. Please try again.