JSFiddle - React, Tailwind, and code Playground

by Gabriele Petrioli

HTML

<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>
     

<pre class="prettyprint linenums nocode">
Manipulate[
 tick;
 Module[{a1, a2, a3, v1, v2, v3, h1, a1d, a2d, a3d, z},

  Which[state == "init" || state2 == "on",
   state2 = "off";
   If[state == "init", state = "paused"];  
 state == "running" || state == "step",
   If[currentTime > maxTime, currentTime = 0]
   ]; 
]
</pre>

JavaScript

prettyPrint()