/* Js for , Version=1741588469 */
v.lang = {"confirmDelete":"Do you want to delete it?","deleteing":"Deleting","doing":"Doing","loading":"Loading","updating":"Updating","timeout":"Timeout. Please try it again.","errorThrown":"
Error <\/h4>","continueShopping":"Continue shopping","required":"Required","back":"Back","continue":"Continue","importTip":"Old layout data will be replaced","fullImportTip":"Old article, product, layout data will be replaced and import test data"};;v.path = ["25","28"];;v.objectType = "article";;v.objectID = 443;;v.categoryID = 28;;v.categoryPath = ["25","28"];;
;v.pageLayout = "global";;$(document).ready(function()
{
$('#copyBox').hide().find(':input').attr('disabled', true);
$('#source').change(function()
{
$('#copyBox').hide().find(':input').attr('disabled', true);
if($(this).val() != 'original') $('#copyBox').show().find(':input').attr('disabled', false);
});
/* Set current active topNav. */
var hasActive = false;
if(v.categoryID > 0 && $('.nav-article-' + v.categoryID).length >= 1)
{
hasActive = true;
$('.nav-article-' + v.categoryID).addClass('active');
}
if(v.categoryPath && v.categoryPath.length)
{
$.each(v.categoryPath, function(index, category)
{
if(!hasActive)
{
if($('.nav-article-' + category).length >= 1) hasActive = true;
$('.nav-article-' + category).addClass('active');
}
});
}
else if(v.path && v.path.length)
{
$.each(v.path, function(index, category)
{
if(!hasActive)
{
if($('.nav-article-' + category).length >= 1) hasActive = true;
$('.nav-article-' + category).addClass('active');
}
});
if(!hasActive) $('.nav-article-0').addClass('active');
}
if(v.categoryID !== 0) $('#category' + v.categoryID).parent().addClass('active');
});
$(document).ready(function()
{
function basename(str)
{
var pos = str.lastIndexOf('/');
return str.substring(pos + 1,str.length);
}
$('body').tooltip(
{
html: true,
selector: "[data-toggle=tooltip]",
container: "body"
});
$('.article-content img').click(function(){
var itemSrc = $(this).attr('src');
var itemName = basename(itemSrc).split('.')[0];
if(typeof(itemName) == 'string')
{
$('.article-files .' + itemName).click();
}
});
if($('.previous > a > span').width() > $('.previous > a').width())
{
previousSpanWidth = $('.previous > a').width() - $('.previous .icon-arrow-left').width() - 5;
$('.previous > a > span').css('width', previousSpanWidth);
}
if($('.next > a > span').width() > $('.next > a').width())
{
nextSpanWidth = $('.next > a').width() - $('.next .icon-arrow-right').width() - 5;
$('.next > a > span').css('width', nextSpanWidth);
}
});
$(document).ready(function(){
if(typeof headerList != 'undefined') return ;
headerList = true;
$('#navbar .navbar-nav').append('
中文');
$('#navbar .navbar-nav').append('');
$('#navbar .navbar-nav').append('EN');
if(screen.width > 767){
$(".navbar-nav>li").removeClass("dropdown").addClass("dropdown-hover");
};
var html = ''+
''+
''+
''+
'
';
$('#slide5-').append(html);
$('#slide5-').attr('data-interval', 6000);
$(".dropdown-hover").mouseover(function(e){
$(this).addClass('open');
});
$(".dropdown-hover").mouseout(function(e) {
$(this).removeClass('open');
});
});