Website Summary Files Commits Branches @commit @diff @stats
path: root / wp-content / themes / carmag / assets / src / scripts / scripts.js
diff options
context:
space:
mode:
Commitfb093e569036dcb0200afabdb29c83bc2db783d2 (patch)
Author
 metodiew <stanko@metodiew.com>
2020-07-15 10:10:01 +0300
Committer
 metodiew <stanko@metodiew.com>
2020-07-15 10:10:01 +0300
Files71ee31bf39565ea6cff7b88b312bf430cf66248b /wp-content/themes/carmag/assets/src/scripts/scripts.js
tues-interns-2020-feature/registration.tar
tues-interns-2020-feature/registration.tar.gz
tues-interns-2020-feature/registration.zip
Parentc09cfaaff21afdf1fa43aa81327611d3f848e7eb (diff)
Parent860e362739eee6867b6617320ec9eae81865140a (diff)
Sync feature/registration with the latest master feature/registration
1 files changed, 5 insertions, 1 deletions
-rw-r--r--wp-content/themes/carmag/assets/src/scripts/scripts.js6
diff --git a/wp-content/themes/carmag/assets/src/scripts/scripts.js b/wp-content/themes/carmag/assets/src/scripts/scripts.js
index 04e7d0d..1e5febd 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) => {