Skip to content

Commit 0460166

Browse files
author
Robert-André Mauchin
committed
Javascript rewrite
1 parent 47b7d27 commit 0460166

File tree

3 files changed

+263
-251
lines changed

3 files changed

+263
-251
lines changed

image-comparison-web/index.html

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,16 @@
5656
</tr>
5757
<tr>
5858
<td colspan=3 style="padding-top: 1em; padding-bottom: 1em;">
59-
<div id="rightContainer" style="margin-left: auto; margin-right: auto; position: relative; width:800px; height:800px;">
60-
<div id="leftContainer" style="border-right: 1px dotted white; width:800px; height:800px;"></div>
61-
<div id="leftText" style="position: absolute; color: white; padding:.2em .5em .2em .5em;"></div>
62-
<div id="rightText" style="position: absolute; color: white; padding:.2em .5em .2em .5em;"></div>
63-
</div>
59+
<div class="img-comp-container">
60+
<div class="img-comp-img">
61+
<canvas id="canvasRight"></canvas>
62+
</div>
63+
<div class="img-comp-img img-comp-overlay">
64+
<canvas id="canvasLeft"></canvas>
65+
</div>
66+
<div id="leftText" style="position: absolute; color: white; padding:.2em .5em .2em .5em;"></div>
67+
<div id="rightText" style="position: absolute; color: white; padding:.2em .5em .2em .5em;"></div>
68+
</div>
6469
</td>
6570
</tr>
6671
<tr>

0 commit comments

Comments
 (0)