span').text('简体');
zh_tran('s')
}else if(localStorage.getItem('typeface') && localStorage.getItem('typeface')=='繁体'){
$('.typeface>span').text('繁体');
zh_tran('t')
}else{
$('.typeface>span').text('简体');
zh_tran('s')
}
/**
* 分级保护之修改密码 判断开始是否第一次进入 是弹出修改密码弹窗 start
*/
var passType = getHeaders().needchangepassword
var token = localStorage.getItem('JEECMS-Auth-Token');
if (token) {
if (passType === 'true') {
$('.mian-all').css('display',"block")
}
}
/**
* 分级保护之修改密码 判断开始是否第一次进入 是弹出修改密码弹窗 end
*/
})
$('.typeface .background a').on('click', function () {
$('.typeface>span').text('简体');
$(this).css('color', '#E30B20');
$('.typeface .background1 a').css('color', '#333');
localStorage.setItem('typeface','简体');
zh_tran('s')
});
$('.typeface .background1 a').on('click', function () {
$('.typeface>span').text('繁体');
$(this).css('color', '#E30B20');
$('.typeface .background a').css('color', '#333');
localStorage.setItem('typeface','繁体');
zh_tran('t')
});
function upSearch(keyword) {
var keyWords = keyword?encodeURI(keyword):''
var inpVal = encodeURI($('#headerKeyword').val())
var headerKeyword = keyWords||inpVal
window.open('/search.htm?keyword=' + headerKeyword);
}
$("#headerKeyword").keypress(function (e) {
if (e.which == 13) {
var headerKeyword = encodeURI($('#headerKeyword').val())
window.open('/search.htm?keyword=' + headerKeyword);
}
});
//简体繁体切换
$('.typeface').on('mouseenter', function () {
$('.typeface .iconfanhui-copy-copy-copy-copy').addClass('none');
$('.typeface .iconfanhui-copy-copy-copy-copy1').removeClass('none');
});
$('.typeface').on('mouseleave', function () {
$('.typeface .iconfanhui-copy-copy-copy-copy1').addClass('none');
$('.typeface .iconfanhui-copy-copy-copy-copy').removeClass('none');
});
$(function () {
/*固定*/
var sTop = 0;
$(window).scroll(function () {
sTop = $(this).scrollTop();
if (sTop > 600) {
$('#goTop').show()
} else {
$('#goTop').hide()
}
});
$('#goTop').click(function () {
$body = (window.opera) ? (document.compatMode == "CSS1Compat" ? $('html') : $('body')) : $(
'html,body');
$body.animate({
scrollTop: 0
}, 1000);
});
})
网站支持IPv6