'frefresh'
This commit is contained in:
parent
48ba0eb966
commit
4cba03dec5
|
@ -465,6 +465,25 @@
|
||||||
// $('.header-buttom').appendTo($('.dropdowns'));
|
// $('.header-buttom').appendTo($('.dropdowns'));
|
||||||
// }
|
// }
|
||||||
function forFreeGo() {
|
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
|
||||||
$('h1').each(function() {
|
$('h1').each(function() {
|
||||||
if ($(this).text().trim() === '') {
|
if ($(this).text().trim() === '') {
|
||||||
|
|
Loading…
Reference in New Issue