2022-07-03 16:02:52 +02:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Tryumph example page</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2022-07-03 16:42:16 +02:00
|
|
|
<center>
|
|
|
|
<h1> This is the Tryumph example page </h1>
|
2022-07-03 16:02:52 +02:00
|
|
|
|
2022-07-03 16:42:16 +02:00
|
|
|
Here, you will be able to test out some functions of Tryumph.
|
|
|
|
</center>
|
2022-07-03 16:02:52 +02:00
|
|
|
<br/>
|
|
|
|
<br/>
|
|
|
|
|
2022-07-03 16:42:16 +02:00
|
|
|
<div class=content>
|
|
|
|
<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 type="submit" value="Get!">
|
|
|
|
</form>
|
2022-07-03 16:02:52 +02:00
|
|
|
|
|
|
|
|
2022-07-03 16:42:16 +02:00
|
|
|
<h2>Server-side set:</h2>
|
|
|
|
<form method="post">
|
|
|
|
<input type="text" name="name">=
|
|
|
|
<input type="text" name="value">
|
|
|
|
<input type="submit" value="Set!">
|
|
|
|
</form>
|
2022-07-03 16:02:52 +02:00
|
|
|
|
2022-07-03 16:42:16 +02:00
|
|
|
<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 type="submit" value="Set!">
|
|
|
|
<button onclick="data.save()" type="button">Save!</button>
|
|
|
|
</form>
|
2022-07-03 18:19:52 +02:00
|
|
|
|
|
|
|
<h2>Your fingerprint</h2>
|
|
|
|
<div id="fingerprint"></div>
|
2022-07-03 16:42:16 +02:00
|
|
|
</div>
|
2022-07-03 16:02:52 +02:00
|
|
|
</body>
|
|
|
|
</html>
|