perkeep/server/go/camlistored/ui/permanode.html

86 lines
2.5 KiB
HTML
Raw Normal View History

<!doctype html>
<html>
<head>
<title>Permanode</title>
<script type="text/javascript" src="base64.js"></script>
<script type="text/javascript" src="Crypto.js"></script>
<script type="text/javascript" src="SHA1.js"></script>
<script type="text/javascript" src="camli.js"></script>
<script type="text/javascript" src="?camli.mode=config&cb=onConfiguration"></script>
<script type="text/javascript" src="permanode.js"></script>
2011-06-09 22:00:20 +00:00
<style>
div.fileupload {
margin: 0.25em;
border: 1px solid #888;
padding: 0.25em;
}
</style>
</head>
<body>
<div>[<a href="./">Home</a>]</div>
<h1>Permanode</h1>
<p>Permalink: <span id="permanode"></span> [<span id="permanodeBlob"></span>]</p>
<form id="formTitle">
<p>
Title: <input type="text" id="inputTitle" size="30" value="(loading)" disabled="disabled">
<input type="submit" id="btnSaveTitle" value="Save" disabled="disabled">
</p>
</form>
<form id="formTags">
<p>
<label for="inputNewTag">Tags:</label>
<span id="spanTags"></span>
<input id="inputNewTag">
<input type="submit" id="btnAddTag" value="Add Tag(s)">
</form>
<form id="formUrlPath">
<p>
<label for="inputUrlPath">URL:</label>
http://<span id="urlHostName">(loading)</span>/<input id="inputUrlPath" size="50" disabled="disabled">
<input type="submit" id="btnSetUrlPath" value="Save path" disabled="disabled">
</p>
</form>
<form id="formAccess">
<p>Access:
<select id="selectAccess" disabled="disabled">
<option value="private">Private</option>
<option value="public">Public</option>
</select>
<input type="submit" id="btnSaveAccess" value="Save" disabled="disabled" />
</p>
</form>
<div id="content"></div>
<div id="members"></div>
2011-06-10 22:03:01 +00:00
<form id="formType">
<p>Type:
<select id='type'>
<option value=''>(None / auto)</option>
<option value='_other'>(Other)</option>
<option value="file">File</option>
<option value="collection">File Collection / Gallery</option>
<option value="microblog">Microblog Post</option>
<option value="blog">Blog Post</option>
</select>
</p>
</form>
<div id='dnd' style="border: 2px dashed black; min-height: 250px; display: block;">
<form id="fileForm">
<input type="file" id="fileInput" multiple="true" onchange="">
<input type="submit" id="fileUploadBtn" value="Upload">
</form>
<p><i>(or drag &amp; drop files here)</i></p>
<pre id="info"></pre>
</div>
</body>
</html>