simpleWordWrapper by Alexander Sharkov back to source
Example #1 (default call)
javascript code
HTML code
test test2 test3 test4 test5 test6
HTML Result, after the script have worked
test test2 test3
test4 test5 test6
Example with script and without it.
For clarity I displayed .simpleWordWrapper like blocks
Without script
test test2 test3 test4 test5 test6
With script
test test2 test3 test4 test5 test6
Example #2 (eachWord mode)
javascript code
HTML code
test test2 test3 test4 test5 test6
HTML Result, after the script have worked
test
test2
test3
test4
test5
test6
Example with script and without it.
For clarity I displayed .simpleWordWrapper like blocks
test test2 test3 test4 test5 test6
test test2 test3 test4 test5 test6
Example #3 (eachWord mode + dot'n return separator)
javascript code
HTML code
test test2 test3 test4 test5 test6
HTML Result, after the script have worked
test
test2
test3
test4
test5
test6
Example with script and without it.
For clarity I displayed .simpleWordWrapper like blocks
test test2 test3 test4 test5 test6
test test2 test3 test4 test5 test6
Example #4 (eachWord mode & change result separator)
javascript code
HTML code
test test2 test3 test4 test5 test6
HTML Result, after the script have worked
test -
test2 -
test3 -
test4 -
test5 -
test6
Example with script and without it.
For clarity I displayed .simpleWordWrapper like inline
test test2 test3 test4 test5 test6
test test2 test3 test4 test5 test6
Example #5 (eachWord mode + change result separator & add separator to last result item)
javascript code
HTML code
test test2 test3 test4 test5 test6
HTML Result, after the script have worked
test:
test2:
test3:
test4:
test5:
test6:
Example with script and without it.
For clarity I displayed .simpleWordWrapper like blocks
test test2 test3 test4 test5 test6
test test2 test3 test4 test5 test6