diff options
| Commit | 8afcd640327873a1c8bd6162785c050920566cf8 (patch) | |
|---|---|---|
| Author | 2020-07-15 09:33:12 +0300 | |
| Committer | 2020-07-15 09:33:12 +0300 | |
| Files | 7da1e3c64d1d115ceb51517b7931e4a7e6673178 /wp-content/themes/carmag/assets/src/scripts/scripts.js | |
| tues-interns-2020-feature/cookie-notice.tar tues-interns-2020-feature/cookie-notice.tar.gz tues-interns-2020-feature/cookie-notice.zip | ||
| Parent | 4d6f27167e27628c0a7ebc2b40eb01fd5b16597f (diff) | |
| Parent | 38f71eb84200aab19ae9f6e27102d05a10a6d0a1 (diff) | |
Sync feature/cookie-notice with the latest master and run Gulp for assets feature/cookie-notice
1 files changed, 5 insertions, 1 deletions
| -rw-r--r-- | wp-content/themes/carmag/assets/src/scripts/scripts.js | 6 |
diff --git a/wp-content/themes/carmag/assets/src/scripts/scripts.js b/wp-content/themes/carmag/assets/src/scripts/scripts.js index 93438c7..6394e2b 100644 --- a/wp-content/themes/carmag/assets/src/scripts/scripts.js +++ b/wp-content/themes/carmag/assets/src/scripts/scripts.js @@ -22,7 +22,7 @@ jQuery(document).ready(function ($) { const toggleDrawer = () => { const drawerClassList = event.target.classList; - const navClassList = document.querySelectorAll(".menu-primary-container")[0] + const navClassList = document.querySelectorAll(".menu-container")[0] .classList; drawerClassList.toggle("opened"); navClassList.toggle("opened"); @@ -31,9 +31,13 @@ const toggleDrawer = () => { const separator = document.createElement("span"); separator.className = "separator"; const loginLink = document.querySelectorAll(".login")[0]; +const profileDropdown = document.querySelectorAll(".profile")[0]; if (loginLink) { loginLink.before(separator); } +if (profileDropdown) { + profileDropdown.before(separator); +} const faqFields = document.querySelectorAll(".faq-field"); faqFields.forEach((field) => { |
