Skip to content

Commit

Permalink
Update comparison opacity while changing value (#153)
Browse files Browse the repository at this point in the history
Currently the opacity changes only after I have finished dragging the opacity slider, not while dragging it. This change allows the opacity to change live while dragging.
  • Loading branch information
applegrew authored Jan 31, 2024
1 parent 965d8cd commit 8404650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ <h3 id="firstPartyHeader">First Party vs Third Party content</h3>

<script id="waterfallTemplate" type="text/template7">
<div class="rangeWrapper">{{config.har1.label}}&nbsp;
<input id="range" type="range" min="0.0" max="1.0" step="0.1" value="0.0" onchange="changeOpacity(this.value, 'har1', 'har2')">&nbsp;{{config.har2.label}}</div>
<input id="range" type="range" min="0.0" max="1.0" step="0.1" value="0.0" oninput="changeOpacity(this.value, 'har1', 'har2')">&nbsp;{{config.har2.label}}</div>
</script>

<script id="domainsTemplate" type="text/template7">
Expand Down

0 comments on commit 8404650

Please sign in to comment.