42 lines
1.4 KiB
HTML
42 lines
1.4 KiB
HTML
<html>
|
|
<head>
|
|
<title>Tryumph example page</title>
|
|
</head>
|
|
<body>
|
|
<center>
|
|
<h1> This is the Tryumph example page </h1>
|
|
|
|
Here, you will be able to test out some functions of Tryumph.
|
|
</center>
|
|
<br/>
|
|
<br/>
|
|
|
|
<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>
|
|
|
|
|
|
<h2>Server-side set:</h2>
|
|
<form method="post">
|
|
<input type="text" name="name">=
|
|
<input type="text" name="value">
|
|
<input 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 type="submit" value="Set!">
|
|
<button onclick="data.save()" type="button">Save!</button>
|
|
</form>
|
|
|
|
<h2>Your fingerprint</h2>
|
|
<div id="fingerprint"></div>
|
|
</div>
|
|
</body>
|
|
</html>
|