1
0

add script for display result from server

This commit is contained in:
2024-04-11 08:53:35 +02:00
parent d665bdbf5e
commit fd5344a896
4 changed files with 10431 additions and 8 deletions

View File

@@ -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>