'frefresh'

This commit is contained in:
kenlee 2025-03-24 17:57:36 +08:00
parent 48ba0eb966
commit 4cba03dec5
1 changed files with 19 additions and 0 deletions

View File

@ -465,6 +465,25 @@
// $('.header-buttom').appendTo($('.dropdowns'));
// }
function forFreeGo() {
if (document.documentElement.lang === 'zh_tw') {
document.documentElement.lang = 'zh-Hant';
}
//tab鍵按下
$(document).on('keydown', function(e) {
if (e.key === "Tab" || e.keyCode === 9) {
$('.header-nav, .dropdowns').css('display', 'block');
}
});
//li被hover
$('li').hover(
function() {
$(this).children('ul').addClass('show');
},
function() {
$(this).children('ul').removeClass('show');
}
);
//刪除空的h1
$('h1').each(function() {
if ($(this).text().trim() === '') {