36 lines
1.2 KiB
HTML
36 lines
1.2 KiB
HTML
<html>
|
|
<head>
|
|
<title>Tryumph example page</title>
|
|
</head>
|
|
<body>
|
|
<h1> This is the Tryumph example page </h1>
|
|
|
|
Here, you will be able to test out some functions of Tryumph.
|
|
|
|
<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 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>
|
|
</body>
|
|
</html>
|