Commit 18fc411e authored by Matija Obreza's avatar Matija Obreza
Browse files

Merge branch...

Merge branch '115-about-genesys-drop-down-menu-is-constantly-opens-when-user-navigate-to-any-page-from-this-menu' into 'master'

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

Closes #115

See merge request !39
parents a98587c9 c6ab0ae4
......@@ -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