From: Will Budicm Date: Thu, 16 Jul 2020 01:39:01 +0000 (+1000) Subject: Hover over log entriesimplemented. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=e0653bbece9564c67efe533f900b065cdf93903a;p=LifeLog.git Hover over log entriesimplemented. --- diff --git a/Current Development Check List.md b/Current Development Check List.md index ff27e7f..bd8fcb4 100644 --- a/Current Development Check List.md +++ b/Current Development Check List.md @@ -9,11 +9,10 @@ This version is not compatible in data structure to prior versions. Data migrati ### v.2.0 Encountered * Export to CVS button on selected logs. -* Hover over log entries, to make more visible what log entry is being ticked on wider screens. +* ✔ Hover over log entries, to make more visible what log entry is being ticked on wider screens. * Multiple search views and their settings, should be preserved as last preset. Maybe even have name multiple ones in a dropdown. * Multiple category assignment to be enabled, where the first selected is the primary, others put in separate cross reference table. * Sub users list with passwords in config to be provided, with access and category, permissions settings. Default enabled permission is Event view category. -* Provide Caddy webserver configuraton, instructions, if available to serve CGI. * ✔ Implement gzip http page encoding compression of traffic. * ✔ Autocompletion picks up long false words, in html and code type logs. diff --git a/htdocs/cgi-bin/wsrc/main.css b/htdocs/cgi-bin/wsrc/main.css index f0ea7e8..1f8ad9e 100644 --- a/htdocs/cgi-bin/wsrc/main.css +++ b/htdocs/cgi-bin/wsrc/main.css @@ -286,3 +286,6 @@ a:hover { color:crimson; } +.hover{ + background-color: #c0c9c9; +} \ No newline at end of file diff --git a/htdocs/cgi-bin/wsrc/main.js b/htdocs/cgi-bin/wsrc/main.js index 6080690..7754648 100644 --- a/htdocs/cgi-bin/wsrc/main.js +++ b/htdocs/cgi-bin/wsrc/main.js @@ -281,11 +281,26 @@ function onBodyLoad(toggle, tz, today, expires, rs_cur) { setPageSessionTimer(expires); - $( function() { + $(function() { $( "#rs_keys, #rs_keys2" ).autocomplete({ source: AUTOWORDS }); }); + var CHK_PREV; + $("#frm_log tr").mouseover(function(e){ + var chk = $(e.target).find('input[name="chk"]'); + if(!CHK_PREV.prop('checked')){ + CHK_PREV.closest("tr").removeClass("hover"); + } + $(e.target.parentNode).closest("tr").addClass("hover"); + CHK_PREV = chk; + return false; + }).mouseout(function(e) { + CHK_PREV = $(e.target).find('input[name="chk"]'); + if(!CHK_PREV.prop('checked')){ + $(e.target.parentNode).closest("tr").removeClass("hover"); + } + }); display("Log page is ready!"); } diff --git a/htdocs/cgi-bin/wsrc/main_earth.css b/htdocs/cgi-bin/wsrc/main_earth.css index 220fff9..9ea2cd7 100644 --- a/htdocs/cgi-bin/wsrc/main_earth.css +++ b/htdocs/cgi-bin/wsrc/main_earth.css @@ -280,4 +280,7 @@ a:link { font-weight: bold; color:lightsalmon; background-color: #26be54; +} +.hover{ + background-color: #335757; } \ No newline at end of file diff --git a/htdocs/cgi-bin/wsrc/main_moon.css b/htdocs/cgi-bin/wsrc/main_moon.css index d78f012..a418c5e 100644 --- a/htdocs/cgi-bin/wsrc/main_moon.css +++ b/htdocs/cgi-bin/wsrc/main_moon.css @@ -283,4 +283,7 @@ a:active { font-style: normal; font-weight: bold; color:khaki; +} +.hover{ + background-color: #8d8d83; } \ No newline at end of file diff --git a/htdocs/cgi-bin/wsrc/main_sun.css b/htdocs/cgi-bin/wsrc/main_sun.css index bc5da1e..7162c43 100644 --- a/htdocs/cgi-bin/wsrc/main_sun.css +++ b/htdocs/cgi-bin/wsrc/main_sun.css @@ -266,4 +266,8 @@ img { font-style: normal; font-weight: bold; color:crimson; +} + +.hover{ + background-color: #fffb00; } \ No newline at end of file