MediaWiki:Common.js: Difference between revisions

From Ages of Conflict
Content added Content deleted
(I have no idea what I'm doing, but it'll probably work!)
 
(Throw some numbers in there, might work)
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
$( '#discord-widget' ).html( '<iframe src="https://discord.com/widget?id={SERVER_ID}&theme=dark" width="{WIDTH}" height="{HEIGHT}" allowtransparency="true" frameborder="0" sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"></iframe>' );
$( '#discord-widget' ).html( '<iframe src="https://discord.com/widget?id=1018414678738731068&theme=dark" width="500" height="200" allowtransparency="true" frameborder="0" sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"></iframe>' );

Revision as of 18:09, 26 February 2024

/* Any JavaScript here will be loaded for all users on every page load. */
$( '#discord-widget' ).html( '<iframe src="https://discord.com/widget?id=1018414678738731068&theme=dark" width="500" height="200" allowtransparency="true" frameborder="0" sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"></iframe>' );