repl.it
HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • pictures
  • script.js
  • style.css
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>repl.it</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
    <script src="script.js"></script>
  </head>
  <body>
    <div>
    <p>A Simple Area Calculator.</p>
    <img src="pictures/plain.png" id="piclmao">
    <form name="from">
      <p>Length:</p>
      <input type="number" id="length" name="length" onmouseover="lengthRec()" onmouseout="plainRec()">
      <p>Width:</p>
      <input type="number" id="width" name="width" onmouseover="widthRec()" onmouseout="plainRec()">
      <br>
      <button type="button" onclick="solveMo(length.value, width.value)">solve</button>
      <p>Area:</p>
      <input type="number" id="area" name="area" onmouseover="areaRec()" onmouseout="plainRec()">

    </form>
    </div>
  </body>
</html>
result
console