Commit c6ab0ae4 authored by Maxym Borodenko's avatar Maxym Borodenko

About Genesys" drop-down menu is constantly opens when user navigate to any page from this menu.

parent a98587c9
Pipeline #1870 canceled with stages
in 5 minutes and 59 seconds
......@@ -56,19 +56,19 @@
<content tag="javascript">
<script type="text/javascript">
window.onload = function() {
expandGroup ($(document).width());
expandGroup ();
};
$(document).ready(function () {
$('#about-li').addClass('active');
$('#about-a').addClass('active-group');
$('.humburger-btn').on('click', function () {
setTimeout(function() {
expandGroup ($(document).width());
expandGroup ();
}, 100);
});
});
function expandGroup (width) {
if (width < 1920) {
function expandGroup () {
if ($(".humburger-btn").is(":visible")) {
if(!$('#about-li').hasClass('open')) {
$('#about-li').addClass('open');
}
......@@ -77,7 +77,7 @@
}
}
$(window).resize(function() {
expandGroup ($(document).width());
expandGroup ();
});
</script>
</content>
......
......@@ -123,15 +123,15 @@
$('#repository-menu-item').find("a").first().addClass('active');
$('.humburger-btn').on('click', function () {
setTimeout(function() {
expandGroup ($(document).width());
expandGroup ();
}, 100);
});
});
$(window).resize(function() {
expandGroup ($(document).width());
expandGroup ();
});
function expandGroup (width) {
if (width < 1920) {
function expandGroup () {
if ($(".humburger-btn").is(":visible")) {
$('#repository-menu-item').addClass('open');
} else {
$('#repository-menu-item').removeClass('open');
......
......@@ -90,7 +90,7 @@
<content tag="javascript">
<script type="text/javascript">
window.onload = function() {
expandGroup ($(document).width());
expandGroup ();
};
$(document).ready(function () {
$('a[href="' + window.location.pathname + '"]').parent().addClass('active-link');
......@@ -98,15 +98,15 @@
$('#about-a').addClass('active-group');
$('.humburger-btn').on('click', function () {
setTimeout(function() {
expandGroup ($(document).width());
expandGroup ();
}, 100);
});
});
$(window).resize(function() {
expandGroup ($(document).width());
expandGroup ();
});
function expandGroup (width) {
if (width < 1920) {
function expandGroup () {
if ($(".humburger-btn").is(":visible")) {
if(!$('#about-li').hasClass('open')) {
$('#about-li').addClass('open');
}
......
......@@ -36,7 +36,7 @@
<content tag="javascript">
<script type="text/javascript">
window.onload = function() {
expandGroup ($(document).width());
expandGroup ();
};
$(document).ready(function () {
$('a[href="' + window.location.pathname + '"]').parent().addClass('active-link');
......@@ -44,15 +44,15 @@
$('#about-a').addClass('active-group');
$('.humburger-btn').on('click', function () {
setTimeout(function() {
expandGroup ($(document).width());
expandGroup ();
}, 100);
});
});
$(window).resize(function() {
expandGroup ($(document).width());
expandGroup ();
});
function expandGroup (width) {
if (width < 1920) {
function expandGroup () {
if ($(".humburger-btn").is(":visible")) {
if(!$('#about-li').hasClass('open')) {
$('#about-li').addClass('open');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment