git add .
git commit "create admin panel layout with header sidebar and footer"
This commit is contained in:
@@ -84,7 +84,7 @@
|
||||
};
|
||||
|
||||
/**
|
||||
* Check to see if user prefers reduced motion
|
||||
* Check to see if userController prefers reduced motion
|
||||
* @param {Object} settings Script settings
|
||||
*/
|
||||
var reduceMotion = function (settings) {
|
||||
@@ -389,7 +389,7 @@
|
||||
smoothScroll.animateScroll = function (anchor, toggle, options) {
|
||||
|
||||
// Local settings
|
||||
var animateSettings = extend(settings || defaults, options || {}); // Merge user options with defaults
|
||||
var animateSettings = extend(settings || defaults, options || {}); // Merge userController options with defaults
|
||||
|
||||
// Selectors and variables
|
||||
var isNum = Object.prototype.toString.call(anchor) === '[object Number]' ? true : false;
|
||||
@@ -483,7 +483,7 @@
|
||||
*/
|
||||
var clickHandler = function (event) {
|
||||
|
||||
// Don't run if the user prefers reduced motion
|
||||
// Don't run if the userController prefers reduced motion
|
||||
if (reduceMotion(settings)) return;
|
||||
|
||||
// Don't run if right-click or command/control + click
|
||||
@@ -586,7 +586,7 @@
|
||||
smoothScroll.destroy();
|
||||
|
||||
// Selectors and variables
|
||||
settings = extend(defaults, options || {}); // Merge user options with defaults
|
||||
settings = extend(defaults, options || {}); // Merge userController options with defaults
|
||||
fixedHeader = settings.header ? document.querySelector(settings.header) : null; // Get the fixed header
|
||||
headerHeight = getHeaderHeight(fixedHeader);
|
||||
|
||||
@@ -623,4 +623,4 @@
|
||||
|
||||
return SmoothScroll;
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user