/* Js for , Version=1679972966 */
 if(typeof(v) != "object") v = {};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 : ","continueShopping":"Continue shopping","required":"Required","back":"Back","continue":"Continue","bindWechatTip":"Posting sets the limit for binding WeChat. Please bind WeChat user first.","importTip":"Old layout data will be replaced","fullImportTip":"Old article, product, layout data will be replaced and import test data"};;v.theme = {"template":"mobile","theme":"default","device":"mobile"};;$(document).ready(function()
{
    if(v.fullScreen)
    {
        $('body').css('margin', '0');
        $('body').css('padding', '0');
    }
});
$(document).ready(function()
{
    function scrollCenter()
    {
        var left = $('.book.active').position().left;
        $('.book-nav').scrollLeft(left - $(window).width()/2 + $('.book.active').width()/2);
    }
    scrollCenter();

    $(document).on('click', '.chapter', function()
    {
        $('.chapter').removeClass('active');
        $('.down-triangle').removeClass('active');
        $('.article').removeClass('active');
        $(this).addClass('active');
        $(this).parent().parent().parent().siblings().children('details').removeAttr('open');
        if($(this).parent().parent().attr('open') === false) $(this).find('.down-triangle').addClass('active');
    });

    $(document).on('click', '.article', function()
    {
        $('.article').removeClass('active');
        $(this).addClass('active');
    });
});

