replace all mt- to sad-
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
jQuery(document).ready(function($) {
|
||||
jQuery(document).ready(function($) {
|
||||
|
||||
"use strict";
|
||||
|
||||
@ -26,10 +26,10 @@ jQuery(document).ready(function($) {
|
||||
/**
|
||||
* Header Search script
|
||||
*/
|
||||
const $searchIcon = $('.mt-menu-search .mt-search-icon');
|
||||
const $searchIcon = $('.sad-menu-search .sad-search-icon');
|
||||
$searchIcon.click(function() {
|
||||
$('.mt-form-wrap').toggleClass('search-activate').find('.search-field').focus();
|
||||
const $element = $('.mt-form-wrap.search-activate');
|
||||
$('.sad-form-wrap').toggleClass('search-activate').find('.search-field').focus();
|
||||
const $element = $('.sad-form-wrap.search-activate');
|
||||
if ($element.length) {
|
||||
$(document).on('keydown', function(e) {
|
||||
const focusable = $element.find('input, button, [href], select, textarea, [tabindex]:not([tabindex="-1"])');
|
||||
@ -57,9 +57,9 @@ jQuery(document).ready(function($) {
|
||||
}
|
||||
}
|
||||
|
||||
$('.mt-form-wrap .mt-form-close').click(function() {
|
||||
$('.mt-form-wrap').toggleClass('search-activate');
|
||||
$(this).parents('.mt-menu-search').find('.mt-search-icon a').focus();
|
||||
$('.sad-form-wrap .sad-form-close').click(function() {
|
||||
$('.sad-form-wrap').toggleClass('search-activate');
|
||||
$(this).parents('.sad-menu-search').find('.sad-search-icon a').focus();
|
||||
});
|
||||
|
||||
/**
|
||||
@ -68,7 +68,7 @@ jQuery(document).ready(function($) {
|
||||
$(document).on('keydown', function(event) {
|
||||
if (event.keyCode === 27) {
|
||||
event.preventDefault();
|
||||
$('.mt-menu-search .mt-form-wrap').removeClass('search-activate');
|
||||
$('.sad-menu-search .sad-form-wrap').removeClass('search-activate');
|
||||
}
|
||||
});
|
||||
|
||||
@ -84,7 +84,7 @@ jQuery(document).ready(function($) {
|
||||
*/
|
||||
if (sophia_after_darkObject.menu_sticky === 'on') {
|
||||
const wpAdminBar = $('#wpadminbar').length ? $('#wpadminbar') : 0;
|
||||
$(".mt-social-menu-wrapper").sticky({
|
||||
$(".sad-social-menu-wrapper").sticky({
|
||||
topSpacing: wpAdminBar.length ? wpAdminBar.height() : 0
|
||||
});
|
||||
}
|
||||
@ -94,13 +94,13 @@ jQuery(document).ready(function($) {
|
||||
*/
|
||||
$(window).scroll(function() {
|
||||
if ($(this).scrollTop() > 1000) {
|
||||
$('#mt-scrollup').fadeIn('slow');
|
||||
$('#sad-scrollup').fadeIn('slow');
|
||||
} else {
|
||||
$('#mt-scrollup').fadeOut('slow');
|
||||
$('#sad-scrollup').fadeOut('slow');
|
||||
}
|
||||
});
|
||||
|
||||
$('#mt-scrollup').click(function() {
|
||||
$('#sad-scrollup').click(function() {
|
||||
$("html, body").animate({
|
||||
scrollTop: 0
|
||||
}, 600);
|
||||
@ -128,14 +128,14 @@ jQuery(document).ready(function($) {
|
||||
}
|
||||
|
||||
initializeSlider('.front-slider');
|
||||
initializeSlider('.mt-gallery-slider', false);
|
||||
initializeSlider('.sad-gallery-slider', false);
|
||||
|
||||
/**
|
||||
* Responsive menu
|
||||
*/
|
||||
$('.mt-social-menu-wrapper .menu-toggle').click(function() {
|
||||
$('.sad-social-menu-wrapper .menu-toggle').click(function() {
|
||||
$('#site-navigation').toggleClass('isActive').slideToggle('slow');
|
||||
const $element = $('.mt-header-menu-wrap');
|
||||
const $element = $('.sad-header-menu-wrap');
|
||||
if ($element.length) {
|
||||
$(document).on('keydown', function(e) {
|
||||
if ($('#site-navigation.isActive').length) {
|
||||
|
Reference in New Issue
Block a user