打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

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

MediaWiki:Common.js:修订间差异

MediaWiki界面页面
Donnyjie留言 | 贡献
无编辑摘要
无编辑摘要
 
(未显示2个用户的48个中间版本)
第1行: 第1行:
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
// /* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
/* 切换立绘按钮(当前作废) */
 
$(document).ready(function () {
if (mw.config.get('wgUserName') !== null) {
     $("#btn_2").click(function () {
let cookie = 'wbtoken=full; expires=' + new Date(Date.now() + 12*60*60*1000).toUTCString() + '; path=/; domain=.zjsnrwiki.com';
         $("#btn_1, #btn_2").hide();
document.cookie = cookie;
        $("#btn_3, #btn_4").show();
} else {
     });
let cookie = 'wbtoken=; expires=' + new Date(Date.now()).toUTCString() + '; path=/; domain=.zjsnrwiki.com';
    $("#btn_3").click(function () {
document.cookie = cookie;
        $("#btn_1, #btn_3").hide();
}
        $("#btn_2, #btn_4").show();
 
    });
// /* 显示存在的配音文件的播放按钮 */
    $("#btn_4").click(function () {
// $(document).ready(function () {
        $("#btn_1, #btn_4").hide();
//    var players = document.getElementsByClassName('flat');
        $("#btn_2, #btn_3").show();
//     for (var i = 0; i < players.length; i++) {
    });
//        url = players[i].lastChild.href;
    $("#btn_5").click(function () {
//        $.ajax({
        $("#btn_1, #btn_2, #btn_3, #btn_4").show();
//            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');


/* 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 () {
//    $("#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();
//     });
// });


(function (module, mw, $, undefined) {
// /* 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>
// */


    'use strict';
// /*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*/


    var translations = {};
// (function (module, mw, $, undefined) {
    $.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'


        },
//     'use strict';
        // 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'


         },
//    var translations = {};
         // Russian (русский)
//    $.extend(translations, {
         ru: {
//        // Catalan (Català)
             and: 'и',
//        ca: {
             second: 'секунда',
//            and: 'i',
             seconds: 'секунд',
//            second: 'segon',
             minute: 'минута',
//            seconds: 'segons',
             minutes: 'минут',
//            minute: 'minut',
             hour: 'час',
//            minutes: 'minuts',
             hours: 'часов',
//            hour: 'hora',
             day: 'день',
//            hours: 'hores',
             days: 'дней'
//            day: 'dia',
         },
//            days: 'dies'
         // Serbian (српски језик)
//         },
         sr: {
//         // German (Deutsch)
             and: 'i',
//         de: {
             second: 'sekundu',
//             and: 'und',
             seconds: 'sekunde/-i',
//             second: 'Sekunde',
             minute: 'minutu',
//             seconds: 'Sekunden',
             minutes: 'minute/-a',
//             minute: 'Minute',
             hour: 'sat',
//             minutes: 'Minuten',
             hours: 'sata/-i',
//             hour: 'Stunde',
             day: 'dan',
//             hours: 'Stunden',
             days: 'dana'
//             day: 'Tag',
         },
//             days: 'Tage'
         // Vietnamese (Tiếng Việt)
//         },
         vi: {
//         // English (English)
             and: '',
//         en: {
             second: 'giây',
//             and: 'and',
             seconds: 'giây',
//             second: 'second',
             minute: 'phút',
//             seconds: 'seconds',
             minutes: 'phút',
//            minute: 'minute',
             hour: 'giờ',
//            minutes: 'minutes',
             hours: 'giờ',
//            hour: 'hour',
             day: 'ngày',
//            hours: 'hours',
             days: 'ngày'
//            day: 'day',
         },
//            days: 'days'
         // Chinese (中文)
//        },
         zh: {
//        // Greek (Ελληνικά)
             and: ' ',
//        el: {
             second: '秒',
//            and: 'και',
             seconds: '秒',
//            second: 'δευτερόλεπτο',
             minute: '分',
//             seconds: 'δεπτερόλεπτα',
             minutes: '分',
//             minute: 'λετπό',
             hour: '小时',
//             minutes: 'λεπτά',
             hours: '小时',
//            hour: '΄΄ωρα',
             day: '',
//            hours: 'ώρες',
             days: ''
//            day: 'ημέρα',
         }
//            days: 'ημέρες'
    }, module.translations || {});
//        },
    var countdowns = [],
//        // Spanish (Español)
        i18n = translations[
//        es: {
             mw.config.get('wgContentLanguage')
//            and: 'y',
         ] || translations.zh,
//            second: 'segundo',
         NO_LEADING_ZEROS = 1;
