• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
m
debug
Line 1: Line 1:  +
console.log('sm2 loaded');
 
$(window).load(function(){
 
$(window).load(function(){
/**
+
console.log('sm2 init');
* Prepares file links so that SoundManager 2 can modify them.
  −
* @see [[Template:sm2]]
  −
* @see https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/SoundManager2Button.git;a=blob;f=SoundManager2Button.php;h=4a6b8c571b818afdd69cbcfd03cd774997eebc7a;hb=refs/heads/REL1_20#l104
  −
**/
  −
$('a.internal','span.audio_button',mw.util.$content).attr({'class':'sm2_button','title':'Play'}).text('Play').unwrap();
     −
if (mw.loader.getState('ext.wfSoundManager2Button') === null) {
+
$('a.internal','span.audio_button',mw.util.$content).attr({'class':'sm2_button','title':'Play'}).text('Play').unwrap();
/**
  −
* Complex code that is added upon "SoundManager 2" (SM2) installation.
  −
* Obsolete when SM2 gets installed (because SoundManager2Button adds this code)
  −
*
  −
* https://www.mediawiki.org/wiki/Extension:SoundManager2Button
  −
* http://schillmania.com/projects/soundmanager2/
  −
* @version 0.3.3 (REL1_20)
  −
**/
      +
if (mw.loader.getState('ext.wfSoundManager2Button') === null) {
 +
console.log('implementing sm2');
 
mw.loader.implement("ext.wfSoundManager2Button",function($){(function(window){var soundManager=null;function SoundManager(smURL,smID){this.setupOptions={'url':(smURL||null),'flashVersion':8,'debugMode':true,'debugFlash':false,'useConsole':true,'consoleOnly':true,'waitForWindowLoad':false,'bgColor':'#ffffff','useHighPerformance':false,'flashPollingInterval':null,'html5PollingInterval':null,'flashLoadTimeout':1000,'wmode':null,'allowScriptAccess':'always','useFlashBlock':false,'useHTML5Audio':true,'html5Test':/^(probably|maybe)$/i,'preferFlash':true,'noSWFCache':false};this.defaultOptions={'autoLoad':false,'autoPlay':false,'from':null,'loops':1,'onid3':null,'onload':null,'whileloading':null,'onplay':null,'onpause':null,'onresume':null,'whileplaying':null,'onposition':null,'onstop':null,'onfailure':null,'onfinish':null,'multiShot':true,'multiShotEvents':false,'position':null,'pan':0,'stream':true,'to':null,'type':null,'usePolicyFile':false,'volume':100};this.flash9Options={'isMovieStar':
 
mw.loader.implement("ext.wfSoundManager2Button",function($){(function(window){var soundManager=null;function SoundManager(smURL,smID){this.setupOptions={'url':(smURL||null),'flashVersion':8,'debugMode':true,'debugFlash':false,'useConsole':true,'consoleOnly':true,'waitForWindowLoad':false,'bgColor':'#ffffff','useHighPerformance':false,'flashPollingInterval':null,'html5PollingInterval':null,'flashLoadTimeout':1000,'wmode':null,'allowScriptAccess':'always','useFlashBlock':false,'useHTML5Audio':true,'html5Test':/^(probably|maybe)$/i,'preferFlash':true,'noSWFCache':false};this.defaultOptions={'autoLoad':false,'autoPlay':false,'from':null,'loops':1,'onid3':null,'onload':null,'whileloading':null,'onplay':null,'onpause':null,'onresume':null,'whileplaying':null,'onposition':null,'onstop':null,'onfailure':null,'onfinish':null,'multiShot':true,'multiShotEvents':false,'position':null,'pan':0,'stream':true,'to':null,'type':null,'usePolicyFile':false,'volume':100};this.flash9Options={'isMovieStar':
 
null,'usePeakData':false,'useWaveformData':false,'useEQData':false,'onbufferchange':null,'ondataerror':null};this.movieStarOptions={'bufferTime':3,'serverURL':null,'onconnect':null,'duration':null};this.audioFormats={'mp3':{'type':['audio/mpeg; codecs="mp3"','audio/mpeg','audio/mp3','audio/MPA','audio/mpa-robust'],'required':true},'mp4':{'related':['aac','m4a'],'type':['audio/mp4; codecs="mp4a.40.2"','audio/aac','audio/x-m4a','audio/MP4A-LATM','audio/mpeg4-generic'],'required':false},'ogg':{'type':['audio/ogg; codecs=vorbis'],'required':false},'wav':{'type':['audio/wav; codecs="1"','audio/wav','audio/wave','audio/x-wav'],'required':false}};this.movieID='sm2-container';this.id=(smID||'sm2movie');this.debugID='soundmanager-debug';this.debugURLParam=/([#?&])debug=1/i;this.versionNumber='V2.97a.20120624';this.version=null;this.movieURL=null;this.altURL=null;this.swfLoaded=false;this.enabled=false;this.oMC=null;this.sounds={};this.soundIDs=[];this.muted=false;this.didFlashBlock=false;this.
 
null,'usePeakData':false,'useWaveformData':false,'useEQData':false,'onbufferchange':null,'ondataerror':null};this.movieStarOptions={'bufferTime':3,'serverURL':null,'onconnect':null,'duration':null};this.audioFormats={'mp3':{'type':['audio/mpeg; codecs="mp3"','audio/mpeg','audio/mp3','audio/MPA','audio/mpa-robust'],'required':true},'mp4':{'related':['aac','m4a'],'type':['audio/mp4; codecs="mp4a.40.2"','audio/aac','audio/x-m4a','audio/MP4A-LATM','audio/mpeg4-generic'],'required':false},'ogg':{'type':['audio/ogg; codecs=vorbis'],'required':false},'wav':{'type':['audio/wav; codecs="1"','audio/wav','audio/wave','audio/x-wav'],'required':false}};this.movieID='sm2-container';this.id=(smID||'sm2movie');this.debugID='soundmanager-debug';this.debugURLParam=/([#?&])debug=1/i;this.versionNumber='V2.97a.20120624';this.version=null;this.movieURL=null;this.altURL=null;this.swfLoaded=false;this.enabled=false;this.oMC=null;this.sounds={};this.soundIDs=[];this.muted=false;this.didFlashBlock=false;this.
15

edits

Navigation menu