Tryumph/index.html
2022-07-07 15:58:53 +02:00

40 lines
1.3 KiB
HTML

<html>
<head>
<title>Tryumph example page</title>
</head>
<body>
<h1> This is the Tryumph example page </h1>
<center>
Here, you will be able to test out some functions of Tryumph.
</center>
<br/>
<br/>
<h2>Get:</h2>
<form onsubmit="try{document.getElementById('value').value = data[document.getElementById('name').value].toString()}catch(e){} ; return false;">
<input type="text" id="name"> =
<input readonly type="text" id="value">
<input class=button type="submit" value="Get!">
</form>
<h2>Server-side set:</h2>
<form method="post">
<input type="text" name="name"> =
<input type="text" name="value">
<input class=button type="submit" value="Set!">
</form>
<h2>Client-side set:</h2>
<form onsubmit="try{data[document.getElementById('sname').value] = document.getElementById('svalue').value}catch(e){} ; return false;">
<input type="text" id="sname"> =
<input type="text" id="svalue">
<input class=button type="submit" value="Set!">
<button onclick="data.save()" type="button">Save!</button>
</form>
<h2>Your fingerprint</h2>
<div id="fingerprint"></div>
</body>
</html>