I want to include both these JS libraries in my code and have them run simultaneously.
http://st3ph.github.io/jquery.easyPaginate/ https://lokeshdhakar.com/projects/lightbox2/
Both websites give information on how to use the libraries.
I tried setting up both libraries, but could only get one to run at a time.
This is the code I've included at the bottom of my index.php page below (index.php is the only page where I want to use both libraries) -
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="lightbox.js"></script>
<script src="jquery.easyPaginate.js"></script>
<script>
$('#easyPaginate').easyPaginate({
paginateElement: 'img',
elementsPerPage: 8,
effect: 'climb'
});
</script>
With this code, only the lightbox library works. If I were to move the lightbox script to the very bottom, then only the easyPaginate library would work.
How do I get both libraries to work simultaneously? Is that even possible?
My code - read below the "read from here" comment. https://pastebin.com/m0jA9QYp
I have called the jquery scripts in the head.