Getting and including the TouchSwipe plugin
Let's add TouchSwipe.js
to our plugins file:
- Go to the TouchSwipe GitHub repository at https://github.com/mattbryson/TouchSwipe-Jquery-Plugin.
- Download the repository.
- Find the
jquery.touchSwipe.min.js
file and copy the code. - Paste the plugin code into your
plugins.js
file in thejs
folder after the Bootstrap plugins. - Save the file.
Plugin added. Now let's initialize it.
Get Bootstrap Site Blueprints now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.