MediaWiki:Common.js

    来自中国珂学院
    ChthollyRoot(讨论 | 贡献)2020年4月14日 (二) 18:24的版本

    注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

    • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
    • Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
    • Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
    • Opera:按 Ctrl-F5。
    /* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
    /*公告滚动*/
    function noticeUp(obj,top,time) {
        $(obj).animate({
            marginTop: top
        }, time, function () {
            $(this).css({marginTop:"0"}).find(":first").appendTo(this);
        })
    }
    /*kanban*/
    <script src="resources/chtholly/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script>
    <script>L2Dwidget.init({
        "pluginRootPath":"resources/chtholly/",
        "pluginJsPath":"resources/chtholly/lib/",
        "pluginModelPath":"resources/chtholly/assets/",
        "tagMode":false,
        "log":false,
        "model":{
    		"scale": 1,
            "jsonPath":"resources/chtholly/assets/chtholly.model.json"
        },
    	"display": {
                "position": "left",
                "width": 200,
                "height": 400,
                "hOffset": -30,
                "vOffset": -60
        },
        "mobile":{
            "show":true
        },
        "react":{
            "opacity":0.9
        }
    });</script>