//            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'


    function output(i, diff) {
//        },
        /*jshint bitwise:false*/
//         // Brazilian Portuguese (Português do Brasil)
         var delta, result, parts = [];
//         'pt-br': {
         delta = diff % 60;
//            and: 'e',
         parts.unshift(delta + ' ' + i18n[delta === 1 ? 'second' : 'seconds']);
//            second: 'segundo',
        diff = Math.floor(diff / 60);
//            seconds: 'segundos',
        delta = diff % 60;
//            minute: 'minuto',
        parts.unshift(delta + ' ' + i18n[delta === 1 ? 'minute' : 'minutes']);
//            minutes: 'minutos',
        diff = Math.floor(diff / 60);
//            hour: 'hora',
        delta = diff % 24;
//            hours: 'horas',
        parts.unshift(delta + ' ' + i18n[delta === 1 ? 'hour' : 'hours']);
//             day: 'dia',
        diff = Math.floor(diff / 24);
//             days: 'dias'
        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();
//         // Russian (русский)
         switch (c.attr('data-end')) {
//         ru: {
             case 'remove':
//            and: 'и',
                c.remove();
//            second: 'секунда',
                return true;
//            seconds: 'секунд',
             case 'stop':
//            minute: 'минута',
                output(i, 0);
//            minutes: 'минут',
                return true;
//            hour: 'час',
             case 'toggle':
//            hours: 'часов',
                var toggle = c.attr('data-toggle');
//             day: 'день',
                if (toggle && $(toggle).length) {
//            days: 'дней'
                    $(toggle).css('display', 'inline');
//        },
                    c.css('display', 'none');
//        // Serbian (српски језик)
                    return true;
//        sr: {
                }
//             and: 'i',
                break;
//            second: 'sekundu',
             case 'callback':
//            seconds: 'sekunde/-i',
                var callback = c.attr('data-callback');
//            minute: 'minutu',
                if (callback && $.isFunction(module[callback])) {
//             minutes: 'minute/-a',
                    output(i, 0);
//            hour: 'sat',
                    module[callback].call(c);
//            hours: 'sata/-i',
                    return true;
//            day: 'dan',
                }
//            days: 'dana'
                break;
//        },
         }
//        // Vietnamese (Tiếng Việt)
        countdowns[i].countup = true;
//        vi: {
         output(i, 0);
//            and: '',
         return false;
//            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 update() {
//     function output(i, diff) {
         var now = Date.now();
//        /*jshint bitwise:false*/
         var countdownsToRemove = [];
//         var delta, result, parts = [];
         $.each(countdowns.slice(0), function (i, countdown) {
//         delta = diff % 60;
            var diff = Math.floor((countdown.date - now) / 1000);
//         parts.unshift(delta + ' ' + i18n[delta === 1 ? 'second' : 'seconds']);
            if (diff <= 0 && !countdown.countup) {
//        diff = Math.floor(diff / 60);
                if (end(i)) countdownsToRemove.push(i);
//        delta = diff % 60;
            } else {
//        parts.unshift(delta + ' ' + i18n[delta === 1 ? 'minute' : 'minutes']);
                output(i, Math.abs(diff));
//        diff = Math.floor(diff / 60);
            }
//        delta = diff % 24;
         });
//         parts.unshift(delta + ' ' + i18n[delta === 1 ? 'hour' : 'hours']);
         var x;
//         diff = Math.floor(diff / 24);
         while ((x = countdownsToRemove.pop()) !== undefined) {
//         parts.unshift(diff + ' ' + i18n[diff === 1 ? 'day' : 'days']);
            countdowns.splice(x, 1);
//        result = parts.pop();
         }
//        if (countdowns[i].opts & NO_LEADING_ZEROS) {
         if (countdowns.length) {
//            while (parts.length && parts[0][0] === '0') {
             window.setTimeout(function () {
//                parts.shift();
                update();
//            }
            }, 1000);
//         }
        }
//         if (parts.length) {
     }
