Sandbox2: Difference between revisions

From Noisebridge
Jump to navigation Jump to search
(New page: Welcome to Sandbox2 <onlyinclude> Sandbox2 include </onlyinclude>)
 
No edit summary
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[MediaWiki:Sandbox2.js|JavaScript]]<br>
Snadbox 2 paeg is for u to test shite :0<br>
Welcome to Sandbox2
Welcome to Sandbox2
<onlyinclude>
<onlyinclude>
Sandbox2 include
This text exists on the Sandbox2 page
</onlyinclude>
</onlyinclude>
<div id="demo">test test testes</div>
<div id='test'> gaming </div>
<button id="demo2">Click Me!</button>
<button type="button" onclick='document.getElementById("demo").innerHTML = "test succest!"'>Click Me!</button>
if ( mw.config.get( 'wgPageName' ) === 'Sandbox2' ) {
    mw.loader.load( '/w/index.php?title=MediaWiki:Sandbox2.js&action=raw&ctype=text/javascript' );
}
$(function () {
    var myElement = document.getElementById('test');
    myElement.innerHTML = '<p>success</p>';
}());
var templateLiteral = [`
    <!-- HTML_CODE_COMES_HERE -->
`]
var head = document.querySelector("head");
head.innerHTML = templateLiteral;
== aa ==
var fontloader = [`
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" rel="stylesheet">
`]
if ( mw.config.get( 'wgPageName' ) === 'Sandbox2' ) {
    var head = document.head;
head.innerHTML = fontloader;
}
var templateLiteral = [`
    testinf
`]
var head = document.querySelector("head");
head.innerHTML = templateLiteral;

Latest revision as of 01:12, 18 August 2022

JavaScript
Snadbox 2 paeg is for u to test shite :0
Welcome to Sandbox2

This text exists on the Sandbox2 page



test test testes
gaming

<button id="demo2">Click Me!</button>

<button type="button" onclick='document.getElementById("demo").innerHTML = "test succest!"'>Click Me!</button>

if ( mw.config.get( 'wgPageName' ) === 'Sandbox2' ) {

   mw.loader.load( '/w/index.php?title=MediaWiki:Sandbox2.js&action=raw&ctype=text/javascript' );

} $(function () {

   var myElement = document.getElementById('test');

myElement.innerHTML = '

success

';

}());

var templateLiteral = [` `]

var head = document.querySelector("head"); head.innerHTML = templateLiteral;

aa[edit]

var fontloader = [`

   <link rel="preconnect" href="https://fonts.googleapis.com"> 
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap" rel="stylesheet">

`]

if ( mw.config.get( 'wgPageName' ) === 'Sandbox2' ) {

   var head = document.head;

head.innerHTML = fontloader; }

var templateLiteral = [`

   testinf

`]

var head = document.querySelector("head"); head.innerHTML = templateLiteral;