Add a pagination partial
This commit is contained in:
24
docs/theme/Mono v10.0.1 HTML5/Documentation/assets/js/functions.js
vendored
Normal file
24
docs/theme/Mono v10.0.1 HTML5/Documentation/assets/js/functions.js
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
$(function() {
|
||||
|
||||
"use strict";
|
||||
|
||||
/*===============================================
|
||||
Scroll Spy
|
||||
===============================================*/
|
||||
$('body').scrollspy({
|
||||
target: '.nav',
|
||||
offset: 50
|
||||
});
|
||||
|
||||
/*===============================================
|
||||
Smooth Scrolling
|
||||
===============================================*/
|
||||
var htmlBody = $("html,body");
|
||||
var smoothLinks = $(".nav-link");
|
||||
|
||||
smoothLinks.on("click", function(e) {
|
||||
htmlBody.animate({scrollTop: $(this.hash).offset().top - 50}, 700, "easeInOutQuart");
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user