|
97 | 97 |
|
98 | 98 | #images img {
|
99 | 99 | background-color: white;
|
100 |
| - margin: 4px; |
101 |
| - padding: 4px; |
| 100 | + margin: 5px; |
| 101 | + padding: 6px; |
102 | 102 | border: 1px solid #777;
|
103 | 103 | }
|
104 | 104 |
|
|
194 | 194 | <script type="module">
|
195 | 195 | // Image Diff: https://github.com/mapbox/pixelmatch
|
196 | 196 | import pixelmatch from 'https://cdn.skypack.dev/[email protected]';
|
197 |
| - |
198 | 197 | document.addEventListener('DOMContentLoaded', () => {
|
199 |
| - addListeners(); |
| 198 | + app(pixelmatch); |
200 | 199 | });
|
201 | 200 | </script>
|
202 | 201 | </head>
|
|
218 | 217 | <code>grunt generate:current</code><br />
|
219 | 218 | <code>grunt generate:reference</code><br /><br />
|
220 | 219 | Shortcuts:<br />
|
221 |
| - <code>Alt + I</code> - select the <code>images/</code> folder. This folder needs to |
222 |
| - contain <code>current/</code> and <code>reference/</code> subfolders.<br /> |
223 |
| - <code>Alt + C</code> - select the <code>current/</code> folder. This can be any folder, |
224 |
| - and does not need to be named "current". This allows you to choose arbitrary folders to compare (e.g., from two |
225 |
| - different repos).<br /> |
226 |
| - <code>Alt + R</code> - select the <code>reference/</code> folder. This can be any folder, |
227 |
| - and does not need to be named "reference". This allows you to choose arbitrary folders to compare (e.g., from two |
228 |
| - different repos).<br /><br /> |
| 220 | + <code>CTRL + SHIFT + I</code> - select the <code>images/</code> folder. This folder needs |
| 221 | + to contain <code>current/</code> and <code>reference/</code> subfolders.<br /> |
| 222 | + <code>CTRL + SHIFT + C</code> - select the <code>current/</code> folder. This can be any |
| 223 | + folder, and does not need to be named "current". This allows you to choose arbitrary folders to compare (e.g., |
| 224 | + from two different repos).<br /> |
| 225 | + <code>CTRL + SHIFT + R</code> - select the <code>reference/</code> folder. This can be any |
| 226 | + folder, and does not need to be named "reference". This allows you to choose arbitrary folders to compare (e.g., |
| 227 | + from two different repos).<br /><br /> |
229 | 228 |
|
230 | 229 | <code>1</code> - Show images side-by-side<br />
|
231 | 230 | <code>2</code> - Flip between current / reference image. Use LEFT | RIGHT arrow keys.<br />
|
|
240 | 239 | <!-- INFORMATION -->
|
241 | 240 | <p>
|
242 | 241 | Click to open:
|
243 |
| - <a href="#" onclick="openImagesFolder()"><code>vexflow/build/images/</code></a |
| 242 | + <a id="chooseImagesFolder" href="#"><code>vexflow/build/images/</code></a |
244 | 243 | ><br />If a "Let site view files?" pop-up appears, choose <b>View Files</b>.
|
245 | 244 | </p>
|
246 | 245 | <p>
|
|
263 | 262 | </div>
|
264 | 263 | <!-- LIST OF IMAGES -->
|
265 | 264 | <div class="centered">
|
266 |
| - <div id="labelCurrent" class="label"><a href="#" onclick="openCurrentFolder()">CURRENT</a></div> |
267 |
| - <div id="labelReference" class="label"><a href="#" onclick="openCurrentFolder()">REFERENCE</a></div> |
| 265 | + <div id="labelCurrent" class="label"> |
| 266 | + <a id="chooseCurrentFolder" href="#">CURRENT</a> |
| 267 | + </div> |
| 268 | + <div id="labelReference" class="label"> |
| 269 | + <a id="chooseReferenceFolder" href="#">REFERENCE</a> |
| 270 | + </div> |
268 | 271 | </div>
|
269 | 272 | <div class="centered">
|
270 | 273 | <select id="selectBoxCurrent" size="5" onchange="if (this.selectedIndex > -1) selectedCurrentImage();"></select>
|
|
0 commit comments