Difference between revisions of "MediaWiki:Common.js"

From Pavlov VR Wiki
Jump to: navigation, search
m
m
Line 35: Line 35:
  
 
/* end */
 
/* end */
 +
 +
 +
span.reddit-link a { color: white; }

Revision as of 21:09, 18 July 2017

/* 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 */


span.reddit-link a { color: white; }