3D OWOT script: Difference between revisions
Jump to navigation
Jump to search
Dat Hack3r (talk | contribs) m (Dat Hack3r moved page 3D OWoT script to 3D OWOT script: Used correct abbreviation, OWOT. (Per the Guide.)) |
Dat Hack3r (talk | contribs) m (Removed unnecessary syntaxhighlight.) |
||
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").onchange = function() { | |||
w.chat.send("/warp " + (!+document.getElementById("3d").value ? "" : "dimension3dz" + document.getElementById("3d").value)); | |||
} | |||
[[Category:Scripts]] | |||
/* [[Category:Scripts]] */ |
Revision as of 09:29, 10 December 2024
menu.addEntry("<input id='3d' type='range' min='-10' max='10'></input>"); document.getElementById("3d").style.width = "100%"; document.getElementById("3d").onchange = function() {
w.chat.send("/warp " + (!+document.getElementById("3d").value ? "" : "dimension3dz" + document.getElementById("3d").value));
}
/* */