3D OWOT script: Difference between revisions
Appearance
Dat Hack3r (talk | contribs) Dat Hack3r changed the content model of the page 3D OWOT script from "wikitext" to "JavaScript": This is JavaScript, so it should be treated as such. |
Dat Hack3r (talk | contribs) Better formatting. |
||
Line 1: | Line 1: | ||
menu.addEntry("<input id='3d' type='range' min='-10' max='10'></input>"); | menu.addEntry("<input id='3d' type='range' min='-10' max='10'></input>"); | ||
document.getElementById("3d").style.width = "100%"; | document.getElementById("3d").style.width = "100%"; | ||
document.getElementById("3d").onchange = function() { | document.getElementById("3d").onchange = function () { | ||
let z = Number(document.getElementById("3d").value); | |||
} | if (z) { | ||
w.chat.send("/warp " + "dimension3dz" + z); | |||
} else { | |||
w.chat.send("/warp"); | |||
} | |||
}; | |||
/* [[Category:Scripts]] */ | /* [[Category:Scripts]] */ |