aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2013-06-17 04:30:14 +0200
committerLaurent Ghigonis <laurent@p1sec.com>2013-06-17 04:30:14 +0200
commit5cc076b62a24c9c7326fbe6fbbd12eb28d05b805 (patch)
treee076cacd804fa0a12044df4a6af6481e3acbee6a
parentjsaccess: focus entry on page load (diff)
downloadlaurent-tools-5cc076b62a24c9c7326fbe6fbbd12eb28d05b805.tar.xz
laurent-tools-5cc076b62a24c9c7326fbe6fbbd12eb28d05b805.zip
jsaccess: cosmetic tweaking, taint your hair !
-rw-r--r--jsaccess/jsa/index.html2
-rw-r--r--jsaccess/jsa/jsa.css5
-rw-r--r--jsaccess/jsa/jsa.js4
3 files changed, 5 insertions, 6 deletions
diff --git a/jsaccess/jsa/index.html b/jsaccess/jsa/index.html
index 782f58e..69c5337 100644
--- a/jsaccess/jsa/index.html
+++ b/jsaccess/jsa/index.html
@@ -30,7 +30,7 @@
<input type="button" id="cancel" value="Cancel" onclick="window.location.reload()"/>
</form>
</div>
- <div id="status"></div>
+ <div id="status"><p id="status_p">Welcome.</p></div>
</div>
<div id="footer">
<small>Powered by <a href="http://git.zx2c4.com/laurent-tools/tree/jsaccess/README.txt">jsaccess</a></small>
diff --git a/jsaccess/jsa/jsa.css b/jsaccess/jsa/jsa.css
index 597638c..3803bfb 100644
--- a/jsaccess/jsa/jsa.css
+++ b/jsaccess/jsa/jsa.css
@@ -34,10 +34,9 @@ input {
display: inline;
width: 50%;
color:#5fba3d;
- margin-top: 20px;
}
-#status:before {
- content: "Welcome.";
+#status_p {
+ padding-top: 20px;
}
#footer {
diff --git a/jsaccess/jsa/jsa.js b/jsaccess/jsa/jsa.js
index 64cab5a..4046133 100644
--- a/jsaccess/jsa/jsa.js
+++ b/jsaccess/jsa/jsa.js
@@ -130,14 +130,14 @@ function _save(obj, name) {
}
function _status(txt, run_func) {
- var div = document.getElementById('status');
+ var div = document.getElementById('status_p');
div.innerHTML = div.innerHTML + '<br/>' + txt;
jQuery.fn.redraw = function() {
return this.hide(0, function() {
$(this).show();
});
};
- $('#status').redraw();
+ $('#status_p').redraw();
if (run_func)
setTimeout(run_func, 100); /* to force refresh */
}