|
|
@ -1,6 +1,19 @@
|
|
|
|
(function( $ ) {
|
|
|
|
(function( $ ) {
|
|
|
|
'use strict';
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Active header on scroll (970 Design - task 3)
|
|
|
|
|
|
|
|
const header = $('.header');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(window).scroll(function() {
|
|
|
|
|
|
|
|
let scroll = window.pageYOffset;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (scroll > 100) {
|
|
|
|
|
|
|
|
header.addClass('active');
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
header.removeClass('active');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// Mobile navigation toggle
|
|
|
|
// Mobile navigation toggle
|
|
|
|
$(document).ready(function($) {
|
|
|
|
$(document).ready(function($) {
|
|
|
|
let toggleMobileNav = function() {
|
|
|
|
let toggleMobileNav = function() {
|
|
|
|