node-simple-router
Version:
Yet another minimalistic router for node.js
38 lines (30 loc) • 1.14 kB
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<title>AutobahnJS RPC Frontend</title>
</head>
<body>
<h1>AutobahnJS RPC Frontend</h1>
<p id="log" style="width: 95%; height: 4em; border: solid 1px; font-size: small; padding: 0.5em; color: maroon;">
---
</p>
<p id="add2-caller">
Suma
<input type="number" id="sum1" cols="3" value="1" required="required">
+
<input type="number" id="sum2" cols="3" value="1" required="required">
=
<span id="result" style="padding: 6px; border: solid 1px; width: 2em; text-align: right;">0</span>
</p>
<hr/>
<p id="factorial-caller">
Factorial
<input type="number" id="factorial-number" cols="3" value="1" required="required">
=
<span id="factorial-result" style="padding: 6px; border: solid 1px; width: 3em; text-align: right;">1</span>
</p>
<script src="https://autobahn.s3.amazonaws.com/autobahnjs/latest/autobahn.min.jgz"></script>
<script src="js/autobahnjs_rpc_caller.js"></script>
</body>
</html>