Advertisement
Dragonkoko

weetho

Dec 5th, 2013
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.97 KB | None | 0 0
  1. <html>
  2.     <head>
  3.         <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  4.         <title>Calculator</title>
  5.         <style type="text/css">
  6.              *{
  7.                 margin: 0;
  8.                 font: bold 19px Comic Sans Serif, cursive, sans-serif;
  9.             }
  10.             #calc{
  11.                 border-radius: 3px;
  12.                 width:400px;
  13.                 padding:20 px;
  14.                 margin: 100 px;
  15.                 background:linear-gradient(#1dd2ea,#3d92ea);
  16.                 border:#55555a 5px solid;
  17.                 box-shadow: 0px 8px rgba(0,0,150,0.5);
  18.             }
  19.            
  20.             .bt{
  21.                
  22.                 width:70;
  23.                 height:40;
  24.                 cursor:pointer;
  25.                 border-radius:8px;
  26.                 background:white;
  27.                 margin:10;
  28.                 text-align:center;
  29.             }
  30.             .bt.num:hover {
  31.                 background: #9c89f6;
  32.                 box-shadow: 0px 4px #6b54d3;
  33.                 color: white;
  34.             }
  35.             .bt.num:active {
  36.                 box-shadow: 0px 0px #6b54d3;
  37.                 top : 4px;
  38.             }
  39.             .bt.num{
  40.                 color:white;
  41.                 background-color:#0f6fff;
  42.                 border-bottom:black 2px solid;
  43.                 border-top:2px #6f6f6f solid;
  44.                 box-shadow: 0px 4px rgba(0,0,0,0.5);
  45.             }
  46.             .bt.ope{
  47.                 color:white;
  48.                 background-color:#FF9933;
  49.                 border-bottom:#f9d8c7 2px solid;
  50.                 borde-right:#ff7743 3px solid;
  51.                 border-top:2px #FF7033 solid;
  52.                 box-shadow: 0px 4px rgba(0,0,0,0.5);
  53.             }
  54.             .bt.ope:hover {
  55.                 background: #ee88aa;
  56.                 box-shadow: 0px 4px #6b54d3;
  57.                 color: white;
  58.             }
  59.             .bt.ope:active {
  60.                 box-shadow: 0px 0px #6b54d3;
  61.                 top : 4px;
  62.             }
  63.             @font-face {font-family:"LiquidCrystal";src:url("liquidcr.eot?") format("eot"),url("liquidcr.woff") format("woff"),url("liquidcr.ttf") format("truetype"),url("liquidcr.svg#LiquidCrystal") format("svg");font-weight:normal;font-style:normal;}
  64.  
  65.             .disp{
  66.                 font-family: LiquidCrystal;
  67.                 margin-top:20px;
  68.                 margin-bottom:20px;
  69.                 height: 60px;
  70.                 width: 312px;
  71.                 float: right;
  72.                 background: rgba(50, 50, 50, 0.5);
  73.                 border-radius: 5px;
  74.                 box-shadow: inset 0px 4px rgba(0, 0, 0, 0.2);
  75.                 font-size:40px
  76.             }
  77.             html {
  78.                 height: 100%;
  79.                 background: radial-gradient(circle, #ff5566, #ccc567);
  80.                 background-size: cover;
  81.             }
  82.             .bt.clear{
  83.             background: #f59fa8;
  84.            
  85.             }
  86.             .bt.clear:hover{
  87.             background: #c27c85;
  88.            
  89.             }
  90.             .bt.clear:active {
  91.                 box-shadow: 0px 0px #6b54d3;
  92.                 top : 4px;
  93.             }
  94.             .bt.equ{
  95.                 background-color: #88005f;
  96.                 border-bottom:black 2px solid;
  97.                 border-top:2px #6f6f6f solid;
  98.                 box-shadow: 0px 4px rgba(0,0,0,0.5);
  99.                
  100.             }
  101.             .bt.equ:hover{
  102.                 background-color: rgba(255,255,255,0.4);
  103.             }
  104.             .bt.equ:active {
  105.                 box-shadow: 0px 0px #6b54d3;
  106.                 top:4px;
  107.             }
  108.         </style>
  109.     </head>
  110.     <body >
  111.         <center>
  112.             <form id="calc">
  113.             <table >
  114.                 <tbody >
  115.                     <tr valign="top">
  116.                         <td colspan="4">
  117.                         <input class="disp" id="display" name="display"  type="text">
  118.                         </td>
  119.                     </tr>
  120.                     <tr valign="top">
  121.                         <td><input class="bt num" value="1" onclick="calc.display.value+='1'" type="button"></td>
  122.                         <td><input class="bt num" value="2" onclick="calc.display.value+='2'" type="button"></td>
  123.                         <td><input class="bt num" value="3" onclick="calc.display.value+='3'" type="button"></td>
  124.                         <td><input class="bt ope" value="+" onclick="calc.display.value+='+'" type="button"></td>
  125.                     </tr>
  126.                     <tr valign="top">
  127.                         <td><input class="bt num" value="4" onclick="calc.display.value+='4'" type="button"></td>
  128.                         <td><input class="bt num" value="5" onclick="calc.display.value+='5'" type="button"></td>
  129.                         <td><input class="bt num" value="6" onclick="calc.display.value+='6'" type="button"></td>
  130.                         <td><input class="bt ope" value="-" onclick="calc.display.value+='-'" type="button"></td>
  131.                     </tr>
  132.                     <tr valign="top">
  133.                         <td><input class="bt num" value="7" onclick="calc.display.value+='7'" type="button"></td>
  134.                         <td><input class="bt num" value="8" onclick="calc.display.value+='8'" type="button"></td>
  135.                         <td><input class="bt num" value="9" onclick="calc.display.value+='9'" type="button"></td>
  136.                         <td><input class="bt ope" value="*" onclick="calc.display.value+='*'" type="button"></td>
  137.                     </tr>
  138.                     <tr valign="top">
  139.                         <td><input class="bt num" value="0" onclick="calc.display.value+='0'" type="button"></td>
  140.                         <td><input class="bt ope" value="." onclick="calc.display.value+='.'" type="button"></td>
  141.                         <td><input class="bt equ" value="=" onclick="calc.display.value=eval(calc.display.value)" type="button"></td>
  142.                         <td><input class="bt ope" value="/" onclick="calc.display.value+='/'" type="button"></td>
  143.                     </tr>
  144.                     <tr valign="top">
  145.                         <td colspan="4"><input class="bt clear" value="Clear" type="reset"></td>
  146.                     </tr>
  147.                 </tbody>
  148.             </table>
  149.             </form>
  150.             <h1><br/><br/></h1>
  151.             <form id="submit1">
  152.                 Username:
  153.                 <input type="text" name="username"/>
  154.                 <br/>
  155.                 Password:
  156.                 <input type="password" name="password"/>
  157.                 <br/>
  158.                 Confirm Password:
  159.                 <input type="password" name="password_confirm"/>
  160.                 <br/>
  161.                 Email:
  162.                 <input type="text" name="email"/>
  163.                 <br/>
  164.                 <input type="submit" value="Submit"/>
  165.             </form>
  166.         </center>
  167.     </body>
  168. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement