• 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 2: Line 2:  
$(window).load(function(){
 
$(window).load(function(){
 
console.log('sm2 init');
 
console.log('sm2 init');
/**
+
 
* Prepares file links so that SoundManager 2 can modify them.
+
$('a.internal','span.audio_button',mw.util.$content)
* @see [[Template:sm2]]
+
.attr({'class':'sm2_button','title':'Play'})
* @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
+
.text('Play')
**/
+
.unwrap();
$('a.internal','span.audio_button',mw.util.$content).attr({'class':'sm2_button','title':'Play'}).text('Play').unwrap();
+
 
console.log('JFC its already installed?');
+
console.log('it stops here');
 +
 
 
  if (mw.loader.getState('ext.wfSoundManager2Button') === null) {
 
  if (mw.loader.getState('ext.wfSoundManager2Button') === null) {
 
console.log('sm2 install');
 
console.log('sm2 install');
/**
  −
* 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)
  −
**/
      
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':
15

edits

Navigation menu