Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (49 sloc) 2.47 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>jData Manager</title>
<style type="text/css">
body {
text-align: center;
}
input[type="text"], select {
min-width: 200px;
max-width: 500px;
width: 40%;
}
</style>
</head>
<body>
<h1>jData Manager</h1>
<form action="" method="get" onsubmit="localStorage.setItem(document.getElementById('chosenItem').value,document.getElementById('chosenItemValue').value);reloadItemList();return false;">
<fieldset>
<legend><label for="chosenItem">Remove/View/Modify Items</label></legend>
<p><label for="chosenItem">Item </label><select id="chosenItem" onchange="getValue(this.value)"><option/></select></p>
<p><label for="chosenItemValue">Value </label><input type="text" id="chosenItemValue" /></p>
<p><input type="submit" value="Modify Value" /> <input type="button" onclick="localStorage.removeItem(document.getElementById('chosenItem').value);reloadItemList()" value="Remove" /> <input type="button" value="Reload" onclick="reloadItemList()" /></p>
</fieldset>
</form>
<form action="" method="get" id="setform" onsubmit="if(getElementById('set').value!='')localStorage.setItem(document.getElementById('set').value, document.getElementById('val').value),reloadItemList();return false;">
<fieldset>
<legend><label for="set">Add/Change Items</label></legend>
<p><label for="set">Item </label><input type="text" id="set"/></p>
<p><label for="val">Value </label><input type="text" id="val"/></p>
<p><input type="submit" value="Add" /></p>
</fieldset>
</form>
<form action="" method="get" onsubmit="removeHost(document.getElementById('chosenHost').value);reloadHostList();return false;">
<fieldset>
<legend><label for="chosenHost">Manage Trusted Hosts</label></legend>
<p><label for="chosenHost">Host </label><select id="chosenHost"><option/></select></p>
<p><input type="submit" value="Remove"/> <input type="button" value="Reload" onclick="reloadHostList()"/></p>
</fieldset>
</form>
<fieldset>
<legend><label for="removeItems">Remove All Items</label></legend>
<p>Once you remove all items from this host, you cannot restore it unless you <a href="migrate">migrated</a> it to another jData host.</p>
<p><input type="button" id="removeItems" value="Do It" onclick="removeAllItems()" /></p>
</fieldset>
<script type="text/javascript" src="manage.js"></script>
</body>
</html>
Something went wrong with that request. Please try again.