update code comments in scripts

This commit is contained in:
David Miller 2021-03-29 15:59:18 -04:00
parent 28f356391c
commit 0bcdad5961
2 changed files with 12 additions and 10 deletions

9
dist/js/scripts.js vendored
View File

@ -6,7 +6,7 @@
(function ($) {
"use strict"; // Start of use strict
// Smooth scrolling using jQuery easing
// Smooth scrolling using anime.js
$('a.js-scroll-trigger[href*="#"]:not([href="#"])').on('click', function () {
if (
location.pathname.replace(/^\//, "") ==
@ -14,9 +14,9 @@
location.hostname == this.hostname
) {
var target = $(this.hash);
target = target.length
? target
: $("[name=" + this.hash.slice(1) + "]");
target = target.length ?
target :
$("[name=" + this.hash.slice(1) + "]");
if (target.length) {
anime({
targets: 'html, body',
@ -52,4 +52,5 @@
navbarCollapse();
// Collapse the navbar when page is scrolled
$(window).on('scroll', navbarCollapse);
})(jQuery); // End of use strict

View File

@ -1,7 +1,7 @@
(function ($) {
"use strict"; // Start of use strict
// Smooth scrolling using jQuery easing
// Smooth scrolling using anime.js
$('a.js-scroll-trigger[href*="#"]:not([href="#"])').on('click', function () {
if (
location.pathname.replace(/^\//, "") ==
@ -9,9 +9,9 @@
location.hostname == this.hostname
) {
var target = $(this.hash);
target = target.length
? target
: $("[name=" + this.hash.slice(1) + "]");
target = target.length ?
target :
$("[name=" + this.hash.slice(1) + "]");
if (target.length) {
anime({
targets: 'html, body',
@ -47,4 +47,5 @@
navbarCollapse();
// Collapse the navbar when page is scrolled
$(window).on('scroll', navbarCollapse);
})(jQuery); // End of use strict