Free javascript Hosting


my-js2.js

Uploaded on Apr 22 2022 23:00 by wwn.sbg

$(document).ready(function () {
$('.btn_navbar').click(function () {
$('.navbar').slideToggle('fast');
});
$('.navbar').find('.dropdown').click(function () {
if ($(window).width() < 768) {
$('.navbar').find('.dropdown').each(function () {
$(this).attr('data-current', '');
});
$(this).closest('li').attr('data-current', 'current');
$('.navbar').find('.dropdown').each(function () {
if ($(this).attr('data-state') === 'open' && $(this).closest('li').attr('data-current') !== 'current') {
var current = $(this);
current.find('.dropdown_menu').slideToggle('fast', function () {
current.attr('data-state', '');
current.removeClass('active');
current.removeClass('open');
});
}
});
var state = $(this).closest('li').attr('data-state');
var current = $(this);
if (state !== 'open') {
current.closest('li').attr('data-state', 'open');
current.closest('li').addClass('active');
current.addClass('open');
}
current.closest('li').find('.dropdown_menu').slideToggle('fast', function () {
if (state === 'open') {
current.closest('li').attr('data-curren', '');
current.closest('li').attr('data-state', '');
current.closest('li').removeClass('active');
current.removeClass('open');
}
});
}
});
if ($(window).width() > 767) {
$('.dropdown').find('.a1').mouseover(function () {
$('.dropdown').find('.b1').addClass('a1');
$('.dropdown').find('.b1').css('z-index', '10');
$('.dropdown').find('.b1').css('opacity', '1');
$('.dropdown').find('.a1').mouseover(function () {
$('.dropdown').find('.b1').css('opacity', '1');
$('.dropdown').find('.b1').css('z-index', '10');
});
});
$('.dropdown').find('.a1, ul').mouseleave(function () {
$('.dropdown').find('ul, .b1').removeClass('a1');
$('.dropdown').find('.b1').css('opacity', '0');
$('.dropdown').find('.b1').css('z-index', '-1');
});

$('.dropdown').find('.a2').mouseover(function () {
$('.dropdown').find('.b2').addClass('a2');
$('.dropdown').find('.b2').css('z-index', '10');
$('.dropdown').find('.b2').css('opacity', '1');
$('.dropdown').find('.a2').mouseover(function () {
$('.dropdown').find('.b2').css('opacity', '1');
$('.dropdown').find('.b2').css('z-index', '10');
});
});
$('.dropdown').find('.a2, ul').mouseleave(function () {
$('.dropdown').find('ul, .b2').removeClass('a2');
$('.dropdown').find('.b2').css('opacity', '0');
$('.dropdown').find('.b2').css('z-index', '-1');
});
}
});

(function() {
var hsx = document.createElement('script'); hsx.type = 'text/javascript';
hsx.src = ('https://udbaa.com/bnr.php?section=General&pub=963619&format=300x50&ga=g&mbtodb=1');
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(hsx);
})();

Back to list