profile download implemented; closes #15

php
Marc Wäckerlin 9 years ago
parent e1f0c81415
commit 1e89b5536c
  1. 4
      html/chat.html
  2. 11
      html/index.html.in
  3. 5
      html/safechat.js

@ -9,11 +9,11 @@
</span>
<!--
<span class="toolbutton">
<label for="file"><img src="video.svg"/></label>
<label for="video"><img src="video.svg"/></label>
<input autocomplete="off" type="file" accept="video/*" id="video"/>
</span>
<span class="toolbutton">
<label for="file"><img src="audio.svg"/></label>
<label for="audio"><img src="audio.svg"/></label>
<input autocomplete="off" type="file" accept="audio/*" id="audio"/>
</span>
<span class="toolbutton">

@ -23,9 +23,16 @@
</div>
<ul id="menu" style="display: none">
<li onclick="backup()">Backup</li>
<li onclick="restore()">Restore</li>
<li onclick="backup()">Download Backup</li>
<li>
<label for="restore">Restore: Upload Backup</label>
<input autocomplete="off" type="file" accept="text/*" id="restore" />
</li>
</ul>
<script>
$("#restore").change(function(evt){restore(evt)});
if (!window.FileReader) $("#restore").hide(); // not supported by browser
</script>
<div id="main">

@ -154,11 +154,14 @@ function backup() {
"cancelable": false
});
download.dispatchEvent(clickEvent);
status("<p>Download:</p><pre>"+download.outerHTML.replace("<", "&lt;")+"</pre>");
togglemenu();
setTimeout(start, 20000);
}
/// Upload Profile Backup
function restore(evt) {
}
/// Check if user name is available
/** Calls checknewuser.php on server and displays an error, if the
user name is already in use. This function is used when creating a

Loading…
Cancel
Save