打开/关闭菜单
1683
2.2万
6529
11.7万
舰R百科
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

舰R百科是靠无数志愿编辑者持续地建设更新完善的。编辑非常简单,无需代码知识,请勇于更新页面!
编辑入门 | 资助百科 | 留言讨论页 | 微博@舰R百科 | 百科编辑讨论Q群:366818861

MediaWiki:Common.js:修订间差异

MediaWiki界面页面
Adpex留言 | 贡献
无编辑摘要
无编辑摘要
第414行: 第414行:
/*  导航  */
/*  导航  */
  $(function () {
  $(function () {
         $(".banner1").hover(function () {
         /*战舰少女R导航*/
            $(this).find(".banner2").eq(0).show();
        (function ($, de) {
        }, function () {
            /*导航栏悬浮、点击展开*/
            $(this).find(".banner2").eq(0).hide();
            $(".banner1").hover(function () {
        });
                $(this).find(".banner2").eq(0).show();
        var isTouch = ('ontouchstart' in document.documentElement) ? 'touchstart' : 'click', _on = $.fn.on;
            }, function () {
        $.fn.on = function(){
                $(this).find(".banner2").eq(0).hide();
            arguments[0] = (arguments[0] === 'click') ? isTouch: arguments[0];
            });
            return _on.apply(this, arguments);
            var isTouch = ('ontouchstart' in de) ? 'touchstart' : 'click', _on = $.fn.on;
        };
            $.fn.on = function () {
        $(".banner1").on("click",function(){
                arguments[0] = (arguments[0] === 'click') ? isTouch : arguments[0];
            var obj=$(this).find(".banner2").eq(0);
                return _on.apply(this, arguments);
            if(obj.is("visible")){
            };
                 obj.hide();
            $(".banner1").on("click", function () {
             }else{
                var obj = $(this).find(".banner2").eq(0);
                 obj.show();
                if (obj.is("visible")) {
                    obj.hide();
                 } else {
                    obj.show();
                }
                $(this).siblings().find(".banner2").hide();
             });
            /*导航栏倒计时*/
            var now = new Date();
            var nows = now.getTime();
            now.setHours(0);
            now.setMinutes(0);
            now.setSeconds(0);
            var today = now.getTime();
 
            var passed = Math.floor((nows - today) / 1000);
            changeCountDown();
            setInterval(function () {
                changeCountDown();
            }, 1000);
            function changeCountDown() {
                 var lave = 24 * 60 * 60 - passed,h = Math.floor(lave / 3600), m = Math.floor((lave - h * 3600) / 60), s = lave - h * 3600 - m * 60,_s='',_c='#0F3';
                if(passed<60) _s=",成功+1day";
                if(passed>12*3600) _c="#fc0";
                if(passed>23*3600) _c="#F30";
                $("#zjsnr-lavetime").html("<span style='color:"+_c+"'>"+h+"</span>"+"小时" +"<span style='color:"+_c+"'>"+m+"</span>" + "分" + "<span style='color:"+_c+"'>"+s+"</span>" + "秒"+_s);
                passed++;
             }
             }
            $(this).siblings().find(".banner2").hide();
 
        });
        }(jQuery, document.documentElement));
     })
     })