MediaWiki:Common.js

From Pavlov VR Wiki
Revision as of 20:56, 18 July 2017 by FreakOnALeash (talk | contribs)

Jump to: navigation, search

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 all users on every page load. */
/* Paste JavaScripts below */




/* Pavlov Steam Widget Script: just use {{steam-widget}} on any page to insert a Steam HTML Widget for the Pavlov Steam Store Page */


$(function () {

  var myElement = document.getElementById('pavlov-steam-widget-script');
  myElement.innerHTML = '<iframe src="http://store.steampowered.com/widget/555160/?t=Pavlov%20is%20a%20multiplayer%20VR-FPS%20game%20for%20the%20HTC%20Vive%20(with%20Oculus%20support)%20made%20in%20Unreal%20Engine%204%20using%20the%20forward%20renderer.%0AThe%20Steam%20Workshop%20integration%20allows%20for%20playing%20on%20community%20made%20maps." frameborder="0" width="650" height="200"></iframe>';

}());


/* end */






/* Pavlov Discord Widget Script: just use {{discord-widget}} on any page to insert a Discord HTML Widget for the Pavlov Discord */


$(function () {

  var myElement = document.getElementById('pavlov-discord-widget-script');
  myElement.innerHTML = '<iframe src="https://discordapp.com/widget?id=267301605882200065&theme=dark" width="650" height="350" allowtransparency="true" frameborder="0"></iframe>';

}());


/* end */