fixed members hover

This commit is contained in:
2020-11-02 23:51:16 +01:00
parent febcc25042
commit 782f4498e8
2 changed files with 7 additions and 6 deletions
+6 -5
View File
@@ -8,15 +8,16 @@
{{/* {{ $width := div $totalWidth ( len ( $pages.GroupByDate "2006" ) ) }} */}}
{{ $width := div $totalWidth ( len ( $pages.GroupByDate "2006" ) ) }}
{{ $color := "#357edd" }}
{{ $color := "#a8c7f0" }}
{{ $strokecolor := "#d3e3f8" }}
<script>
function onyearover(year, key, count){
document.getElementById( key ).innerHTML = year + ": " + count + " km";
document.getElementById( key ).innerHTML = year + ": " + count;
}
function onyearout(key){
document.getElementById( key ).innerHTML = "<br>";
document.getElementById( key ).innerHTML = "<div style='color: transparent'>:</div>";
}
</script>
@@ -62,8 +63,8 @@ document.getElementById( key ).innerHTML = "<br>";
{{/* $dist */}}
{{/* $x */}}
{{/* $height */}}
<rect onmouseover="onyearover({{ $year }}, {{ $param_title }}, {{ math.Round $dist }} )" onmouseout="onyearout({{ $param_title }})" opacity="0.2" height="{{ $height }}" y="{{ sub $totalHeight $height }}" x="{{ $x }}%"
width="{{ $width }}%" fill="{{ $color }}" stroke-width="1.5" stroke="{{$color}}"/>
<rect onmouseover="onyearover( {{ $year }}, {{ $param_title }}, {{ $count }} )" onmouseout="onyearout({{ $param_title }})" opacity="0.2" height="{{ $height }}" y="{{ sub $totalHeight $height }}" x="{{ $x }}%"
width="{{ $width }}%" fill="{{ $color }}" stroke-width="1.5" stroke="{{$strokecolor}}" class="dim"/>
{{ $x = add $x $width }}
{{ end }}