MediaWiki:Vector.js
From Baloogan Campaign Wiki
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* Any JavaScript here will be loaded for users using the Vector skin */ function handleClick() { try{ TOGGLEA=(TOGGLEA % 2)}catch(e){ TOGGLEA=0; HOLDX=document.getElementById('baloogan_image').getAttribute('width'); HOLDY=document.getElementById('baloogan_image').getAttribute('height'); }; // initialize TOGGLEA, HOLDX, and HOLDY switch(TOGGLEA){ case 0: // this makes it four times as big as it was originally document.getElementById('baloogan_image').setAttribute('width' ,HOLDX*4); break; case 1: // this sets to a original size document.getElementById('baloogan_image').setAttribute('width' ,HOLDX); break; } TOGGLEA++; } document.getElementById('baloogan_image').onclick = handleClick;