$(function(){
dataAnimate();
(function($,lanno){
if(lanno === "" || lanno === "default"){
return '';
}
$(".w-languege").each(function(){
$(this).find("a").each(function(){
if($(this).data("lanno") === lanno){
$(this).addClass("cur");
}else{
if($(this).hasClass("cur")){
$(this).removeClass("cur");
}
}
});
});
})(jQuery,"cn");
});
-
大家都知道吃水果可以补充维生素C,没错!新鲜的水果正是维生素C最重要的来源,但究竟谁是维生素C之王?猕猴桃?橘子?还是苹果?这个问题的答案可真是众说纷纭。现在我...
-
“立秋”就是指暑去凉来,意味着炎热会逐渐远去,但同时让人备受煎熬的秋燥也会随之而来。不少人会感到咽鼻干燥不适,那么这8种香甜水果,立秋后可以多食用~让孩子在秋天...
if (!window.jQuery) {
document.write(unescape("%3Cscript src='/public/static/common/js/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
document.write(unescape("%3Cscript type='text/javascript'%3E try{jQuery.noConflict();}catch(e){} %3C/script%3E"));
}
if (window.jQuery) {
(function($){
default_switch();
//简体繁体互换
function default_switch()
{
var home_lang = getCookie('home_lang');
if (home_lang == '') {
home_lang = 'cn';
}
if ($.inArray(home_lang, ['zh','cn'])) {
var obj = $('#jquerys2t_1573822909');
var isSimplified = getCookie('jquerys2t_1573822909');
if ('cn' == isSimplified) {
$('body').t2s();
$(obj).text('繁體');
} else if ('zh' == isSimplified) {
$('body').s2t();
$(obj).text('简体');
}
}
}
//简体繁体互换
$('#jquerys2t_1573822909').click(function(){
var obj = this;
var isSimplified = getCookie('jquerys2t_1573822909');
if ('' == isSimplified || 'cn' == isSimplified) {
$('body').s2t(); // 简体转繁体
setCookie('jquerys2t_1573822909', 'zh');
$(obj).text('简体');
} else {
$('body').t2s(); // 繁体转简体
setCookie('jquerys2t_1573822909', 'cn');
$(obj).text('繁體');
}
});
})(jQuery);
}