/* Js for , Version=1775732525 */
 if(typeof(v) != "object") v = {};v.theme = {"template":"default","theme":"default","device":"desktop"};;v.lang = {"confirmDelete":"\u60a8\u786e\u5b9a\u8981\u6267\u884c\u5220\u9664\u64cd\u4f5c\u5417\uff1f","deleteing":"\u5220\u9664\u4e2d","doing":"\u5904\u7406\u4e2d","loading":"\u52a0\u8f7d\u4e2d","updating":"\u66f4\u65b0\u4e2d...","timeout":"\u7f51\u7edc\u8d85\u65f6,\u8bf7\u91cd\u8bd5","errorThrown":"<h4>\u6267\u884c\u51fa\u9519\uff1a<\/h4>","continueShopping":"\u7ee7\u7eed\u8d2d\u7269","required":"\u5fc5\u586b","back":"\u8fd4\u56de","continue":"\u7ee7\u7eed","importTip":"\u53ea\u5bfc\u5165\u4e3b\u9898\u7684\u98ce\u683c\u548c\u6837\u5f0f","fullImportTip":"\u5c06\u4f1a\u5bfc\u5165\u6d4b\u8bd5\u6570\u636e\u4ee5\u53ca\u66ff\u6362\u7ad9\u70b9\u6587\u7ae0\u3001\u4ea7\u54c1\u7b49\u6570\u636e"};;v.pageID = 92;;var small = true
if(document.body.clientWidth < 992)
{
    small = false
}
//监听浏览器宽度的改变

//加载页面时执行一次
//switchDiv();
//$(window).resize(switchDiv)
function switchDiv(){
    //获取网页可见区域宽度
    let docWidth = document.body.clientWidth;
    //console.log(docWidth+ '  ' + small)
    if(docWidth < 992 && small == false){
        $("#columns .col-md-12 .row.blocks .col.col-6.col-row").after('<div id="temp"></div>')
        $("#temp").replaceWith($("#columns .col-md-12 .row.blocks .col.col-3.col-row:first"))
        small = true
        //console.log('to small')
    }
    if(docWidth > 991 && small == true)
    {
        $("#columns .col-md-12 .row.blocks .col.col-3.col-row:first").after('<div id="temp"></div>')
        $("#temp").replaceWith($("#columns .col-md-12 .row.blocks .col.col-6.col-row"))
        small = false
        //console.log('to big')
    }
}

;v.pageLayout = "object";;$("#block276 .expand").click(function(){
    if($("#block276 .panel-body").css('display') != 'none')
    {
        $("#block276 .panel-body").css('display', 'none')
    }
    else{
        $("#block276 .panel-body").css('display', '')
    }
})

//监听浏览器宽度的改变
window.onresize = function(){
    showSchedule();
};
function showSchedule(){
    //获取网页可见区域宽度
    var docWidth = document.body.clientWidth;
    if(docWidth > 480){
        $("#block276 .panel-body").css('display', '')
    }
}
;

var currentBlockID = 281;


if(typeof($('#block' + currentBlockID).parent('.col').data('grid')) === 'undefined')
{
    var grid = $('#block' + currentBlockID).parents('.blocks').data('grid');
    grid = typeof(grid) == 'undefined' ? 12 : grid;

    $('#block' + currentBlockID).parent('.col').attr('data-grid', grid).attr('class', 'col col-' + grid);
}

$('.articleTitleA').each(function()
{
    $(this).css('max-width', $(this).parents('li').width() - $(this).prev('.category').width() - $(this).next('.sticky').width() - $(this).parent().next('.article-date').width() - 10);
})
$('.articleTitleB').each(function()
{
    $(this).css('max-width', $(this).parent('li').width() - $(this).next('.sticky').width() - 10);
})
;var ele = $("#block281 .panel-heading strong")[0];
ele.innerHTML = ele.innerHTML.replace("2018-", "");
;

var currentBlockID = 294;


if(typeof($('#block' + currentBlockID).parent('.col').data('grid')) === 'undefined')
{
    var grid = $('#block' + currentBlockID).parents('.blocks').data('grid');
    grid = typeof(grid) == 'undefined' ? 12 : grid;

    $('#block' + currentBlockID).parent('.col').attr('data-grid', grid).attr('class', 'col col-' + grid);
}

