|
|
第7行: |
第7行: |
|
| |
|
| /*= 解决jQuery冲突问题 =*/ | | /*= 解决jQuery冲突问题 =*/ |
| /*= 冲突问题版本更新已修复 =*/
| |
| /*(function() {
| |
| var $0 = $;
| |
| var $1 = window.$;
| |
| if ($0 == $1) {
| |
| $0.noConflict();
| |
| $1 = window.$ || $0;
| |
| window.$ = $0;
| |
| }
| |
| $0.conflict = function() { return $1 };
| |
| $1.conflict = function() { return $0 };
| |
| })();*/
| |
|
| |
| /*修复音频播放文字*/
| |
| $('.audio_player-playpause a').text('');
| |
|
| |
| /* 新播放器 {{模板:音频}} */
| |
| $('.audio-controls').click(function () {
| |
| var audio = $(this).parent().find('audio').get(0);
| |
| audio.addEventListener('ended', audioEnded, false); // 监听播放完成事件
| |
| // 改变暂停/播放icon
| |
| if (audio.paused) {
| |
| audio.play();
| |
| $(this).find('.icon-btn').removeClass('icon-play').addClass('icon-pause');
| |
| } else {
| |
| audio.pause();
| |
| $(this).find('.icon-btn').removeClass('icon-pause').addClass('icon-play');
| |
| }
| |
| })
| |
| // 播放完成
| |
| function audioEnded() {
| |
| var audio = this;
| |
| var button=$(audio).siblings('.audio-controls').find('.icon-btn')
| |
| audio.currentTime = 0;
| |
| audio.pause();
| |
| button.removeClass('icon-pause').addClass('icon-play');
| |
| }
| |
|
| |
| // {{模板:网易云音乐}}
| |
| mw.loader.load("//wiki.biligame.com/blhx/index.php?title=Mediawiki:Music163OutChain.js&action=raw&ctype=text/javascript", "text/javascript");
| |
| // {{模板:舰队模拟器/舰队}}
| |
| mw.loader.load("//wiki.biligame.com/blhx/index.php?title=Mediawiki:AzurLaneFleetShare.css&action=raw&ctype=text/css", "text/css");
| |
|
| |
|
| /* --编辑摘要-- */ | | /* --编辑摘要-- */ |