-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
98 lines (80 loc) · 3.65 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Preview print</title>
</head>
<body>
<div class="container" ondrop="dropHandler(event);" ondragover="dragOverHandler(event);">
<div class="card card-picker">
<div id="upload-text">
<h3>Preview in bad lighting</h3>
<p>
This is a small tool for previewing your print in bad lighting conditions.
<br> If you can't read the text there is probably not enough contrast.
<br> Tip: Use WIN + SHIFT + S to take a screenshot on windows.
</p>
<br>
<div class="drop_box">
<header>
<h4>Drop or paste here</h4>
<h5>Supported file types: jpg, jpeg, png, gif</h5>
</header>
<p></p>
<input type="file" hidden accept="image/*" id="fileID" style="display:none;">
<button class="btn">Choose file</button>
</div>
</div>
<div class="column" id="canvas-container" style="display: none;">
<div class="canvas">
<canvas id="Canvas" class="canvas_styles"></canvas>
</div>
</div>
</div>
</div>
<div id="overlay" style="display: none;">
<div id="text">
<h1>Preview in bad lighting</h1>
<hr>
<br>
<p>
This is a small tool for previewing your print in bad lighting conditions.
</p>
<br><br>
<h3>How to use</h3>
<p>
If you can not read the text in your print it's probably not enough contrast between the text and the background.
</p>
<br>
<p>On windows press Win + Shift + S to take a screenshot and paste the image with CTRL + V</p>
<br>
<h3>Example</h3>
<img src="example-clean.jpg" style="width: 100%;">
<br><br>
<h3>Scientific background</h3>
<p>
Color sensitivity in the human eye is weakest in the blue part of the spectrum. Blue backgrounds will therefore be harder to read in darker conditions.
</p>
<br>
<img src="Eyesensitivity.svg" style="width: 65%; border: white 2px solid">
<br>
<small><a style="color: rgb(184, 210, 255);" href="https://en.wikipedia.org/wiki/Color_vision">Wikipedia</a>: Color vision Photopic relative brightness sensitivity</small>
<br><br>
<h3>Report bugs</h3>
<p>Code and posting issues available on <a style="color: rgb(184, 210, 255);" href="https://github.com/Jesper-Hustad/bad-light-preview">GitHub</a></p>
</div>
</div>
</body>
<!-- absolute position overlay buttons -->
<button class="help-button" id="help-on">?</button>
<button class="back-button" id="back-on" onclick="location.reload();" style="display: none;">Back to upload page</button>
<img style="display:none;" id="SourceImage">
<script src="filters.js"></script>
<script src="script.js"></script>
<link rel="stylesheet" href="style.css">
<!-- simple visit counter, as no info is provided by static hosting on GitHub -->
<!-- access all info gathered available here https://jesper-hustad.goatcounter.com/count -->
<script data-goatcounter="https://jesper-hustad.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
</html>