add script for display result from server
This commit is contained in:
26
calc.html
26
calc.html
@@ -3,15 +3,27 @@
|
||||
<head>
|
||||
<title>HTML / CSS</title>
|
||||
<link rel="stylesheet" type="text/css" href="styles.css">
|
||||
<script src="jquery-3.3.1.js"></script>
|
||||
<script src="script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<form method="GET" action="http://webex.sdi.hevs.ch/calc">
|
||||
<p>Operand 1</p>
|
||||
<input type="number" name="operandA"><br>
|
||||
<p>Operand 2</p>
|
||||
<input type="number" name="operandB"><br><br>
|
||||
<input type="submit" value="Calculate">
|
||||
<input type="reset"><br><br>
|
||||
<form method="GET" action="http://webex.sdi.hevs.ch/calc" class="inline-divs">
|
||||
<div id="op1">
|
||||
<p>Operand 1</p>
|
||||
<input type="number" name="operandA">
|
||||
</div>
|
||||
<div id="op2">
|
||||
<p>Operand 2</p>
|
||||
<input type="number" name="operandB">
|
||||
</div>
|
||||
<div id="but">
|
||||
<input type="submit" value="Calculate"> <br>
|
||||
<input type="reset">
|
||||
</div>
|
||||
<div id="res">
|
||||
<p>Result</p>
|
||||
<input type="text" name="result" readonly>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user