mirror of
				https://github.com/ZetaKebab/kesper.git
				synced 2025-11-04 08:09:49 +00:00 
			
		
		
		
	Added regular pagination option
Casper comes with infinite scrolling by default. This update makes it possible to go with the default pagination style when the <html> element has a class no-infinite-scroll.
This commit is contained in:
		@@ -14,6 +14,8 @@
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
(function (window, document) {
 | 
			
		||||
    if (document.documentElement.classList.contains('no-infinite-scroll')) return;
 | 
			
		||||
 | 
			
		||||
    // next link element
 | 
			
		||||
    var nextElement = document.querySelector('link[rel=next]');
 | 
			
		||||
    if (!nextElement) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user