$('.articleTitleA').each(function()
{
    $(this).css('max-width', $(this).parents('li').width() - $(this).prev('.category').width() - $(this).next('.sticky').width() - $(this).parent().next('.article-date').width() - 10);
})
$('.articleTitleB').each(function()
{
    $(this).css('max-width', $(this).parent('li').width() - $(this).next('.sticky').width() - 10);
})
;var ele = $("#block294 .panel-heading strong")[0];
ele.innerHTML = ele.innerHTML.replace("2018-", "");
;

var currentBlockID = 275;


if(typeof($('#block' + currentBlockID).parent('.col').data('grid')) === 'undefined')
{
    var grid = $('#block' + currentBlockID).parents('.blocks').data('grid');
    grid = typeof(grid) == 'undefined' ? 12 : grid;

    $('#block' + currentBlockID).parent('.col').attr('data-grid', grid).attr('class', 'col col-' + grid);
}

$('.articleTitleA').each(function()
{
    $(this).css('max-width', $(this).parents('li').width() - $(this).prev('.category').width() - $(this).next('.sticky').width() - $(this).parent().next('.article-date').width() - 10);
})
$('.articleTitleB').each(function()
{
    $(this).css('max-width', $(this).parent('li').width() - $(this).next('.sticky').width() - 10);
})
;var ele = $("#block275 .panel-heading strong")[0];
ele.innerHTML = ele.innerHTML.replace("2018-", "");
;var ele = $("#block300 .panel-heading strong")[0];
ele.innerHTML = ele.innerHTML.replace("2018-", "");
;var ele = $("#block301 .panel-heading strong")[0];
ele.innerHTML = ele.innerHTML.replace("2018-", "");
;var ele = $("#block295 .panel-heading strong")[0];
ele.innerHTML = ele.innerHTML.replace("2018-", "");
;var ele = $("#block288 .panel-heading strong")[0];
ele.innerHTML = ele.innerHTML.replace("2018-", "");
;$().ready(function() { $('#execIcon').tooltip({title:$('#execInfoBar').html(), html:true, placement:'right'}); }); ;$(document).ready(function()
{
    $('.nav-page-' + v.pageID + ':first').addClass('active');
});
if($('.activity-nav').length < 1)
{
    /*let html = '<span class="activity-nav"><a href="/" style="padding: 0 5px 0 10px; line-height: 50px; color: #fff;">首页</a> \
                <span style="color: #fff;">|</span> \
                <a href="https://member.gxuafa.cn" style="padding: 5px;line-height: 50px;color: #fff;">2022会员年审</a> \
                </span>'*/
    let html = '<span class="activity-nav"><a href="/" style="padding: 0 5px 0 10px; line-height: 50px; color: #fff;">首页</a> \
                <span style="color: #fff;">|</span> \
                <a href="https://www.gxuafa.cn/page/2022alu.html" style="padding: 5px;line-height: 50px;color: #fff;">2022校友联赛</a> \
                </span>'

    $("#navbar .navbar-header").prepend(html);
}
;
var beianstr=`
            <a href='https://beian.miit.gov.cn' target='_blank'>
            桂ICP备2026005119号-1</a>
            <a href='https://beian.mps.gov.cn/#/query/webSearch?code=45010002450697' rel="noreferrer" target='_blank'>
            <img src='/theme/default/default/images/main/police.png'/></a>
            `;

$("div.wrapper nav").prepend("<a href='http://mail.4006480771.com' target='_blank'>企业邮箱</a>");
$("div#powerby").html("<a href='https://www.chanzhi.org/?v=4.5' target='_blank' title='本网站系统由蝉知提供' style='margin:0;padding0;'>蝉知</a>");
$("div#powerby").after("<div id='communi'></div>");
$("div#communi").html("<div>地址：广西大学校友活动中心（原学生6A栋）535室    联络站：广西大学育才路校园文化创意馆  <br>  联系电话：0771-6733282    邮箱：gxuafa@wenovo.cn</div>");
$("div#communi").after("<div id='beian'></div>");
$("div#beian").html(beianstr);

$("span#icpInfo").remove();

;
var hash = window.location.hash.substring(1);
var browserLanguage = navigator.language || navigator.userLanguage; 
var resolution      = screen.availWidth + ' X ' + screen.availHeight;
$.get(createLink('log', 'record', "hash=" + hash), {browserLanguage:browserLanguage, resolution:resolution});
