helpcenter/Web/js/help/menuselector.js

27 lines
1.3 KiB
JavaScript
Raw Normal View History

2018-07-13 12:35:52 +00:00
$(document).ready(function() {
2020-07-28 09:02:57 +00:00
$(".menuleft a, .bottommenu a").each(function (e) {
2018-07-13 12:35:52 +00:00
var t = window.location.href.replace(window.location.hash, "").toLowerCase();
this.href.trim().toLowerCase() == t ? $(this).addClass("selected") : $(this).removeClass("selected")
2020-07-28 09:02:57 +00:00
});
2018-07-13 12:35:52 +00:00
function e() {
n = window.innerWidth, l > n ? location.reload(!0) : n > l ? location.reload(!0) : n = l
2020-07-28 09:02:57 +00:00
};
var t, n = window.innerWidth,
2020-12-01 13:46:41 +00:00
l = 1190;
2018-07-13 12:35:52 +00:00
$(window).resize(function() {
var i = window.innerWidth;
2018-07-13 12:35:52 +00:00
clearTimeout(t), (n > l && l > i || l > n && i > l) && (t = setTimeout(e, 100))
})
2020-12-01 13:46:41 +00:00
}), window.innerWidth <= 1190 && ($(document).ready(function() {
2018-07-13 12:35:52 +00:00
var e = $(".menuleft").actual("height");
$(".menuleft").height(e).jScrollPane(), $(".mobile_table_contents").on("click", function() {
$(".menuleft").slideDown("fast"), $(".search_line").show(), $(".MainHelpCenter, header, footer").one("click", function() {
$(".menuleft").slideUp("fast"), $(".search_line").hide()
})
}), $(".menuleft a").each(function(e) {
2018-07-13 12:35:52 +00:00
if ("700" == $(this).css("font-weight") || "bold" == $(this).css("font-weight")) {
var t = $(this).text();
return $("div.mobile_table_contents span").text(t), !1
2016-08-29 13:51:20 +00:00
}
2018-07-13 12:35:52 +00:00
})
}));