Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html lang="en-us"><!--<![endif]--><head>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8">
- <meta charset="utf-8">
- <head>
- <script type="text/javascript">//<![CDATA[
- "use strict";
- var x = 0,
- $ = function(x){return document.getElementById(x);},
- bw = function(id,val){
- var thid = id, thval= val;
- $(thid).value = thval;
- $(thid).style.display = $(thid).style.display = 'block';
- },
- go = function(idin,idout){
- var res = eval($(idin).value);
- bw(idout, res);
- };
- //]]></script>
- <style type="text/css">
- h3 { margin-top:0; margin-bottom:0; margin-left:10; margin-right:10 }
- input { font-family:"Segoe UI"; font-weight:bold; font-size:10 }
- textarea { font-family:"Consolas"; font-weight:bold; width:80em; height:30em; color:#808010 }
- #inputtitle1 { display:block }
- #input1 { color:#408020 }
- #outputtitle1 { display:block }
- #output1 { color:#804020 }
- #button1 { margin-left:80; color:#408010 }
- #button2 { margin-left:20; color:#804010 }
- </style>
- </head>
- <body bgcolor="#F8F8F0">
- <h3 id="inputtitle1">Input</h3>
- <textarea id="input1" name="input1"></textarea>
- <br/>
- <input id="button1" type="submit" value="Eval Input" onclick="go('input1','output1');return false;" />
- <input id="button2" type="submit" value="Clear Output" onclick="bw('output1','');return false;" />
- <h3 id="outputtitle1">Output</h3>
- <textarea id="output1" name="output1"></textarea>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement