Calculator fuck/HTML Code

&lt;html&gt; &lt;body&gt; &lt;h1&gt;Two variable based language&lt;/h1&gt; x: &lt;input id="Var1" type="text" value="0" /&gt; &lt;br /&gt; y: &lt;input id="Var2" type="text" value="0" /&gt; &lt;br /&gt; code &lt;br /&gt; &lt;textarea id="Coding" cols="70" rows="10"&gt;&lt;/textarea&gt; &lt;br /&gt; output &lt;br /&gt; &lt;textarea id="Output" readonly="readonly" cols="70" rows="10"&gt;&lt;/textarea&gt; &lt;br /&gt; &lt;input type="button" onclick="__clear" value="X" /&gt; &lt;input type="button" value="run" onclick="__run" /&gt; &lt;hr /&gt; &lt;pre style="width:100px" onclick="++Var1.value;Coding.value += '*+'"&gt;x += 1&lt;/pre&gt; &lt;pre style="width:100px" onclick="++Var2.value;Coding.value += '+*'"&gt;y += 1&lt;/pre&gt; &lt;pre style="width:100px" onclick="--Var1.value;Coding.value += '*-'"&gt;x -= 1&lt;/pre&gt; &lt;pre style="width:100px" onclick="--Var2.value;Coding.value += '-*'"&gt;y -= 1&lt;/pre&gt; &lt;pre style="width:100px" onclick="var s = Var1.value; Var1.value = Var2.value; Var2.value = s; Coding.value += '**'"&gt;x &amp;lt;--&amp;gt; y&lt;/pre&gt;

&lt;pre style="width:100px" onclick="Var1.value = +Var1.value+ +Var2.value ; Coding.value += '$+'"&gt;x += y&lt;/pre&gt; &lt;pre style="width:100px" onclick="Var2.value = +Var1.value+ +Var2.value ; Coding.value += '+$'"&gt;y += x&lt;/pre&gt;

&lt;pre style="width:100px" onclick="Var1.value = Var1.value-Var2.value; Coding.value += '$-'"&gt;x = x - y&lt;/pre&gt; &lt;pre style="width:100px" onclick="Var2.value = Var1.value-Var2.value; Coding.value += '-$'"&gt;y = x - y&lt;/pre&gt; &lt;pre style="width:100px" onclick="Var1.value = Var2.value-Var1.value; Coding.value += '@-'"&gt;x = y - x&lt;/pre&gt; &lt;pre style="width:100px" onclick="Var2.value = Var2.value-Var1.value; Coding.value += '-@'"&gt;y = y - x&lt;/pre&gt;

&lt;pre style="width:100px" onclick="Var1.value *= -1; Coding.value += '!*'"&gt;x = -x&lt;/pre&gt; &lt;pre style="width:100px" onclick="Var2.value *= -1; Coding.value += '*!'"&gt;y = -y&lt;/pre&gt;

&lt;pre style="width:100px" onclick="Var1.value *= 2; Coding.value += '*2'"&gt;x *= 2&lt;/pre&gt; &lt;pre style="width:100px" onclick="Var2.value *= 2; Coding.value += '2*'"&gt;y *= 2&lt;/pre&gt;

&lt;pre style="width:100px" onclick="Var1.value = Var1.value * Var2.value ; Coding.value += '*m'"&gt;x *= y&lt;/pre&gt; &lt;pre style="width:100px" onclick="Var2.value = Var1.value * Var2.value ; Coding.value += 'm*'"&gt;y *= x&lt;/pre&gt;

&lt;pre style="width:100px" onclick="Var1.value = Math.floor(Var1.value / 2); Coding.value += '*g'"&gt;x /= 2&lt;/pre&gt; &lt;pre style="width:100px" onclick="Var2.value = Math.floor(Var2.value / 2); Coding.value += 'g*'"&gt;y /= 2&lt;/pre&gt;

&lt;pre style="width:100px" onclick="Var1.value = Math.floor(Var1.value / Var2.value); Coding.value += '*d'"&gt;x = x / y&lt;/pre&gt; &lt;pre style="width:100px" onclick="Var2.value = Math.floor(Var1.value / Var2.value); Coding.value += 'd*'"&gt;y = x / y&lt;/pre&gt; &lt;pre style="width:100px" onclick="Var1.value = Math.floor(Var2.value / Var1.value); Coding.value += '*f'"&gt;x = y / x&lt;/pre&gt; &lt;pre style="width:100px" onclick="Var2.value = Math.floor(Var2.value / Var1.value); Coding.value += 'f*'"&gt;y = y / x&lt;/pre&gt;

&lt;pre style="width:100px" onclick="Output.value += String.fromCharCode(+Var1.value); Coding.value += '*p'"&gt;print x&lt;/pre&gt; &lt;pre style="width:100px" onclick="Output.value += String.fromCharCode(+Var2.value); Coding.value += 'p*'"&gt;print y&lt;/pre&gt; &lt;pre style="width:100px" onclick="Var1.value = 0; Coding.value += '*0'"&gt;x -&gt; 0&lt;/pre&gt; &lt;pre style="width:100px" onclick="Var2.value = 0; Coding.value += '0*'"&gt;y -&gt; 0&lt;/pre&gt; &lt;/body&gt; &lt;script type="text/javascript"&gt; //&lt;![CDATA[ var __clear = function { Var1.value = 0; Var2.value = 0; Output.value = ''; Coding.value = ''; } var __run = function { // initialize Var1.value = 0; Var2.value = 0; Output.value = ''; for(var i = 0; i &lt; Coding.value.length; i += 2) { switch (Coding.value.slice(i,i + 2)){ case "*+": ++Var1.value; break; case "+*": ++Var2.value; break; case "*-": --Var1.value; break; case "-*": --Var2.value; break; case "**": var s = Var1.value; Var1.value = Var2.value; Var2.value = s;     break; case "$+": Var1.value = +Var1.value + +Var2.value; break; case "+$": Var2.value = +Var1.value + +Var2.value; break; case "$-": Var1.value = Var1.value-Var2.value; break; case "-$": Var2.value = Var1.value-Var2.value; break; case "@-": Var1.value = Var2.value-Var1.value; break; case "-@": Var2.value = Var2.value-Var1.value; break; case "!*": Var1.value *= -1; break; case "*!": Var2.value *= -1; break; case "*2": Var1.value *= 2; break; case "2*": Var2.value *= 2; break; case "*m": Var1.value *= Var2.value; break; case "m*": Var2.value *= Var1.value; break; case "*g": Var1.value = Math.floor(Var1.value/2); break; case "g*": Var2.value = Math.floor(Var2.value/2); break; case "*d": Var1.value = Math.floor(Var1.value/Var2.value); break; case "d*": Var2.value = Math.floor(Var1.value/Var2.value); case "*f": Var1.value = Math.floor(Var2.value/Var1.value); break; case "f*": Var2.value = Math.floor(Var2.value/Var1.value); break; case "*p": Output.value += String.fromCharCode(+Var1.value); break; case "p*": Output.value += String.fromCharCode(+Var2.value); break; case "*0": Var1.value = 0; break; case "0*": Var2.value = 0;

} } } //]]&gt; &lt;/script&gt; &lt;/html&gt;