Skip to content

Commit bab94a8

Browse files
committed
Showing number being read
1 parent 4413426 commit bab94a8

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

read.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<body>
1212
<div id="video"></div>
1313
<div id="footer">
14+
<div id="nr"></div>
1415
<div id="colors">
1516
<div id="average"></div>
1617
<div id="closest"></div>
@@ -23,7 +24,7 @@
2324
var closest = average.closest();
2425
document.getElementById("average").style.cssText = "background-color: "+average.css;
2526
document.getElementById("closest").style.cssText = "background-color: "+closest.css;
26-
console.log(closest.toByte());
27+
document.getElementById("nr").innerHTML = closest.toByte();
2728
});
2829
</script>
2930
</body>

style/nfccolor.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,12 @@ html,body{
2323
#canvas{
2424
width: 100%;
2525
height: 100%;
26+
}
27+
28+
#nr{
29+
position: absolute;
30+
font-size: 70px;
31+
top: 30px;
32+
right: 50px;
33+
color: black;
2634
}

0 commit comments

Comments
 (0)