Touch-Splitter-jQuery
A high performance html splitter compatible with touch events
Install via npm
npm install touch-splitter-jquery
You can then use the compiled javascript and css in your client resources.
./node_modules/touch-splitter-jquery/src/jquery.touchsplitter.js
./node_modules/touch-splitter-jquery/src/touchsplitter.css
Demos
Basic Demo Page
This is our basic page that is pictured above. You can see the source in the index.html file.
Quick Test CoffeeScript
Basic ide that uses two different splitters, one vertical splitter, then a horizontal splitter that divides the source from the compiled javascript.
Example Setup
It is highly recommended that your splitter container has a relative, absolute, or fixed position
Basic Demo Left Side Right Side
Teardown
To teardown a touch splitter you can use any of the following methods
var splitted = // Destroy splitter without removing either first or second elementsplittedtouchSplitter; // Destroy splitter and remove top or left elementsplittedtouchSplitter; // Destroy splitter and remove bottom or right elementsplittedtouchSplitter; // Destroy splitter and remove all elementssplittedtouchSplitter; typeof splittedtouchSplitter === 'undefined' // true