|
| 1 | +{{- /* https://github.com/ncruces/RethinkRAW/blob/master/assets/batch.gohtml */ -}} |
| 2 | +<!doctype html> |
| 3 | +<html lang=en> |
| 4 | + |
| 5 | +<head> |
| 6 | + <meta charset="utf-8"> |
| 7 | + <title>RethinkRAW: Batch processing {{len .Photos}} photos</title> |
| 8 | + <link rel="manifest" href="/manifest.json" crossorigin="use-credentials"> |
| 9 | + <link rel="shortcut icon" href="/favicon.ico"> |
| 10 | + <link rel="stylesheet" href="/main.css"> |
| 11 | + <link rel="stylesheet" href="/batch.css"> |
| 12 | + <link rel="stylesheet" href="/raw-editor.css"> |
| 13 | + <link rel="stylesheet" href="/dialog-polyfill.css"> |
| 14 | + <link rel="preload" as="style" href="/normalize.css"> |
| 15 | + <link rel="preload" as="style" href="/fontawesome.css"> |
| 16 | + <link rel="preload" as="font" type="font/woff2" crossorigin href="/fa-solid-900.woff2"> |
| 17 | + <script src="/dialog-polyfill.js" defer></script> |
| 18 | + <script src="/main.js" defer></script> |
| 19 | + <script src="/batch.js" defer></script> |
| 20 | + <script src="/raw-editor.js" defer></script> |
| 21 | + <noscript><meta http-equiv="refresh" content="0;url=/browser.html"></noscript> |
| 22 | +</head> |
| 23 | + |
| 24 | +<body> |
| 25 | + {{- template "raw-editor.gohtml" "hidden"}} |
| 26 | + |
| 27 | + <div id=menu-sticker> |
| 28 | + <div id=menu> |
| 29 | + <div class="toolbar"> |
| 30 | + <button type=button title="Go back" class="minimal-ui" onclick="back()"><i class="fas fa-arrow-left"></i></button> |
| 31 | + <button type=button title="Reload photos" class="minimal-ui" onclick="location.reload()"><i class="fas fa-sync"></i></button> |
| 32 | + <button type=button title="S̲ave changes" accesskey="s" onclick="saveFile()" id=save disabled><i class="fas fa-save"></i></button> |
| 33 | + {{- if .Export}} |
| 34 | + <button type=button title="Ex̲port JPEGs (⌥-click for options)" accesskey="x" class="alt-off" onclick="exportFile()"><i class="fas fa-file-image"></i></button> |
| 35 | + <button type=button title="Export…" class="alt-on" onclick="exportFile('dialog')"><i class="fas fa-file-download"></i></button> |
| 36 | + {{- end}} |
| 37 | + <button type=button title="Edit photos…" onclick="toggleEdit()" id=edit><i class="fas fa-sliders-h"></i></button> |
| 38 | + </div> |
| 39 | + </div> |
| 40 | + </div> |
| 41 | + <div id=gallery> |
| 42 | + {{- range .Photos}} |
| 43 | + <a href="/photo/{{.Path}}" onclick="return popup(this, event)"> |
| 44 | + <img loading=lazy title="{{.Name}}" alt="{{.Name}}" src="/thumb/{{.Path}}" onerror="parentNode.hidden=true"> |
| 45 | + </a> |
| 46 | + {{- else}} |
| 47 | + <span>No RAW photos here.</span> |
| 48 | + {{- end}} |
| 49 | + </div> |
| 50 | + |
| 51 | + <dialog id=progress-dialog> |
| 52 | + Lorem ipsum<br> |
| 53 | + <progress></progress> |
| 54 | + </dialog> |
| 55 | +</body> |
| 56 | + |
| 57 | +</html> |
0 commit comments