diff options
| author | Alon Levy <alon@pobox.com> | 2014-10-28 19:57:54 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-10-28 19:57:54 +0200 |
| commit | 1169d0fff03ee7642a8b5e06462781f8996bb6e5 (patch) | |
| tree | 06dc37baad3d7677a22058a311da0d1f5d29dfdc | |
| parent | c559161ed81a1eac2d2e13d9e734ed97b3174e71 (diff) | |
history: show last logged action (ui has negative z-index)
| -rw-r--r-- | index.html | 3 | ||||
| -rw-r--r-- | scripts/history.js | 1 | ||||
| -rw-r--r-- | style.css | 9 |
3 files changed, 13 insertions, 0 deletions
@@ -100,6 +100,9 @@ </div> </div> + <div class="history-timeline"> + </div> + <div class="logo"> <a href="#"><img width="146" height="67" src="images/sage.png"/></a> </div> diff --git a/scripts/history.js b/scripts/history.js index d4a8d4a3..72f9e846 100644 --- a/scripts/history.js +++ b/scripts/history.js @@ -56,6 +56,7 @@ History.prototype.record = function(action, d) d['user'] = this.user; d['timestamp'] = new Date(); this.records.push(d); + $('.history-timeline').html('<pre>' + JSON.stringify(d) + '</pre>'); }; function svg_extract_translate_and_scale(e) @@ -296,6 +296,15 @@ input:focus { .debug{ } +.history-timeline { + pointer-events: none; + z-index: -1; + position: absolute; + width: 100%; + justify-content: center; + bottom: 100px; +} + .save{ } |
