2016-08-29 13:51:20 +00:00
|
|
|
var LanguageSelectorManager = new function() {
|
2018-07-13 12:35:52 +00:00
|
|
|
var e = function() {
|
|
|
|
$("div.custom-select").hover(function() {
|
|
|
|
$(this).css("background", "none")
|
|
|
|
}, function() {
|
|
|
|
$(this).css("background", "none")
|
|
|
|
})
|
|
|
|
},
|
|
|
|
n = function() {
|
|
|
|
$("#LanguageSelector").hasClass("open") || ($("div.custom-select").unbind("mouseenter mouseleave"), $("div.custom-select").css("background", "none"), $("#LanguageSelector ul.options:first").slideDown(10, function() {
|
|
|
|
$("#LanguageSelector").addClass("open"), $(document).one("click", function() {
|
|
|
|
$("div.custom-select").css("background", "none"), e(), $("#LanguageSelector ul.options:first").hide(), $("#LanguageSelector").removeClass("open")
|
|
|
|
})
|
|
|
|
}))
|
|
|
|
};
|
2016-08-29 13:51:20 +00:00
|
|
|
return {
|
2018-07-13 12:35:52 +00:00
|
|
|
init: e,
|
|
|
|
openLngSelector: n
|
|
|
|
}
|
2020-12-08 14:22:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
var LanguageSelectorFooter = new function () {
|
|
|
|
var e = function () {
|
|
|
|
$("div.custom-select").hover(function () {
|
|
|
|
$(this).css("background", "none")
|
|
|
|
}, function () {
|
|
|
|
$(this).css("background", "none")
|
|
|
|
})
|
|
|
|
},
|
|
|
|
n = function () {
|
|
|
|
$(".footerLangSelector").hasClass("open") || ($("div.custom-select").unbind("mouseenter mouseleave"), $("div.custom-select").css("background", "none"), $(".footerLangSelector ul.options:first").slideDown(10, function () {
|
|
|
|
$(".footerLangSelector").addClass("open"), $(document).one("click", function () {
|
|
|
|
$("div.custom-select").css("background", "none"), e(), $(".footerLangSelector ul.options:first").hide(), $(".footerLangSelector").removeClass("open")
|
|
|
|
})
|
|
|
|
}))
|
|
|
|
};
|
|
|
|
return {
|
|
|
|
init: e,
|
|
|
|
openLngSelector: n
|
|
|
|
}
|
2016-08-29 13:51:20 +00:00
|
|
|
};
|