3D OWoT script: Difference between revisions

From Our World of Text Wiki
Jump to navigation Jump to search
(this is the script guys)
 
(fp deleted all face reveals)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
menu.addEntry("<input id='3d' type='range' min='-10' max='10'></input>");
<syntaxhighlight lang="js">
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(){
     w.chat.send("/warp " + (!+document.getElementById("3d").value ? "" : "dimension3dz" + document.getElementById("3d").value));
     w.chat.send("/warp " + (!+document.getElementById("3d").value ? "" : "dimension3dz" + document.getElementById("3d").value));
  };
  };</syntaxhighlight>
[[Category:Scripts]]

Latest revision as of 10:19, 21 October 2023

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));
 };