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

MediaWiki:Common.js:修订间差异

来自舰R百科
跳转到导航 跳转到搜索
(// Edit via Wikiplus)
无编辑摘要
 
(未显示5个用户的91个中间版本)
第1行: 第1行:
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
// /* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
/* 切换立绘按钮(当前作废) */
$(document).ready(function () {
    $("#btn_2").click(function () {
        $("#btn_1, #btn_2").hide();
        $("#btn_3, #btn_4").show();
    });
    $("#btn_3").click(function () {
        $("#btn_1, #btn_3").hide();
        $("#btn_2, #btn_4").show();
    });
    $("#btn_4").click(function () {
        $("#btn_1, #btn_4").hide();
        $("#btn_2, #btn_3").show();
    });
    $("#btn_5").click(function () {
        $("#btn_1, #btn_2, #btn_3, #btn_4").show();
    });
});


/* Countdown */
// __NOWYSIWYG__ <source lang="javascript">
/**
* Countdown
*
* @version 2.1
*
* @author Pecoes <http://c.wikia.com/wiki/User:Pecoes>
* @author Asaba <http://dev.wikia.com/wiki/User:Asaba>
*
* Version 1 authors:
* - Splarka <http://c.wikia.com/wiki/User:Splarka>
* - Eladkse <http://c.wikia.com/wiki/User:Eladkse>
*
* documentation and examples at:
* <http://dev.wikia.com/wiki/Countdown>
*/


/*jshint jquery:true, browser:true, devel:true, camelcase:true, curly:false, undef:true, bitwise:true, eqeqeq:true, forin:true, immed:true, latedef:true, newcap:true, noarg:true, unused:true, regexp:true, strict:true, trailing:false */
// /* 显示存在的配音文件的播放按钮 */
/*global mediaWiki:true*/
// $(document).ready(function () {
//    var players = document.getElementsByClassName('flat');
//    for (var i = 0; i < players.length; i++) {
//        url = players[i].lastChild.href;
//        $.ajax({
//            url: url,
//            context: players[i],
//            type: 'HEAD',
//            success: function () {
//                this.style.cssText = "display: inline;";
//            }
//        });       
//     }
// });


; (function (module, mw, $, undefined) {
// /* 随机选择背景 */
// // var bg_links = ['url(https://i.loli.net/2020/01/19/31GwqBplCKDaMHW.jpg)', 'url(https://i.loli.net/2020/01/19/PpvFBOdT8DArt47.jpg)', "url(https://i.loli.net/2020/09/27/h86Nc4AIsmLb1Vi.jpg)", "url(https://i.loli.net/2021/09/23/LIqwG9c5xDQCY4Z.jpg)", "url(https://s2.loli.net/2022/11/06/XSB5YxF3ao2f7ZT.jpg)"];
// function weightedRandomSelection(items) {
//  // Calculate the total weight of all items.
//  var totalWeight = 0;
//  for (var i = 0; i < items.length; i++) {
//    totalWeight += items[i][1];
//  }


    'use strict';
//  // Generate a random value between 0 and the total weight.
//  var randomValue = Math.random() * totalWeight;


    var translations = $.extend(true, {
//   // Iterate over the items, keeping track of the current weight.
        // Catalan (Català)
//   var currentWeight = 0;
        ca: {
//   for (i = 0; i < items.length; i++) {
            and: 'i',
//     currentWeight += items[i][1];
            second: 'segon',
            seconds: 'segons',
            minute: 'minut',
            minutes: 'minuts',
            hour: 'hora',
            hours: 'hores',
            day: 'dia',
            days: 'dies'
        },
        // German (Deutsch)
        de: {
            and: 'und',
            second: 'Sekunde',
            seconds: 'Sekunden',
            minute: 'Minute',
            minutes: 'Minuten',
            hour: 'Stunde',
            hours: 'Stunden',
            day: 'Tag',
            days: 'Tage'
        },
        // English (English)
        en: {
            and: 'and',
            second: 'second',
            seconds: 'seconds',
            minute: 'minute',
            minutes: 'minutes',
            hour: 'hour',
            hours: 'hours',
            day: 'day',
            days: 'days'
        },
        // Greek (Ελληνικά)
        el: {
            and: 'και',
            second: 'δευτερόλεπτο',
            seconds: 'δεπτερόλεπτα',
            minute: 'λετπό',
            minutes: 'λεπτά',
            hour: '΄΄ωρα',
            hours: 'ώρες',
            day: 'ημέρα',
            days: 'ημέρες'
        },
        // Spanish (Español)
        es: {
            and: 'y',
            second: 'segundo',
            seconds: 'segundos',
            minute: 'minuto',
            minutes: 'minutos',
            hour: 'hora',
            hours: 'horas',
            day: 'día',
            days: 'días'
        },
        // French (Français)
        fr: {
            and: 'et',
            second: 'seconde',
            seconds: 'secondes',
            minute: 'minute',
            minutes: 'minutes',
            hour: 'heure',
            hours: 'heures',
            day: 'jour',
            days: 'jours'
        },
        // Hungarian (Magyar)
        hu: {
            and: 'és',
            second: 'másodperc',
            seconds: 'másodperc',
            minute: 'perc',
            minutes: 'perc',
            hour: 'óra',
            hours: 'óra',
            day: 'nap',
            days: 'nap'
        },
        // Italian (Italiano)
        it: {
            and: 'e',
            second: 'secondo',
            seconds: 'secondi',
            minute: 'minuto',
            minutes: 'minuti',
            hour: 'ora',
            hours: 'ore',
            day: 'giorno',
            days: 'giorni'
        },
        // Japanese (日本語)
        ja: {
            and: '',
            second: '秒',
            seconds: '秒',
            minute: '分',
            minutes: '分',
            hour: '時間',
            hours: '時間',
            day: '日',
            days: '日'
        },
        // Malay (Bahasa Melayu)
        ms: {
            and: 'dan',
            second: 'saat',
            seconds: 'saat',
            minute: 'minit',
            minutes: 'minit',
            hour: 'jam',
            hours: 'jam',
            day: 'hari',
            days: 'hari'
        },
        // Dutch (Nederlands)
        nl: {
            and: 'en',
            second: 'seconde',
            seconds: 'seconden',
            minute: 'minuut',
            minutes: 'minuten',
            hour: 'uur',
            hours: 'uur',
            day: 'dag',
            days: 'dagen'
        },
        // Polish (Polski)
        pl: {
            and: 'i',
            second: 'sekunda',
            seconds: 'sekund(y)',
            minute: 'minuta',
            minutes: 'minut(y)',
            hour: 'godzina',
            hours: 'godzin(y)',
            day: 'dzień',
            days: 'dni'
        },
        // Portuguese (Português)
        pt: {
            and: 'e',
            second: 'segundo',
            seconds: 'segundos',
            minute: 'minuto',
            minutes: 'minutos',
            hour: 'hora',
            hours: 'horas',
            day: 'dia',
            days: 'dias'


        },
//    // If the current weight is greater than or equal to the random value, return the item.
        // Brazilian Portuguese (Português do Brasil)
//     if (currentWeight >= randomValue) {
        'pt-br': {
//      return items[i][0];
            and: 'e',
//    }
            second: 'segundo',
//  }
            seconds: 'segundos',
            minute: 'minuto',
            minutes: 'minutos',
            hour: 'hora',
            hours: 'horas',
            day: 'dia',
            days: 'dias'


        },
//   // If we reach here, it means that the random value was greater than the total weight, which should never happen.
        // Russian (русский)
//   console.log(currentWeight, randomValue);
        ru: {
//   throw new Error("Random value was greater than total weight.");
            and: 'и',
// }
            second: 'секунда',
            seconds: 'секунд',
            minute: 'минута',
            minutes: 'минут',
            hour: 'час',
            hours: 'часов',
            day: 'день',
            days: 'дней'
        },
        // Serbian (српски језик)
        sr: {
            and: 'i',
            second: 'sekundu',
            seconds: 'sekunde/-i',
            minute: 'minutu',
            minutes: 'minute/-a',
            hour: 'sat',
            hours: 'sata/-i',
            day: 'dan',
            days: 'dana'
        },
        // Vietnamese (Tiếng Việt)
        vi: {
            and: 'và',
            second: 'giây',
            seconds: 'giây',
            minute: 'phút',
            minutes: 'phút',
            hour: 'giờ',
            hours: 'giờ',
            day: 'ngày',
            days: 'ngày'
        },
        // Chinese (中文)
        zh: {
            and: ' ',
            second: '秒',
            seconds: '秒',
            minute: '分',
            minutes: '分',
            hour: '小时',
            hours: '小时',
            day: '天',
            days: '天'
        }
    }, module.translations || {}),
    i18n = translations[
    mw.config.get('wgContentLanguage')
    ] || translations.zh;


    var countdowns = [];
// var bg_links = [
// ['url(https://0v0.zjsnrwiki.com/static/bg_L.webp)', 0.005],
//  ['url(https://0v0.zjsnrwiki.com/static/bg_4.webp)', 0.2],
//  ['url(https://0v0.zjsnrwiki.com/static/bg_5.webp)', 0.2],
//  ['url(https://0v0.zjsnrwiki.com/static/bg_6.webp)', 0.2],
//  ['url(https://0v0.zjsnrwiki.com/static/bg_7.webp)', 0.2],
//  ['url(https://0v0.zjsnrwiki.com/static/bg_8a.webp)', 0.2], ['url(https://0v0.zjsnrwiki.com/static/bg_8b.webp)', 0.005],
//  ['url(https://0v0.zjsnrwiki.com/static/bg_9a.webp)', 0.2], ['url(https://0v0.zjsnrwiki.com/static/bg_9b.webp)', 0.005],
// ];
// var random_bg_link = weightedRandomSelection(bg_links);
// console.log(random_bg_link);
// $('body.skin-vector').css('background',random_bg_link);
// $('body.skin-vector').css('background-position', 'centre');
// $('body.skin-vector').css('background-repeat', 'no-repeat');
// $('body.skin-vector').css('background-size', 'cover');
// $('body.skin-vector').css('background-attachment', 'fixed');


    var NO_LEADING_ZEROS = 1;
// $('body.skin-citizen').css('background', random_bg_link);
// $('body.skin-citizen').css('background-position', 'centre');
// $('body.skin-citizen').css('background-repeat', 'no-repeat');
// $('body.skin-citizen').css('background-size', 'cover');
// $('body.skin-citizen').css('background-attachment', 'fixed');


    function output(i, diff) {
        /*jshint bitwise:false*/
        var delta, result, parts = [];
        delta = diff % 60;
        parts.unshift(delta + ' ' + i18n[delta === 1 ? 'second' : 'seconds']);
        diff = Math.floor(diff / 60);
        delta = diff % 60;
        parts.unshift(delta + ' ' + i18n[delta === 1 ? 'minute' : 'minutes']);
        diff = Math.floor(diff / 60);
        delta = diff % 24;
        parts.unshift(delta + ' ' + i18n[delta === 1 ? 'hour' : 'hours']);
        diff = Math.floor(diff / 24);
        parts.unshift(diff + ' ' + i18n[diff === 1 ? 'day' : 'days']);
        result = parts.pop();
        if (countdowns[i].opts & NO_LEADING_ZEROS) {
            while (parts.length && parts[0][0] === '0') {
                parts.shift();
            }
        }
        if (parts.length) {
            result = parts.join(', ') + ' ' + i18n.and + ' ' + result;
        }
        countdowns[i].node.text(result);
    }


    function end(i) {
// /* 切换立绘按钮(当前作废) */
        var c = countdowns[i].node.parent();
// $(document).ready(function () {
         switch (c.attr('data-end')) {
//    $("#btn_2").click(function () {
            case 'remove':
//         $("#btn_1, #btn_2").hide();
                c.remove();
//        $("#btn_3, #btn_4").show();
                return true;
//    });
            case 'stop':
//    $("#btn_3").click(function () {
                output(i, 0);
//        $("#btn_1, #btn_3").hide();
                return true;
//        $("#btn_2, #btn_4").show();
            case 'toggle':
//    });
                var toggle = c.attr('data-toggle');
//    $("#btn_4").click(function () {
                if (toggle && $(toggle).length) {
//        $("#btn_1, #btn_4").hide();
                    $(toggle).css('display', 'inline');
//        $("#btn_2, #btn_3").show();
                    c.css('display', 'none');
//    });
                    return true;
//    $("#btn_5").click(function () {
                }
//         $("#btn_1, #btn_2, #btn_3, #btn_4").show();
                break;
//    });
            case 'callback':
// });
                var callback = c.attr('data-callback');
                if (callback && $.isFunction(module[callback])) {
                    output(i, 0);
                    module[callback].call(c);
                    return true;
                }
                break;
        }
        countdowns[i].countup = true;
         output(i, 0);
        return false;
    }


    function update() {
// /* Countdown */
        var now = Date.now();
// // __NOWYSIWYG__ <source lang="javascript">
        var countdownsToRemove = [];
// /**
        $.each(countdowns.slice(0), function (i, countdown) {
// * Countdown
            var diff = Math.floor((countdown.date - now) / 1000);
// *
            if (diff <= 0 && !countdown.countup) {
// * @version 2.1
                if (end(i)) countdownsToRemove.push(i);
// *
            } else {
// * @author Pecoes <http://c.wikia.com/wiki/User:Pecoes>
                output(i, Math.abs(diff));
// * @author Asaba <http://dev.wikia.com/wiki/User:Asaba>
            }
// *
        });
// * Version 1 authors:
        var x;
// * - Splarka <http://c.wikia.com/wiki/User:Splarka>
        while ((x = countdownsToRemove.pop()) !== undefined) {
// * - Eladkse <http://c.wikia.com/wiki/User:Eladkse>
            countdowns.splice(x, 1);
// *
        }
// * documentation and examples at:
        if (countdowns.length) {
// * <http://dev.wikia.com/wiki/Countdown>
            window.setTimeout(function () {
// */
                update();
            }, 1000);
        }
    }


    function getOptions(node) {
// /*jshint jquery:true, browser:true, devel:true, camelcase:true, curly:false, undef:true, bitwise:true, eqeqeq:true, forin:true, immed:true, latedef:true, newcap:true, noarg:true, unused:true, regexp:true, strict:true, trailing:false */
        /*jshint bitwise:false*/
// /*global mediaWiki:true*/
        var text = node.parent().attr('data-options'),
        opts = 0;
        if (text) {
            if (/no-leading-zeros/.test(text)) {
                opts |= NO_LEADING_ZEROS;
            }
        }
        return opts;
    }


    $(function () {
// (function (module, mw, $, undefined) {
        var countdown = $('.countdown');
        if (!countdown.length) return;
        $('.nocountdown').css('display', 'none');
        countdown
        .css('display', 'inline')
        .find('.countdowndate')
        .each(function () {
            var $this = $(this),
            date = (new Date($this.text())).valueOf();
            if (isNaN(date)) {
                $this.text('BAD DATE');
                return;
            }
            countdowns.push({
                node: $this,
                opts: getOptions($this),
                date: date,
            });
        });
        if (countdowns.length) {
            update();
        }
    });


}(window.countdownTimer = window.countdownTimer || {}, mediaWiki, jQuery));
//     'use strict';
//</source>


/*  导航  */
//     var translations = {};
$(function () {
//    $.extend(translations, {
    /*战舰少女R导航*/
//        // Catalan (Català)
    (function ($, de) {
//        ca: {
         /*导航栏悬浮、点击展开*/
//             and: 'i',
         $(".banner1").hover(function () {
//            second: 'segon',
             $(this).find(".banner2").eq(0).show();
//            seconds: 'segons',
         }, function () {
//            minute: 'minut',
             $(this).find(".banner2").eq(0).hide();
//            minutes: 'minuts',
         });
//            hour: 'hora',
         var isTouch = ('ontouchstart' in de) ? 'touchstart' : 'click', _on = $.fn.on;
//            hours: 'hores',
         $.fn.on = function () {
//            day: 'dia',
             arguments[0] = (arguments[0] === 'click') ? isTouch : arguments[0];
//            days: 'dies'
             return _on.apply(this, arguments);
//        },
         };
//        // German (Deutsch)
         $(".banner1").on("click", function () {
//        de: {
             var obj = $(this).find(".banner2").eq(0);
//            and: 'und',
             if (obj.is("visible")) {
//            second: 'Sekunde',
                obj.hide();
//            seconds: 'Sekunden',
             } else {
//            minute: 'Minute',
                obj.show();
//            minutes: 'Minuten',
             }
//            hour: 'Stunde',
             $(this).siblings().find(".banner2").hide();
//            hours: 'Stunden',
         });
//            day: 'Tag',
         /*导航栏倒计时*/
//            days: 'Tage'
         var now = new Date();
//         },
         var nows = now.getTime();
//        // English (English)
        now.setHours(0);
//        en: {
        now.setMinutes(0);
//            and: 'and',
         now.setSeconds(0);
//            second: 'second',
         var today = now.getTime();
//            seconds: 'seconds',
//            minute: 'minute',
//            minutes: 'minutes',
//            hour: 'hour',
//            hours: 'hours',
//            day: 'day',
//             days: 'days'
//         },
//        // Greek (Ελληνικά)
//        el: {
//            and: 'και',
//            second: 'δευτερόλεπτο',
//            seconds: 'δεπτερόλεπτα',
//            minute: 'λετπό',
//            minutes: 'λεπτά',
//            hour: '΄΄ωρα',
//            hours: 'ώρες',
//            day: 'ημέρα',
//             days: 'ημέρες'
//         },
//        // Spanish (Español)
//         es: {
//            and: 'y',
//            second: 'segundo',
//            seconds: 'segundos',
//            minute: 'minuto',
//            minutes: 'minutos',
//            hour: 'hora',
//            hours: 'horas',
//            day: 'día',
//            days: 'días'
//        },
//         // French (Français)
//        fr: {
//            and: 'et',
//            second: 'seconde',
//            seconds: 'secondes',
//            minute: 'minute',
//            minutes: 'minutes',
//             hour: 'heure',
//            hours: 'heures',
//             day: 'jour',
//            days: 'jours'
//         },
//         // Hungarian (Magyar)
//        hu: {
//            and: 'és',
//            second: 'másodperc',
//            seconds: 'másodperc',
//            minute: 'perc',
//            minutes: 'perc',
//            hour: 'óra',
//            hours: 'óra',
//            day: 'nap',
//            days: 'nap'
//        },
//        // Italian (Italiano)
//        it: {
//            and: 'e',
//            second: 'secondo',
//            seconds: 'secondi',
//            minute: 'minuto',
//            minutes: 'minuti',
//            hour: 'ora',
//            hours: 'ore',
//             day: 'giorno',
//             days: 'giorni'
//        },
//        // Japanese (日本語)
//        ja: {
//            and: '',
//            second: '秒',
//            seconds: '秒',
//            minute: '分',
//            minutes: '分',
//            hour: '時間',
//            hours: '時間',
//            day: '日',
//             days: '日'
//        },
//        // Malay (Bahasa Melayu)
//        ms: {
//            and: 'dan',
//            second: 'saat',
//            seconds: 'saat',
//            minute: 'minit',
//            minutes: 'minit',
//            hour: 'jam',
//            hours: 'jam',
//             day: 'hari',
//             days: 'hari'
//         },
//        // Dutch (Nederlands)
//         nl: {
//            and: 'en',
//            second: 'seconde',
//            seconds: 'seconden',
//            minute: 'minuut',
//            minutes: 'minuten',
//            hour: 'uur',
//            hours: 'uur',
//            day: 'dag',
//            days: 'dagen'
//         },
//         // Polish (Polski)
//         pl: {
//            and: 'i',
//            second: 'sekunda',
//            seconds: 'sekund(y)',
//            minute: 'minuta',
//            minutes: 'minut(y)',
//            hour: 'godzina',
//            hours: 'godzin(y)',
//            day: 'dzień',
//            days: 'dni'
//        },
//         // Portuguese (Português)
//         pt: {
//            and: 'e',
//            second: 'segundo',
//            seconds: 'segundos',
//            minute: 'minuto',
//            minutes: 'minutos',
//            hour: 'hora',
//            hours: 'horas',
//            day: 'dia',
//            days: 'dias'


         var passed = Math.floor((nows - today) / 1000);
//         },
         changeCountDown();
//        // Brazilian Portuguese (Português do Brasil)
         setInterval(function () {
//         'pt-br': {
             changeCountDown();
//             and: 'e',
        }, 1000);
//             second: 'segundo',
        function changeCountDown() {
//             seconds: 'segundos',
             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';
//            minute: 'minuto',
             if (passed < 60) _s = ",成功+1day";
//             minutes: 'minutos',
             if (passed > 12 * 3600) _c = "#fc0";
//             hour: 'hora',
             if (passed > 23 * 3600) _c = "#F30";
//             hours: 'horas',
             $("#zjsnr-lavetime").html("<span style='color:" + _c + "'>" + h + "</span>" + "小时" + "<span style='color:" + _c + "'>" + m + "</span>" + "分" + "<span style='color:" + _c + "'>" + s + "</span>" + "秒" + _s);
//             day: 'dia',
            passed++;
//             days: 'dias'
        }


     }(jQuery, document.documentElement));
//        },
})
//        // Russian (русский)
//        ru: {
//            and: 'и',
//            second: 'секунда',
//            seconds: 'секунд',
//            minute: 'минута',
//            minutes: 'минут',
//            hour: 'час',
//            hours: 'часов',
//            day: 'день',
//            days: 'дней'
//        },
//        // Serbian (српски језик)
//        sr: {
//            and: 'i',
//            second: 'sekundu',
//            seconds: 'sekunde/-i',
//            minute: 'minutu',
//            minutes: 'minute/-a',
//            hour: 'sat',
//            hours: 'sata/-i',
//            day: 'dan',
//            days: 'dana'
//        },
//        // Vietnamese (Tiếng Việt)
//        vi: {
//            and: 'và',
//            second: 'giây',
//            seconds: 'giây',
//            minute: 'phút',
//            minutes: 'phút',
//            hour: 'giờ',
//            hours: 'giờ',
//            day: 'ngày',
//            days: 'ngày'
//        },
//        // Chinese (中文)
//        zh: {
//            and: ' ',
//            second: '秒',
//            seconds: '秒',
//            minute: '分',
//            minutes: '分',
//            hour: '小时',
//            hours: '小时',
//            day: '天',
//            days: '天'
//        }
//     }, module.translations || {});
//    var countdowns = [],
//        i18n = translations[
//            mw.config.get('wgContentLanguage')
//        ] || translations.zh,
//        NO_LEADING_ZEROS = 1;


/* 显示上级页面标题的链接 */
//     function output(i, diff) {
$(function () {
//        /*jshint bitwise:false*/
    if (mw.config.values.wgPageName.indexOf('/') != -1 && !$('.subpages')[0] && (mw.config.values.wgNamespaceIds.special != mw.config.values.wgNamespaceNumber || mw.config.values.wgPageName.indexOf('Special:移动页面') != -1)) {
//        var delta, result, parts = [];
         var links = mw.config.values.wgPageName.split('/'),
//        delta = diff % 60;
         link = '/wiki',
//        parts.unshift(delta + ' ' + i18n[delta === 1 ? 'second' : 'seconds']);
         subpages = $('<span class="subpages"></span>').text('<'),
//        diff = Math.floor(diff / 60);
         length = links.length - 1,
//        delta = diff % 60;
        index;
//        parts.unshift(delta + ' ' + i18n[delta === 1 ? 'minute' : 'minutes']);
         if (mw.config.values.wgPageName.indexOf('Special:移动页面') != -1) links.splice(0, 1);
//         diff = Math.floor(diff / 60);
         for (index = 0; index < length; index++) {
//         delta = diff % 24;
             link += '/' + links[index];
//        parts.unshift(delta + ' ' + i18n[delta === 1 ? 'hour' : 'hours']);
             subpages.append($('<a/>', {
//         diff = Math.floor(diff / 24);
                text: ' ' + links[index],
//         parts.unshift(diff + ' ' + i18n[diff === 1 ? 'day' : 'days']);
                href: link
//        result = parts.pop();
            }));
//         if (countdowns[i].opts & NO_LEADING_ZEROS) {
            if (length - index - 1) subpages.append(" |");
//             while (parts.length && parts[0][0] === '0') {
        }
//                parts.shift();
        $('#contentSub').prepend(subpages);
//            }
    }
//        }
});
//        if (parts.length) {
/* sitenotice */
//             result = parts.join(', ') + ' ' + i18n.and + ' ' + result;
$(function () {
//        }
    var self = $('#siteNoticeScroll');
//        countdowns[i].node.text(result);
    if (!self[0]) return;
//    }
    window.setInterval(function () {
 
        var width = self.width();
//    function end(i) {
        self.find('ul:first').animate({
//        var c = countdowns[i].node.parent();
            marginLeft: -(width * 2) + 'px'
//         switch (c.attr('data-end')) {
        }, 730, function () {
//            case 'remove':
            $(this).css({
//                c.remove();
                marginLeft: 0
//                return true;
            }).find('li:first').appendTo(this);
//            case 'stop':
        });
//                output(i, 0);
    }, 5000);
//                return true;
});
//            case 'toggle':
//                var toggle = c.attr('data-toggle');
//                if (toggle && $(toggle).length) {
//                    $(toggle).css('display', 'inline');
//                    c.css('display', 'none');
//                    return true;
//                }
//                break;
//            case 'callback':
//                var callback = c.attr('data-callback');
//                if (callback && $.isFunction(module[callback])) {
//                    output(i, 0);
//                    module[callback].call(c);
//                    return true;
//                }
//                break;
//        }
//        countdowns[i].countup = true;
//        output(i, 0);
//        return false;
//    }
 
//    function update() {
//        var now = Date.now();
//        var countdownsToRemove = [];
//        $.each(countdowns.slice(0), function (i, countdown) {
//            var diff = Math.floor((countdown.date - now) / 1000);
//            if (diff <= 0 && !countdown.countup) {
//                if (end(i)) countdownsToRemove.push(i);
//            } else {
//                output(i, Math.abs(diff));
//            }
//        });
//        var x;
//        while ((x = countdownsToRemove.pop()) !== undefined) {
//            countdowns.splice(x, 1);
//        }
//        if (countdowns.length) {
//            window.setTimeout(function () {
//                update();
//            }, 1000);
//        }
//    }
 
//    function getOptions(node) {
//        /*jshint bitwise:false*/
//        var text = node.parent().attr('data-options'),
//            opts = 0;
//        if (text) {
//            if (/no-leading-zeros/.test(text)) {
//                opts |= NO_LEADING_ZEROS;
//            }
//        }
//        return opts;
//    }
 
//    $(function () {
//        var countdown = $('.countdown');
//        if (!countdown.length) return;
//        $('.nocountdown').css('display', 'none');
//        countdown
//            .css('display', 'inline')
//            .find('.countdowndate')
//            .each(function () {
//                var $this = $(this),
//                    date = (new Date($this.text())).valueOf();
//                if (isNaN(date)) {
//                    $this.text('BAD DATE');
//                    return;
//                }
//                countdowns.push({
//                    node: $this,
//                    opts: getOptions($this),
//                    date: date,
//                });
//            });
//        if (countdowns.length) {
//            update();
//        }
//    });
 
// } (window.countdownTimer = window.countdownTimer || {}, mediaWiki, jQuery));
// //</source>
 
// /*  导航  */
// $(function () {
//    /*战舰少女R导航*/
//    (function ($, de) {
//        /*导航栏悬浮、点击展开*/
//        $(".banner1").hover(function () {
//            $(this).find(".banner2").eq(0).show();
//        }, function () {
//            $(this).find(".banner2").eq(0).hide();
//        });
//        var isTouch = ('ontouchstart' in de) ? 'touchstart' : 'click', _on = $.fn.on;
//        $.fn.on = function () {
//            arguments[0] = (arguments[0] === 'click') ? isTouch : arguments[0];
//            return _on.apply(this, arguments);
//        };
//        $(".banner1").on("click", function () {
//            var obj = $(this).find(".banner2").eq(0);
//            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++;
//        }
 
//    } (jQuery, document.documentElement));
// });
 
// /* 显示上级页面标题的链接 */
// $(function () {
//    if (mw.config.values.wgPageName.indexOf('/') != -1 && !$('.subpages')[0] && (mw.config.values.wgNamespaceIds.special != mw.config.values.wgNamespaceNumber || mw.config.values.wgPageName.indexOf('Special:移动页面') != -1)) {
//        var links = mw.config.values.wgPageName.split('/'),
//            link = '/wiki',
//            subpages = $('<span class="subpages"></span>').text('<'),
//            length = links.length - 1,
//            index;
//        if (mw.config.values.wgPageName.indexOf('Special:移动页面') != -1) links.splice(0, 1);
//        for (index = 0; index < length; index++) {
//            link += '/' + links[index];
//            subpages.append($('<a/>', {
//                text: ' ' + links[index],
//                href: link
//            }));
//            if (length - index - 1) subpages.append(" |");
//        }
//        $('#contentSub').prepend(subpages);
//    }
// });
// /* sitenotice */
// $(function () {
//    var self = $('#siteNoticeScroll');
//    if (!self[0]) return;
//    var ul = self.find('ul:first');
//    ul.width(self.width() * self.find('li').length).attr({
//        'data-left': 0,
//        'data-length': self.find('li').length
//    }).find('li').width(self.width());
//    window.setInterval(function () {
//        var dataset = ul[0].dataset,
//            oldLeft = +dataset.left;
//        ul.css('marginLeft', -(++oldLeft * self.width()) + 'px').delay(730).queue(function () {
//            dataset.left = oldLeft === +dataset.length - 1 ? -1 : oldLeft;
//            $(this).dequeue();
//        });
//    }, 5000);
//    $(window).on('resize', function () {
//        ul.width(self.width() * self.find('li').length).animate({
//            marginLeft: -((+ul[0].dataset.left === -1 ? 0 : +ul[0].dataset.left) * self.width()) + 'px'
//        }, 370);
//    });
// });
 
// /* Google Analytics */
// /*
//  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
//  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
//  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
//  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
 
//  ga('create', 'UA-79438840-1', 'auto');
//  ga('send', 'pageview');
//  */
 
// /* 百度推送 */
// /*
// (function(){
//    var bp = document.createElement('script');
//    var curProtocol = window.location.protocol.split(':')[0];
//        if (curProtocol === 'https') {
//            bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';       
//        }
//        else {
//            bp.src = 'http://push.zhanzhang.baidu.com/push.js';
//        }
//        var s = document.getElementsByTagName("script")[0];
//        s.parentNode.insertBefore(bp, s);
// })();
// */
 
// /*百度推送改*/
// /*
// (function(){
// var canonicalURL, curProtocol;
// //Get the <link> tag
// var x=document.getElementsByTagName("link");
// //Find the last canonical URL
// if(x.length > 0){
//    for (var i=0;i<x.length;i++){
//        if(x[i].rel.toLowerCase() == 'canonical' && x[i].href){
//            canonicalURL=x[i].href;
//        }
//    }
// }
// //Get protocol
// if (!canonicalURL){
//    curProtocol = window.location.protocol.split(':')[0];
// }
// else{
//    curProtocol = canonicalURL.split(':')[0];
// }
// //Get current URL if the canonical URL does not exist
// if (!canonicalURL) canonicalURL = window.location.href;
// //Assign script content. Replace current URL with the canonical URL
// !function(){var e=/([http|https]:\/\/[a-zA-Z0-9\_\.]+\.baidu\.com)/gi,r=canonicalURL,t=document.referrer;if(!e.test(r)){var n=(String(curProtocol).toLowerCase() === 'https')?"https://sp0.baidu.com/9_Q4simg2RQJ8t7jm9iCKT-xh_/s.gif":"//api.share.baidu.com/s.gif";t?(n+="?r="+encodeURIComponent(document.referrer),r&&(n+="&l="+r)):r&&(n+="?l="+r);var i=new Image;i.src=n}}(window);})();
// */
 
// /*齐柏林页面专用*/
// function MM_effectGrowShrink(targetElement, duration, from, to, toggle, referHeight, growFromCenter)
// {
// Spry.Effect.DoGrow(targetElement, {duration: duration, from: from, to: to, toggle: toggle, referHeight: referHeight, growCenter: growFromCenter});
// }
 
// /* jQuery.pin.js */
// (function ($) {
//    "use strict";
//    $.fn.pin = function (options) {
//        var scrollY = 0, elements = [], disabled = false, $window = $(window);
 
//        options = options || {};
 
//        var recalculateLimits = function () {
//            for (var i=0, len=elements.length; i<len; i++) {
//                var $this = elements[i];
 
//                if (options.minWidth && $window.width() <= options.minWidth) {
//                    if ($this.parent().is(".pin-wrapper")) { $this.unwrap(); }
//                    $this.css({width: "", left: "", top: "", position: ""});
//                    if (options.activeClass) { $this.removeClass(options.activeClass); }
//                    disabled = true;
//                    continue;
//                } else {
//                    disabled = false;
//                }
 
//                var $container = options.containerSelector ? $this.closest(options.containerSelector) : $(document.body);
//                var offset = $this.offset();
//                var containerOffset = $container.offset();
//                var parentOffset = $this.offsetParent().offset();
 
//                if (!$this.parent().is(".pin-wrapper")) {
//                    $this.wrap("<div class='pin-wrapper'>");
//                }
 
//                var pad = $.extend({
//                  top: 0,
//                  bottom: 0
//                }, options.padding || {});
 
//                $this.data("pin", {
//                    pad: pad,
//                    from: (options.containerSelector ? containerOffset.top : offset.top) - pad.top,
//                    to: containerOffset.top + $container.height() - $this.outerHeight() - pad.bottom,
//                    end: containerOffset.top + $container.height(),
//                    parentTop: parentOffset.top
//                });
 
//                $this.css({width: $this.outerWidth()});
//                $this.parent().css("height", $this.outerHeight());
//            }
//        };
 
//        var onScroll = function () {
//            if (disabled) { return; }
 
//            scrollY = $window.scrollTop();
 
//            var elmts = [];
//            for (var i=0, len=elements.length; i<len; i++) {         
//                var $this = $(elements[i]),
//                    data  = $this.data("pin");
 
//                if (!data) { // Removed element
//                  continue;
//                }
 
//                elmts.push($this);
                 
//                var from = data.from - data.pad.bottom,
//                    to = data.to - data.pad.top;
             
//                if (from + $this.outerHeight() > data.end) {
//                    $this.css('position', '');
//                    continue;
//                }
             
//                if (from < scrollY && to > scrollY) {
//                    !($this.css("position") == "fixed") && $this.css({
//                        left: $this.offset().left,
//                        top: data.pad.top
//                    }).css("position", "fixed");
//                    if (options.activeClass) { $this.addClass(options.activeClass); }
//                } else if (scrollY >= to) {
//                    $this.css({
//                        left: "",
//                        top: to - data.parentTop + data.pad.top
//                    }).css("position", "absolute");
//                    if (options.activeClass) { $this.addClass(options.activeClass); }
//                } else {
//                    $this.css({position: "", top: "", left: ""});
//                    if (options.activeClass) { $this.removeClass(options.activeClass); }
//                }
//          }
//          elements = elmts;
//        };
 
//        var update = function () { recalculateLimits(); onScroll(); };
 
//        this.each(function () {
//            var $this = $(this),
//                data  = $(this).data('pin') || {};
 
//            if (data && data.update) { return; }
//            elements.push($this);
//            $("img", this).one("load", recalculateLimits);
//            data.update = update;
//            $(this).data('pin', data);
//        });
 
//        $window.scroll(onScroll);
//        $window.resize(function () { recalculateLimits(); });
//        recalculateLimits();
 
//        $window.load(update);
 
//        return this;
//      };
// })(jQuery);
// /* END jQuery.pin.js */
// /* Adpex个人页面专专用 */
// $(".pinned").pin();
 
// /* 打咪咪比赛专用  */
// $(document).ready(function(){
// $("#random_watch").click(function(){
// url = new Array();
// url[0]="http://live.bilibili.com/109179"
// url[1]="https://www.douyu.com/336980"
// url[2]="http://live.bilibili.com/183124"
// url[4]="http://live.bilibili.com/93923 "
// url[5]="https://www.douyu.com/441839"
// url[6]="https://www.douyu.com/1568"
// url[7]="http://live.bilibili.com/live/2014642.html"
// url[8]="http://www.douyu.com/852163"
// url[9]="https://www.douyu.com/1502914"
// url[10]="http://live.bilibili.com/1318658"
// url[11]="http://live.bilibili.com/90341"
// url[12]="http://live.bilibili.com/90240"
// url[13]="http://live.bilibili.com/143646"
// url[14]="http://live.bilibili.com/24502"
// url[15]="https://www.douyu.com/1183161"
// url[16]="http://www.douyu.com/foolmagi"
// url[17]="https://www.douyu.com/966457"
// url[18]="http://live.bilibili.com/57006"
// url[19]="http://live.bilibili.com/27948"
// url[20]="http://live.bilibili.com/534587"
// url[21]="https://www.douyu.com/1228108?1481424287282"
// url[22]="http://live.bilibili.com/18995"
// url[23]="http://live.bilibili.com/56207"
// url[24]="http://live.bilibili.com/1076902"
// url[25]="http://live.bilibili.com/1080775"
// url[26]="http://live.bilibili.com/56076"
// url[27]="http://live.bilibili.com/33409"
// url[28]="http://live.bilibili.com/76119"
// url[29]="http://live.bilibili.com/2527639"
// url[30]="http://live.bilibili.com/52883"
// url[31]="http://live.bilibili.com/17682"
// url[32]="http://live.bilibili.com/348416"
// url[33]="http://live.bilibili.com/163932"
// url[34]="http://live.bilibili.com/54638"
// url[35]="http://live.bilibili.com/2377121"
// url[36]="http://live.bilibili.com/1143121"
// url[37]="http://live.bilibili.com/2657692"
// url[38]="https://www.douyu.com/1402424"
// url[39]="http://live.bilibili.com/438471"
// url[40]="https://www.douyu.com/1490091"
// url[41]="http://live.bilibili.com/37405"
// url[42]="http://live.bilibili.com/71846"
// url[43]="https://www.douyu.com/1490657"
// url[44]="http://live.bilibili.com/25583"
// url[45]="http://live.bilibili.com/54148"
// url[46]="http://live.bilibili.com/1633189"
// url[47]="http://live.bilibili.com/49301"
// url[48]="https://www.douyu.com/925609"
// url[49]="http://live.bilibili.com/10970"
// url[50]="http://live.bilibili.com/47479"
// url[51]="http://live.bilibili.com/844795"
// url[52]="http://live.bilibili.com/938814"
// url[53]="http://live.bilibili.com/49301"
// url[54]="http://live.bilibili.com/951267"
// url[55]="http://live.bilibili.com/2639103"
// url[56]="http://live.bilibili.com/live/2646929.html"
// url[57]="http://live.bilibili.com/145640"
// url[58]="http://www.douyu.com/wenrenfangge"
// url[59]="http://live.bilibili.com/92703"
// url[60]="http://live.bilibili.com/15224"
// url[61]="http://live.bilibili.com/854280"
// url[62]="https://www.douyu.com/594715"
// url[63]="https://www.zhanqi.tv/152576257"
// url[64]="https://www.douyu.com/673916"
// url[65]="https://www.douyu.com/314463"
// url[66]="http://live.bilibili.com/2635681"
// url[67]="https://www.douyu.com/304097"
// url[68]="http://live.bilibili.com/864181"
// url[69]="live.bilibili.com/2296076"
// url[70]="http://live.bilibili.com/309855"
// url[71]="http://live.bilibili.com/1608950"
// url[72]="http://live.bilibili.com/417898"
// url[73]="http://live.bilibili.com/55746"
// url[74]="http://www.douyu.com/jianniang"
// url[75]="http://live.bilibili.com/2597497"
// url[76]="http://live.bilibili.com/1736138"
// url[77]="http://live.bilibili.com/269717"
// url[78]="http://live.bilibili.com/158960"
// url[79]="https://www.douyu.com/438554"
// url[80]="http://live.bilibili.com/1171461"
// url[81]="http://live.bilibili.com/521816"
// url[82]="http://live.bilibili.com/129308"
// url[83]="http://live.bilibili.com/181994"
// url[84]="http://live.bilibili.com/2664976"
// url[85]="http://live.bilibili.com/402181"
// url[86]="https://www.douyu.com/1488286"
// url[87]="http://live.bilibili.com/44240"
// url[88]="http://live.bilibili.com/2383203"
// url[89]="http://live.bilibili.com/430709"
// url[90]="http://live.bilibili.com/24241"
// url[91]="http://live.bilibili.com/279432"
// url[92]="https://www.douyu.com/1946566"
//                        url[93]="http://www.douyu.com/606387"
// url[94]="http://live.bilibili.com/91444"
//                        url[95]="http://live.bilibili.com/400829"
//                        url[96]="https://www.douyu.tv/1494382"
//                        url[97]="http://live.bilibili.com/2714958"
//                        url[98]="http://live.bilibili.com/2133201"
//                        url[99]="https://www.douyu.com/1948994"
//                        url[100]="http://live.bilibili.com/341627"
//                        url[101]="https://www.douyu.com/1693122"
//                        url[102]="http://live.bilibili.com/230448"
//                        url[103]="http://live.bilibili.com/3592696"
//                        url[104]="http://live.bilibili.com/1374757"
//                        url[105]="http://live.bilibili.com/4302561"
//                        url[106]="http://live.bilibili.com/156015"
//                        url[107]="https://www.douyu.com/2140816"
//                        url[108]="http://live.bilibili.com/333001"
//                        url[109]="https://www.douyu.com/907992"
//                        url[110]="http://live.bilibili.com/2620904"
//                        url[111]="http://live.bilibili.com/4303516"
//                        url[112]="http://live.bilibili.com/1029481"
//                        url[113]="http://live.bilibili.com/840729"
//                        url[114]="http://live.bilibili.com/986237"
//                        url[115]="https://www.douyu.com/2088295"
//                        url[116]="http://live.bilibili.com/74198"
//                        url[117]="http://live.bilibili.com/24769"
//                        url[118]="http://live.bilibili.com/92515"
//                        url[119]="http://live.bilibili.com/678456"
//                        url[120]="https://www.douyu.com/1638818"
//                        url[121]="https://www.douyu.com/2102138"
//                        url[122]="https://www.douyu.com/210483"
//                        url[123]="https://www.douyu.com/1501502"
//                        url[124]="http://live.bilibili.com/50184"
//                        url[125]="http://live.bilibili.com/23926"
 
// i = Math.random() * url.length;
//  i = Math.floor(i);
//  //alert(url[i]);
//  window.open(url[i]); 
// });
// });
// /* 打咪咪end */

2024年1月10日 (三) 10:19的最新版本

// /* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */


// /* 显示存在的配音文件的播放按钮 */
// $(document).ready(function () {
//     var players = document.getElementsByClassName('flat');
//     for (var i = 0; i < players.length; i++) {
//         url = players[i].lastChild.href;
//         $.ajax({
//             url: url,
//             context: players[i],
//             type: 'HEAD',
//             success: function () {
//                 this.style.cssText = "display: inline;";
//             }
//         });        
//     }
// });

// /* 随机选择背景 */
// // var bg_links = ['url(https://i.loli.net/2020/01/19/31GwqBplCKDaMHW.jpg)', 'url(https://i.loli.net/2020/01/19/PpvFBOdT8DArt47.jpg)', "url(https://i.loli.net/2020/09/27/h86Nc4AIsmLb1Vi.jpg)", "url(https://i.loli.net/2021/09/23/LIqwG9c5xDQCY4Z.jpg)", "url(https://s2.loli.net/2022/11/06/XSB5YxF3ao2f7ZT.jpg)"];
// function weightedRandomSelection(items) {
//   // Calculate the total weight of all items.
//   var totalWeight = 0;
//   for (var i = 0; i < items.length; i++) {
//     totalWeight += items[i][1];
//   }

//   // Generate a random value between 0 and the total weight.
//   var randomValue = Math.random() * totalWeight;

//   // Iterate over the items, keeping track of the current weight.
//   var currentWeight = 0;
//   for (i = 0; i < items.length; i++) {
//     currentWeight += items[i][1];

//     // If the current weight is greater than or equal to the random value, return the item.
//     if (currentWeight >= randomValue) {
//       return items[i][0];
//     }
//   }

//   // If we reach here, it means that the random value was greater than the total weight, which should never happen.
//   console.log(currentWeight, randomValue);
//   throw new Error("Random value was greater than total weight.");
// }

// var bg_links = [
// ['url(https://0v0.zjsnrwiki.com/static/bg_L.webp)', 0.005],
//   ['url(https://0v0.zjsnrwiki.com/static/bg_4.webp)', 0.2],
//   ['url(https://0v0.zjsnrwiki.com/static/bg_5.webp)', 0.2],
//   ['url(https://0v0.zjsnrwiki.com/static/bg_6.webp)', 0.2],
//   ['url(https://0v0.zjsnrwiki.com/static/bg_7.webp)', 0.2],
//   ['url(https://0v0.zjsnrwiki.com/static/bg_8a.webp)', 0.2], ['url(https://0v0.zjsnrwiki.com/static/bg_8b.webp)', 0.005],
//   ['url(https://0v0.zjsnrwiki.com/static/bg_9a.webp)', 0.2], ['url(https://0v0.zjsnrwiki.com/static/bg_9b.webp)', 0.005],
// ];
// var random_bg_link = weightedRandomSelection(bg_links);
// console.log(random_bg_link);
// $('body.skin-vector').css('background',random_bg_link);
// $('body.skin-vector').css('background-position', 'centre');
// $('body.skin-vector').css('background-repeat', 'no-repeat');
// $('body.skin-vector').css('background-size', 'cover');
// $('body.skin-vector').css('background-attachment', 'fixed');

// $('body.skin-citizen').css('background', random_bg_link);
// $('body.skin-citizen').css('background-position', 'centre');
// $('body.skin-citizen').css('background-repeat', 'no-repeat');
// $('body.skin-citizen').css('background-size', 'cover');
// $('body.skin-citizen').css('background-attachment', 'fixed');


// /* 切换立绘按钮(当前作废) */
// $(document).ready(function () {
//     $("#btn_2").click(function () {
//         $("#btn_1, #btn_2").hide();
//         $("#btn_3, #btn_4").show();
//     });
//     $("#btn_3").click(function () {
//         $("#btn_1, #btn_3").hide();
//         $("#btn_2, #btn_4").show();
//     });
//     $("#btn_4").click(function () {
//         $("#btn_1, #btn_4").hide();
//         $("#btn_2, #btn_3").show();
//     });
//     $("#btn_5").click(function () {
//         $("#btn_1, #btn_2, #btn_3, #btn_4").show();
//     });
// });

// /* Countdown */
// // __NOWYSIWYG__ <source lang="javascript">
// /**
// * Countdown
// *
// * @version 2.1
// *
// * @author Pecoes <http://c.wikia.com/wiki/User:Pecoes>
// * @author Asaba <http://dev.wikia.com/wiki/User:Asaba>
// *
// * Version 1 authors:
// * - Splarka <http://c.wikia.com/wiki/User:Splarka>
// * - Eladkse <http://c.wikia.com/wiki/User:Eladkse>
// *
// * documentation and examples at:
// * <http://dev.wikia.com/wiki/Countdown>
// */

// /*jshint jquery:true, browser:true, devel:true, camelcase:true, curly:false, undef:true, bitwise:true, eqeqeq:true, forin:true, immed:true, latedef:true, newcap:true, noarg:true, unused:true, regexp:true, strict:true, trailing:false */
// /*global mediaWiki:true*/

// (function (module, mw, $, undefined) {

//     'use strict';

//     var translations = {};
//     $.extend(translations, {
//         // Catalan (Català)
//         ca: {
//             and: 'i',
//             second: 'segon',
//             seconds: 'segons',
//             minute: 'minut',
//             minutes: 'minuts',
//             hour: 'hora',
//             hours: 'hores',
//             day: 'dia',
//             days: 'dies'
//         },
//         // German (Deutsch)
//         de: {
//             and: 'und',
//             second: 'Sekunde',
//             seconds: 'Sekunden',
//             minute: 'Minute',
//             minutes: 'Minuten',
//             hour: 'Stunde',
//             hours: 'Stunden',
//             day: 'Tag',
//             days: 'Tage'
//         },
//         // English (English)
//         en: {
//             and: 'and',
//             second: 'second',
//             seconds: 'seconds',
//             minute: 'minute',
//             minutes: 'minutes',
//             hour: 'hour',
//             hours: 'hours',
//             day: 'day',
//             days: 'days'
//         },
//         // Greek (Ελληνικά)
//         el: {
//             and: 'και',
//             second: 'δευτερόλεπτο',
//             seconds: 'δεπτερόλεπτα',
//             minute: 'λετπό',
//             minutes: 'λεπτά',
//             hour: '΄΄ωρα',
//             hours: 'ώρες',
//             day: 'ημέρα',
//             days: 'ημέρες'
//         },
//         // Spanish (Español)
//         es: {
//             and: 'y',
//             second: 'segundo',
//             seconds: 'segundos',
//             minute: 'minuto',
//             minutes: 'minutos',
//             hour: 'hora',
//             hours: 'horas',
//             day: 'día',
//             days: 'días'
//         },
//         // French (Français)
//         fr: {
//             and: 'et',
//             second: 'seconde',
//             seconds: 'secondes',
//             minute: 'minute',
//             minutes: 'minutes',
//             hour: 'heure',
//             hours: 'heures',
//             day: 'jour',
//             days: 'jours'
//         },
//         // Hungarian (Magyar)
//         hu: {
//             and: 'és',
//             second: 'másodperc',
//             seconds: 'másodperc',
//             minute: 'perc',
//             minutes: 'perc',
//             hour: 'óra',
//             hours: 'óra',
//             day: 'nap',
//             days: 'nap'
//         },
//         // Italian (Italiano)
//         it: {
//             and: 'e',
//             second: 'secondo',
//             seconds: 'secondi',
//             minute: 'minuto',
//             minutes: 'minuti',
//             hour: 'ora',
//             hours: 'ore',
//             day: 'giorno',
//             days: 'giorni'
//         },
//         // Japanese (日本語)
//         ja: {
//             and: '',
//             second: '秒',
//             seconds: '秒',
//             minute: '分',
//             minutes: '分',
//             hour: '時間',
//             hours: '時間',
//             day: '日',
//             days: '日'
//         },
//         // Malay (Bahasa Melayu)
//         ms: {
//             and: 'dan',
//             second: 'saat',
//             seconds: 'saat',
//             minute: 'minit',
//             minutes: 'minit',
//             hour: 'jam',
//             hours: 'jam',
//             day: 'hari',
//             days: 'hari'
//         },
//         // Dutch (Nederlands)
//         nl: {
//             and: 'en',
//             second: 'seconde',
//             seconds: 'seconden',
//             minute: 'minuut',
//             minutes: 'minuten',
//             hour: 'uur',
//             hours: 'uur',
//             day: 'dag',
//             days: 'dagen'
//         },
//         // Polish (Polski)
//         pl: {
//             and: 'i',
//             second: 'sekunda',
//             seconds: 'sekund(y)',
//             minute: 'minuta',
//             minutes: 'minut(y)',
//             hour: 'godzina',
//             hours: 'godzin(y)',
//             day: 'dzień',
//             days: 'dni'
//         },
//         // Portuguese (Português)
//         pt: {
//             and: 'e',
//             second: 'segundo',
//             seconds: 'segundos',
//             minute: 'minuto',
//             minutes: 'minutos',
//             hour: 'hora',
//             hours: 'horas',
//             day: 'dia',
//             days: 'dias'

//         },
//         // Brazilian Portuguese (Português do Brasil)
//         'pt-br': {
//             and: 'e',
//             second: 'segundo',
//             seconds: 'segundos',
//             minute: 'minuto',
//             minutes: 'minutos',
//             hour: 'hora',
//             hours: 'horas',
//             day: 'dia',
//             days: 'dias'

//         },
//         // Russian (русский)
//         ru: {
//             and: 'и',
//             second: 'секунда',
//             seconds: 'секунд',
//             minute: 'минута',
//             minutes: 'минут',
//             hour: 'час',
//             hours: 'часов',
//             day: 'день',
//             days: 'дней'
//         },
//         // Serbian (српски језик)
//         sr: {
//             and: 'i',
//             second: 'sekundu',
//             seconds: 'sekunde/-i',
//             minute: 'minutu',
//             minutes: 'minute/-a',
//             hour: 'sat',
//             hours: 'sata/-i',
//             day: 'dan',
//             days: 'dana'
//         },
//         // Vietnamese (Tiếng Việt)
//         vi: {
//             and: 'và',
//             second: 'giây',
//             seconds: 'giây',
//             minute: 'phút',
//             minutes: 'phút',
//             hour: 'giờ',
//             hours: 'giờ',
//             day: 'ngày',
//             days: 'ngày'
//         },
//         // Chinese (中文)
//         zh: {
//             and: ' ',
//             second: '秒',
//             seconds: '秒',
//             minute: '分',
//             minutes: '分',
//             hour: '小时',
//             hours: '小时',
//             day: '天',
//             days: '天'
//         }
//     }, module.translations || {});
//     var countdowns = [],
//         i18n = translations[
//             mw.config.get('wgContentLanguage')
//         ] || translations.zh,
//         NO_LEADING_ZEROS = 1;

//     function output(i, diff) {
//         /*jshint bitwise:false*/
//         var delta, result, parts = [];
//         delta = diff % 60;
//         parts.unshift(delta + ' ' + i18n[delta === 1 ? 'second' : 'seconds']);
//         diff = Math.floor(diff / 60);
//         delta = diff % 60;
//         parts.unshift(delta + ' ' + i18n[delta === 1 ? 'minute' : 'minutes']);
//         diff = Math.floor(diff / 60);
//         delta = diff % 24;
//         parts.unshift(delta + ' ' + i18n[delta === 1 ? 'hour' : 'hours']);
//         diff = Math.floor(diff / 24);
//         parts.unshift(diff + ' ' + i18n[diff === 1 ? 'day' : 'days']);
//         result = parts.pop();
//         if (countdowns[i].opts & NO_LEADING_ZEROS) {
//             while (parts.length && parts[0][0] === '0') {
//                 parts.shift();
//             }
//         }
//         if (parts.length) {
//             result = parts.join(', ') + ' ' + i18n.and + ' ' + result;
//         }
//         countdowns[i].node.text(result);
//     }

//     function end(i) {
//         var c = countdowns[i].node.parent();
//         switch (c.attr('data-end')) {
//             case 'remove':
//                 c.remove();
//                 return true;
//             case 'stop':
//                 output(i, 0);
//                 return true;
//             case 'toggle':
//                 var toggle = c.attr('data-toggle');
//                 if (toggle && $(toggle).length) {
//                     $(toggle).css('display', 'inline');
//                     c.css('display', 'none');
//                     return true;
//                 }
//                 break;
//             case 'callback':
//                 var callback = c.attr('data-callback');
//                 if (callback && $.isFunction(module[callback])) {
//                     output(i, 0);
//                     module[callback].call(c);
//                     return true;
//                 }
//                 break;
//         }
//         countdowns[i].countup = true;
//         output(i, 0);
//         return false;
//     }

//     function update() {
//         var now = Date.now();
//         var countdownsToRemove = [];
//         $.each(countdowns.slice(0), function (i, countdown) {
//             var diff = Math.floor((countdown.date - now) / 1000);
//             if (diff <= 0 && !countdown.countup) {
//                 if (end(i)) countdownsToRemove.push(i);
//             } else {
//                 output(i, Math.abs(diff));
//             }
//         });
//         var x;
//         while ((x = countdownsToRemove.pop()) !== undefined) {
//             countdowns.splice(x, 1);
//         }
//         if (countdowns.length) {
//             window.setTimeout(function () {
//                 update();
//             }, 1000);
//         }
//     }

//     function getOptions(node) {
//         /*jshint bitwise:false*/
//         var text = node.parent().attr('data-options'),
//             opts = 0;
//         if (text) {
//             if (/no-leading-zeros/.test(text)) {
//                 opts |= NO_LEADING_ZEROS;
//             }
//         }
//         return opts;
//     }

//     $(function () {
//         var countdown = $('.countdown');
//         if (!countdown.length) return;
//         $('.nocountdown').css('display', 'none');
//         countdown
//             .css('display', 'inline')
//             .find('.countdowndate')
//             .each(function () {
//                 var $this = $(this),
//                     date = (new Date($this.text())).valueOf();
//                 if (isNaN(date)) {
//                     $this.text('BAD DATE');
//                     return;
//                 }
//                 countdowns.push({
//                     node: $this,
//                     opts: getOptions($this),
//                     date: date,
//                 });
//             });
//         if (countdowns.length) {
//             update();
//         }
//     });

// } (window.countdownTimer = window.countdownTimer || {}, mediaWiki, jQuery));
// //</source>

// /*   导航   */
// $(function () {
//     /*战舰少女R导航*/
//     (function ($, de) {
//         /*导航栏悬浮、点击展开*/
//         $(".banner1").hover(function () {
//             $(this).find(".banner2").eq(0).show();
//         }, function () {
//             $(this).find(".banner2").eq(0).hide();
//         });
//         var isTouch = ('ontouchstart' in de) ? 'touchstart' : 'click', _on = $.fn.on;
//         $.fn.on = function () {
//             arguments[0] = (arguments[0] === 'click') ? isTouch : arguments[0];
//             return _on.apply(this, arguments);
//         };
//         $(".banner1").on("click", function () {
//             var obj = $(this).find(".banner2").eq(0);
//             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++;
//         }

//     } (jQuery, document.documentElement));
// });

// /* 显示上级页面标题的链接 */
// $(function () {
//     if (mw.config.values.wgPageName.indexOf('/') != -1 && !$('.subpages')[0] && (mw.config.values.wgNamespaceIds.special != mw.config.values.wgNamespaceNumber || mw.config.values.wgPageName.indexOf('Special:移动页面') != -1)) {
//         var links = mw.config.values.wgPageName.split('/'),
//             link = '/wiki',
//             subpages = $('<span class="subpages"></span>').text('<'),
//             length = links.length - 1,
//             index;
//         if (mw.config.values.wgPageName.indexOf('Special:移动页面') != -1) links.splice(0, 1);
//         for (index = 0; index < length; index++) {
//             link += '/' + links[index];
//             subpages.append($('<a/>', {
//                 text: ' ' + links[index],
//                 href: link
//             }));
//             if (length - index - 1) subpages.append(" |");
//         }
//         $('#contentSub').prepend(subpages);
//     }
// });
// /* sitenotice */
// $(function () {
//     var self = $('#siteNoticeScroll');
//     if (!self[0]) return;
//     var ul = self.find('ul:first');
//     ul.width(self.width() * self.find('li').length).attr({
//         'data-left': 0,
//         'data-length': self.find('li').length
//     }).find('li').width(self.width());
//     window.setInterval(function () {
//         var dataset = ul[0].dataset,
//             oldLeft = +dataset.left;
//         ul.css('marginLeft', -(++oldLeft * self.width()) + 'px').delay(730).queue(function () {
//             dataset.left = oldLeft === +dataset.length - 1 ? -1 : oldLeft;
//             $(this).dequeue();
//         });
//     }, 5000);
//     $(window).on('resize', function () {
//         ul.width(self.width() * self.find('li').length).animate({
//             marginLeft: -((+ul[0].dataset.left === -1 ? 0 : +ul[0].dataset.left) * self.width()) + 'px'
//         }, 370);
//     });
// });

// /* Google Analytics */
// /* 
//   (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
//   (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
//   m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
//   })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

//   ga('create', 'UA-79438840-1', 'auto');
//   ga('send', 'pageview');
//  */

// /* 百度推送 */
// /*
// (function(){
//     var bp = document.createElement('script');
//     var curProtocol = window.location.protocol.split(':')[0];
//         if (curProtocol === 'https') {
//             bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';        
//         }
//         else {
//             bp.src = 'http://push.zhanzhang.baidu.com/push.js';
//         }
//         var s = document.getElementsByTagName("script")[0];
//         s.parentNode.insertBefore(bp, s);
// })();
// */

// /*百度推送改*/
// /*
// (function(){
// var canonicalURL, curProtocol;
// //Get the <link> tag
// var x=document.getElementsByTagName("link");
// //Find the last canonical URL
// if(x.length > 0){
//     for (var i=0;i<x.length;i++){
//         if(x[i].rel.toLowerCase() == 'canonical' && x[i].href){
//             canonicalURL=x[i].href;
//         }
//     }
// }
// //Get protocol
// if (!canonicalURL){
//     curProtocol = window.location.protocol.split(':')[0];
// }
// else{
//     curProtocol = canonicalURL.split(':')[0];
// }
// //Get current URL if the canonical URL does not exist
// if (!canonicalURL) canonicalURL = window.location.href;
// //Assign script content. Replace current URL with the canonical URL
// !function(){var e=/([http|https]:\/\/[a-zA-Z0-9\_\.]+\.baidu\.com)/gi,r=canonicalURL,t=document.referrer;if(!e.test(r)){var n=(String(curProtocol).toLowerCase() === 'https')?"https://sp0.baidu.com/9_Q4simg2RQJ8t7jm9iCKT-xh_/s.gif":"//api.share.baidu.com/s.gif";t?(n+="?r="+encodeURIComponent(document.referrer),r&&(n+="&l="+r)):r&&(n+="?l="+r);var i=new Image;i.src=n}}(window);})();
// */

// /*齐柏林页面专用*/
// function MM_effectGrowShrink(targetElement, duration, from, to, toggle, referHeight, growFromCenter)
// {
// 	Spry.Effect.DoGrow(targetElement, {duration: duration, from: from, to: to, toggle: toggle, referHeight: referHeight, growCenter: growFromCenter});
// }

// /* jQuery.pin.js */
// (function ($) {
//     "use strict";
//     $.fn.pin = function (options) {
//         var scrollY = 0, elements = [], disabled = false, $window = $(window);

//         options = options || {};

//         var recalculateLimits = function () {
//             for (var i=0, len=elements.length; i<len; i++) {
//                 var $this = elements[i];

//                 if (options.minWidth && $window.width() <= options.minWidth) {
//                     if ($this.parent().is(".pin-wrapper")) { $this.unwrap(); }
//                     $this.css({width: "", left: "", top: "", position: ""});
//                     if (options.activeClass) { $this.removeClass(options.activeClass); }
//                     disabled = true;
//                     continue;
//                 } else {
//                     disabled = false;
//                 }

//                 var $container = options.containerSelector ? $this.closest(options.containerSelector) : $(document.body);
//                 var offset = $this.offset();
//                 var containerOffset = $container.offset();
//                 var parentOffset = $this.offsetParent().offset();

//                 if (!$this.parent().is(".pin-wrapper")) {
//                     $this.wrap("<div class='pin-wrapper'>");
//                 }

//                 var pad = $.extend({
//                   top: 0,
//                   bottom: 0
//                 }, options.padding || {});

//                 $this.data("pin", {
//                     pad: pad,
//                     from: (options.containerSelector ? containerOffset.top : offset.top) - pad.top,
//                     to: containerOffset.top + $container.height() - $this.outerHeight() - pad.bottom,
//                     end: containerOffset.top + $container.height(),
//                     parentTop: parentOffset.top
//                 });

//                 $this.css({width: $this.outerWidth()});
//                 $this.parent().css("height", $this.outerHeight());
//             }
//         };

//         var onScroll = function () {
//             if (disabled) { return; }

//             scrollY = $window.scrollTop();

//             var elmts = [];
//             for (var i=0, len=elements.length; i<len; i++) {          
//                 var $this = $(elements[i]),
//                     data  = $this.data("pin");

//                 if (!data) { // Removed element
//                   continue;
//                 }

//                 elmts.push($this); 
                  
//                 var from = data.from - data.pad.bottom,
//                     to = data.to - data.pad.top;
              
//                 if (from + $this.outerHeight() > data.end) {
//                     $this.css('position', '');
//                     continue;
//                 }
              
//                 if (from < scrollY && to > scrollY) {
//                     !($this.css("position") == "fixed") && $this.css({
//                         left: $this.offset().left,
//                         top: data.pad.top
//                     }).css("position", "fixed");
//                     if (options.activeClass) { $this.addClass(options.activeClass); }
//                 } else if (scrollY >= to) {
//                     $this.css({
//                         left: "",
//                         top: to - data.parentTop + data.pad.top
//                     }).css("position", "absolute");
//                     if (options.activeClass) { $this.addClass(options.activeClass); }
//                 } else {
//                     $this.css({position: "", top: "", left: ""});
//                     if (options.activeClass) { $this.removeClass(options.activeClass); }
//                 }
//           }
//           elements = elmts;
//         };

//         var update = function () { recalculateLimits(); onScroll(); };

//         this.each(function () {
//             var $this = $(this), 
//                 data  = $(this).data('pin') || {};

//             if (data && data.update) { return; }
//             elements.push($this);
//             $("img", this).one("load", recalculateLimits);
//             data.update = update;
//             $(this).data('pin', data);
//         });

//         $window.scroll(onScroll);
//         $window.resize(function () { recalculateLimits(); });
//         recalculateLimits();

//         $window.load(update);

//         return this;
//       };
// })(jQuery);
// /* END jQuery.pin.js */
// /* Adpex个人页面专专用 */
// $(".pinned").pin();

// /* 打咪咪比赛专用  */
// $(document).ready(function(){
// 			$("#random_watch").click(function(){
				
			
// 			url = new Array();
// 			url[0]="http://live.bilibili.com/109179"
// 			url[1]="https://www.douyu.com/336980"
// 			url[2]="http://live.bilibili.com/183124"
			
// 			url[4]="http://live.bilibili.com/93923 "
// 			url[5]="https://www.douyu.com/441839"
// 			url[6]="https://www.douyu.com/1568"
// 			url[7]="http://live.bilibili.com/live/2014642.html"
// 			url[8]="http://www.douyu.com/852163"
// 			url[9]="https://www.douyu.com/1502914"
// 			url[10]="http://live.bilibili.com/1318658"
// 			url[11]="http://live.bilibili.com/90341"
// 			url[12]="http://live.bilibili.com/90240"
// 			url[13]="http://live.bilibili.com/143646"
// 			url[14]="http://live.bilibili.com/24502"
// 			url[15]="https://www.douyu.com/1183161"
// 			url[16]="http://www.douyu.com/foolmagi"
// 			url[17]="https://www.douyu.com/966457"
// 			url[18]="http://live.bilibili.com/57006"
// 			url[19]="http://live.bilibili.com/27948"
// 			url[20]="http://live.bilibili.com/534587"
// 			url[21]="https://www.douyu.com/1228108?1481424287282"
// 			url[22]="http://live.bilibili.com/18995"
// 			url[23]="http://live.bilibili.com/56207"
// 			url[24]="http://live.bilibili.com/1076902"
// 			url[25]="http://live.bilibili.com/1080775"
// 			url[26]="http://live.bilibili.com/56076"
// 			url[27]="http://live.bilibili.com/33409"
// 			url[28]="http://live.bilibili.com/76119"
// 			url[29]="http://live.bilibili.com/2527639"
// 			url[30]="http://live.bilibili.com/52883"
// 			url[31]="http://live.bilibili.com/17682"
// 			url[32]="http://live.bilibili.com/348416"
// 			url[33]="http://live.bilibili.com/163932"
// 			url[34]="http://live.bilibili.com/54638"
// 			url[35]="http://live.bilibili.com/2377121"
// 			url[36]="http://live.bilibili.com/1143121"
// 			url[37]="http://live.bilibili.com/2657692"
// 			url[38]="https://www.douyu.com/1402424"
// 			url[39]="http://live.bilibili.com/438471"
// 			url[40]="https://www.douyu.com/1490091"
// 			url[41]="http://live.bilibili.com/37405"
// 			url[42]="http://live.bilibili.com/71846"
// 			url[43]="https://www.douyu.com/1490657"
// 			url[44]="http://live.bilibili.com/25583"
// 			url[45]="http://live.bilibili.com/54148"
// 			url[46]="http://live.bilibili.com/1633189"
// 			url[47]="http://live.bilibili.com/49301"
// 			url[48]="https://www.douyu.com/925609"
// 			url[49]="http://live.bilibili.com/10970"
// 			url[50]="http://live.bilibili.com/47479"
// 			url[51]="http://live.bilibili.com/844795"
// 			url[52]="http://live.bilibili.com/938814"
// 			url[53]="http://live.bilibili.com/49301"
// 			url[54]="http://live.bilibili.com/951267"
// 			url[55]="http://live.bilibili.com/2639103"
// 			url[56]="http://live.bilibili.com/live/2646929.html"
// 			url[57]="http://live.bilibili.com/145640"
// 			url[58]="http://www.douyu.com/wenrenfangge"
// 			url[59]="http://live.bilibili.com/92703"
// 			url[60]="http://live.bilibili.com/15224"
// 			url[61]="http://live.bilibili.com/854280"
// 			url[62]="https://www.douyu.com/594715"
// 			url[63]="https://www.zhanqi.tv/152576257"
// 			url[64]="https://www.douyu.com/673916"
// 			url[65]="https://www.douyu.com/314463"
// 			url[66]="http://live.bilibili.com/2635681"
// 			url[67]="https://www.douyu.com/304097"
// 			url[68]="http://live.bilibili.com/864181"
// 			url[69]="live.bilibili.com/2296076"
// 			url[70]="http://live.bilibili.com/309855"
// 			url[71]="http://live.bilibili.com/1608950"
// 			url[72]="http://live.bilibili.com/417898"
// 			url[73]="http://live.bilibili.com/55746"
// 			url[74]="http://www.douyu.com/jianniang"
// 			url[75]="http://live.bilibili.com/2597497"
// 			url[76]="http://live.bilibili.com/1736138"
// 			url[77]="http://live.bilibili.com/269717"
// 			url[78]="http://live.bilibili.com/158960"
// 			url[79]="https://www.douyu.com/438554"
// 			url[80]="http://live.bilibili.com/1171461"
// 			url[81]="http://live.bilibili.com/521816"
// 			url[82]="http://live.bilibili.com/129308"
// 			url[83]="http://live.bilibili.com/181994"
// 			url[84]="http://live.bilibili.com/2664976"
// 			url[85]="http://live.bilibili.com/402181"
// 			url[86]="https://www.douyu.com/1488286"
// 			url[87]="http://live.bilibili.com/44240"
// 			url[88]="http://live.bilibili.com/2383203"
// 			url[89]="http://live.bilibili.com/430709"
// 			url[90]="http://live.bilibili.com/24241"
// 			url[91]="http://live.bilibili.com/279432"
// 			url[92]="https://www.douyu.com/1946566"
//                         url[93]="http://www.douyu.com/606387"
// 			url[94]="http://live.bilibili.com/91444"
//                         url[95]="http://live.bilibili.com/400829"
//                         url[96]="https://www.douyu.tv/1494382"
//                         url[97]="http://live.bilibili.com/2714958"
//                         url[98]="http://live.bilibili.com/2133201"
//                         url[99]="https://www.douyu.com/1948994"
//                         url[100]="http://live.bilibili.com/341627"
//                         url[101]="https://www.douyu.com/1693122"
//                         url[102]="http://live.bilibili.com/230448"
//                         url[103]="http://live.bilibili.com/3592696"
//                         url[104]="http://live.bilibili.com/1374757"
//                         url[105]="http://live.bilibili.com/4302561"
//                         url[106]="http://live.bilibili.com/156015"
//                         url[107]="https://www.douyu.com/2140816"
//                         url[108]="http://live.bilibili.com/333001"
//                         url[109]="https://www.douyu.com/907992"
//                         url[110]="http://live.bilibili.com/2620904"
//                         url[111]="http://live.bilibili.com/4303516"
//                         url[112]="http://live.bilibili.com/1029481"
//                         url[113]="http://live.bilibili.com/840729"
//                         url[114]="http://live.bilibili.com/986237"
//                         url[115]="https://www.douyu.com/2088295"
//                         url[116]="http://live.bilibili.com/74198"
//                         url[117]="http://live.bilibili.com/24769"
//                         url[118]="http://live.bilibili.com/92515"
//                         url[119]="http://live.bilibili.com/678456"
//                         url[120]="https://www.douyu.com/1638818"
//                         url[121]="https://www.douyu.com/2102138"
//                         url[122]="https://www.douyu.com/210483"
//                         url[123]="https://www.douyu.com/1501502"
//                         url[124]="http://live.bilibili.com/50184"
//                         url[125]="http://live.bilibili.com/23926"

// 			i = Math.random() * url.length;
//   			i = Math.floor(i);
//   			//alert(url[i]);
//   			window.open(url[i]);  
// 			});
// 		});
// /* 打咪咪end */