aboutsummaryrefslogtreecommitdiffstats
path: root/jsaccess
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2013-06-16 22:14:23 +0200
committerLaurent Ghigonis <laurent@p1sec.com>2013-06-16 22:14:23 +0200
commitaf10eb7643fc9647ed9b6ef38f4ac9cab066a6f0 (patch)
tree462d5ae162b4986f824158bbab8ed2deb4c74a9f /jsaccess
parentjsaccess: check if no files are selected (diff)
downloadlaurent-tools-af10eb7643fc9647ed9b6ef38f4ac9cab066a6f0.tar.xz
laurent-tools-af10eb7643fc9647ed9b6ef38f4ac9cab066a6f0.zip
jsaccess: cosmetic
Diffstat (limited to 'jsaccess')
-rw-r--r--jsaccess/jsa/index.html24
-rw-r--r--jsaccess/jsa/jsa.css9
-rw-r--r--jsaccess/jsa/jsa.js2
3 files changed, 21 insertions, 14 deletions
diff --git a/jsaccess/jsa/index.html b/jsaccess/jsa/index.html
index 71ad8b1..9e26e37 100644
--- a/jsaccess/jsa/index.html
+++ b/jsaccess/jsa/index.html
@@ -14,17 +14,19 @@
</HEAD>
<BODY onLoad="jsainit()">
<!-- XXX ugly onsubmit, do in jsainit() ? -->
- <form id="form-getlist" onsubmit="return false;">
- <h1>1. Enter password</h1>
- <input type="text" id="password"/><input type="submit" id="getlist" value="Get files list" onclick="jsagetlist()"/>
- </form>
- <form id="form-download" onsubmit="return false;">
- <h1>2. Select file</h1>
- <div id="files"></div>
- <h1>3. Dowload</h1>
- <input type="submit" id="download" value="Download" onclick="jsadl()"/>
- <input type="button" id="cancel" value="Cancel" onclick="window.location.reload()"/>
- </form>
+ <div id="forms">
+ <form id="form-getlist" onsubmit="return false;">
+ <h1>1. Enter password</h1>
+ <input type="text" id="password"/><input type="submit" id="getlist" value="Get files list" onclick="jsagetlist()"/>
+ </form>
+ <form id="form-download" onsubmit="return false;">
+ <h1>2. Select file</h1>
+ <div id="files"></div>
+ <h1>3. Dowload</h1>
+ <input type="submit" id="download" value="Download" onclick="jsadl()"/>
+ <input type="button" id="cancel" value="Cancel" onclick="window.location.reload()"/>
+ </form>
+ </div>
<div id="status"></div>
</BODY>
</HTML>
diff --git a/jsaccess/jsa/jsa.css b/jsaccess/jsa/jsa.css
index bac8ca9..85eefbd 100644
--- a/jsaccess/jsa/jsa.css
+++ b/jsaccess/jsa/jsa.css
@@ -1,10 +1,15 @@
body {
+ font-family: monospace;
background-color:#080808;
color:#dfdfdf;
}
+#forms {
+ float: left;
+}
+
#status {
- font-family: "Lucida Console", Monaco, monospace;
- font-size: 0.8em;
+ float: right;
+ width: 400px;
color:#5fba3d;
}
diff --git a/jsaccess/jsa/jsa.js b/jsaccess/jsa/jsa.js
index 20c7bdc..d080a0a 100644
--- a/jsaccess/jsa/jsa.js
+++ b/jsaccess/jsa/jsa.js
@@ -126,7 +126,7 @@ function _save(obj, name) {
}
var blob = new Blob([ia], {type:"application/octet-binary"});
saveAs(blob, name);
- _status("File \""+name+"\" is in your hands,<br/>Have a good day.");
+ _status("File is in your hands,<br/>Have a good day.<br/>");
}
function _status(txt, run_func) {