//             result = parts.join(', ') + ' ' + i18n.and + ' ' + result;
//        }
//        countdowns[i].node.text(result);
//     }


     function getOptions(node) {
//     function end(i) {
        /*jshint bitwise:false*/
//        var c = countdowns[i].node.parent();
         var text = node.parent().attr('data-options'),
//        switch (c.attr('data-end')) {
             opts = 0;
//            case 'remove':
        if (text) {
//                c.remove();
             if (/no-leading-zeros/.test(text)) {
//                return true;
                 opts |= NO_LEADING_ZEROS;
//            case 'stop':
            }
//                output(i, 0);
         }
//                return true;
         return opts;
//             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 () {
//     function update() {
         var countdown = $('.countdown');
//         var now = Date.now();
         if (!countdown.length) return;
//         var countdownsToRemove = [];
         $('.nocountdown').css('display', 'none');
//         $.each(countdowns.slice(0), function (i, countdown) {
        countdown
//             var diff = Math.floor((countdown.date - now) / 1000);
             .css('display', 'inline')
//             if (diff <= 0 && !countdown.countup) {
            .find('.countdowndate')
//                 if (end(i)) countdownsToRemove.push(i);
             .each(function () {
//            } else {
                 var $this = $(this),
//                 output(i, Math.abs(diff));
                    date = (new Date($this.text())).valueOf();
//            }
                 if (isNaN(date)) {
//        });
                    $this.text('BAD DATE');
//        var x;
                    return;
//        while ((x = countdownsToRemove.pop()) !== undefined) {
                }
//            countdowns.splice(x, 1);
                countdowns.push({
//        }
                    node: $this,
//         if (countdowns.length) {
                    opts: getOptions($this),
//             window.setTimeout(function () {
                    date: date,
//                update();
                });
//            }, 1000);
            });
//         }
         if (countdowns.length) {
//     }
             update();
         }
     });


} (window.countdownTimer = window.countdownTimer || {}, mediaWiki, jQuery));
//    function getOptions(node) {
//</source>
//        /*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 () {
$(function () {
//         var countdown = $('.countdown');
    /*战舰少女R导航*/
//        if (!countdown.length) return;
    (function ($, de) {
//        $('.nocountdown').css('display', 'none');
        /*导航栏悬浮、点击展开*/
//         countdown
         $(".banner1").hover(function () {
//             .css('display', 'inline')
            $(this).find(".banner2").eq(0).show();
//             .find('.countdowndate')
         }, function () {
//             .each(function () {
             $(this).find(".banner2").eq(0).hide();
//                var $this = $(this),
        });
//                    date = (new Date($this.text())).valueOf();
        var isTouch = ('ontouchstart' in de) ? 'touchstart' : 'click', _on = $.fn.on;
//                if (isNaN(date)) {
        $.fn.on = function () {
//                    $this.text('BAD DATE');
             arguments[0] = (arguments[0] === 'click') ? isTouch : arguments[0];
//                    return;
             return _on.apply(this, arguments);
//                }
        };
//                 countdowns.push({
        $(".banner1").on("click", function () {
//                    node: $this,
            var obj = $(this).find(".banner2").eq(0);
//                    opts: getOptions($this),
            if (obj.is("visible")) {
//                    date: date,
                obj.hide();
//                });
            } else {
//             });
                 obj.show();
//         if (countdowns.length) {
            }
//            update();
            $(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);
// } (window.countdownTimer = window.countdownTimer || {}, mediaWiki, jQuery));
        changeCountDown();
// //</source>
        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 () {
//    /*战舰少女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);
$(function () {
//         changeCountDown();
    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)) {
//         setInterval(function () {
        var links = mw.config.values.wgPageName.split('/'),
//            changeCountDown();
            link = '/wiki',
//         }, 1000);
            subpages = $('<span class="subpages"></span>').text('<'),
//         function changeCountDown() {
            length = links.length - 1,
//            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';
            index;
//            if (passed < 60) _s = ",成功+1day";
         if (mw.config.values.wgPageName.indexOf('Special:移动页面') != -1) links.splice(0, 1);
//            if (passed > 12 * 3600) _c = "#fc0";
        for (index = 0; index < length; index++) {
//             if (passed > 23 * 3600) _c = "#F30";
            link += '/' + links[index];
//            $("#zjsnr-lavetime").html("<span style='color:" + _c + "'>" + h + "</span>" + "小时" + "<span style='color:" + _c + "'>" + m + "</span>" + "分" + "<span style='color:" + _c + "'>" + s + "</span>" + "秒" + _s);
            subpages.append($('<a/>', {
//            passed++;
                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 */
//     } (jQuery, document.documentElement));
  (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 () {
//    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(){
// /*
    var bp = document.createElement('script');
//  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    var curProtocol = window.location.protocol.split(':')[0];
//  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    if (curProtocol === 'https') {
//   m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';      
//  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
    }
    else {
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
    }
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();


/*齐柏林页面专用*/
//  ga('create', 'UA-79438840-1', 'auto');
function MM_effectGrowShrink(targetElement, duration, from, to, toggle, referHeight, growFromCenter)
//  ga('send', 'pageview');
{
//  */
Spry.Effect.DoGrow(targetElement, {duration: duration, from: from, to: to, toggle: toggle, referHeight: referHeight, growCenter: growFromCenter});
 
}
// /* 百度推送 */
// /*
// (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 */
// /* jQuery.pin.js */
(function ($) {
// (function ($) {
     "use strict";
//     "use strict";
     $.fn.pin = function (options) {
//     $.fn.pin = function (options) {
         var scrollY = 0, elements = [], disabled = false, $window = $(window);
//         var scrollY = 0, elements = [], disabled = false, $window = $(window);


         options = options || {};
//         options = options || {};


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


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


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


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


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


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


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


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


             scrollY = $window.scrollTop();
//             scrollY = $window.scrollTop();


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


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


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


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


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


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


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


         $window.load(update);
//         $window.load(update);


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


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


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