diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-06-15 20:49:22 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-06-15 22:34:35 +0200 |
commit | dd55626317d191b6528fe1b8f1d8d267157df748 (patch) | |
tree | e9d9555805fe0fb427502ec9848a05d3619c8bc4 /src/ws/view.js | |
parent | fa3e62eafddf777426f9e7310c6952ffa9fd1290 (diff) |
Major overhaul of visuals.
Diffstat (limited to 'src/ws/view.js')
-rw-r--r-- | src/ws/view.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/ws/view.js b/src/ws/view.js index 1586389..4be20aa 100644 --- a/src/ws/view.js +++ b/src/ws/view.js @@ -125,7 +125,8 @@ function dragenter(e) { return; } - e.target.style.backgroundColor = "#646588"; + + e.target.style.backgroundColor = "#c4ffd0"; last_over = e.target; } @@ -139,7 +140,7 @@ function dragover(e) // } e.preventDefault(); - +/* var after = getElementAfter(e); if(last_after != null) { @@ -150,6 +151,7 @@ function dragover(e) after.style.borderColor = "red black black black"; } last_after = after; +*/ } function dragleave(e) @@ -160,7 +162,7 @@ function dragleave(e) return; } - e.target.style.backgroundColor = "#aaa"; + e.target.style.backgroundColor = ""; } function dragEnd(e) @@ -177,7 +179,7 @@ function dragEnd(e) // return; // } - e.target.style.backgroundColor = "#aaa"; + //e.target.style.backgroundColor = ""; if(last_after != null) { @@ -187,7 +189,7 @@ function dragEnd(e) if(last_over != null) { - last_over.style.backgroundColor = "#aaa"; + last_over.style.backgroundColor = ""; last_over = null; } @@ -352,6 +354,7 @@ function onLostFocusHandler(e) function editTitle(e) { + console.log("!"); e.stopPropagation(); const idstr = e.target.parentElement.parentElement.id; var node = findNodeFromString(idstr); |