Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 14 additions & 13 deletions app/app.css
Original file line number Diff line number Diff line change
@@ -1,46 +1,47 @@
/* OverBoard PDF app. Toolbar styles come from ../shared/toolbar.css (shared with the overlay). */
:root { --desk: #e9e7e2; --ink: #111; --mute: #555; }
:root { --desk: #e9e7e2; --ink: #111; --mute: #555; --brand: #145da0; --brand-dark: #0f4a80; --brand-pale: #e3ecf5; --brand-tint: #d6e4f2; } /* --brand: OverBoard blue, the color of its boat icon */
* { box-sizing: border-box; }
html { overflow-anchor: auto; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
[hidden], #ink-bar[hidden] { display: none !important; }
body.start { background: var(--brand-pale); }

/* ---------- start screen ---------- */
#ob-start { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
body:not(.start) #ob-start { display: none; }
.card { width: min(640px, 100%); background: #fff; border-radius: 16px; box-shadow: 0 2px 14px rgba(0,0,0,.15); padding: 28px; }
.card h1 { margin: 0; font-size: 34px; line-height: 1.1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.card h1 .logo { width: 56px; height: 56px; flex: none; }
.card h1 span { background: #111; color: #ffd400; border-radius: 8px; padding: 0 8px; font-size: 26px; vertical-align: middle; }
.card h1 span { background: var(--brand); color: #fff; border-radius: 8px; padding: 0 8px; font-size: 26px; vertical-align: middle; }
.lead { margin: 8px 0 18px; color: var(--mute); }
#ob-demo { display: block; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #111; color: #fff; text-decoration: none; font-size: 17px; } /* "New here? Try the demo" for teachers arriving from the apps hub */
#ob-demo b { color: #ffd400; }
#ob-demo:hover, #ob-demo:focus-visible { background: #333; }
#ob-demo { display: block; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--brand); color: #fff; text-decoration: none; font-size: 17px; } /* "New here? Try the demo" for teachers arriving from the apps hub */
#ob-demo b { color: #fff; }
#ob-demo:hover, #ob-demo:focus-visible { background: var(--brand-dark); }
#ob-demo span { text-decoration: underline; text-underline-offset: 3px; }
#ob-drop { display: grid; place-items: center; align-content: center; gap: 4px; min-height: 180px; border: 3px dashed #bbb; border-radius: 14px; cursor: pointer; text-align: center; padding: 16px; transition: background .15s, border-color .15s; }
#ob-drop strong { font-size: 24px; }
#ob-drop span { color: var(--mute); }
#ob-drop:hover, #ob-drop:focus, #ob-drop.over { background: #fffbe0; border-color: #e6b800; outline: none; }
#ob-drop:hover, #ob-drop:focus, #ob-drop.over { background: var(--brand-pale); border-color: var(--brand); outline: none; }
#ob-msg { background: #e8f5e9; color: #1b5e20; border-radius: 10px; padding: 10px 12px; margin: 14px 0 0; }
#ob-error { background: #ffebee; color: #b71c1c; border-radius: 10px; padding: 10px 12px; margin: 14px 0 0; }
#ob-install { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; color: var(--mute); font-size: 14px; }
#ob-install[hidden] { display: none; }
#ob-install button { flex: none; min-height: 52px; padding: 0 20px; border: 0; border-radius: 12px; background: #111; color: #ffd400; font: 700 16px Inter, system-ui, sans-serif; cursor: pointer; }
#ob-install button { flex: none; min-height: 52px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font: 700 16px Inter, system-ui, sans-serif; cursor: pointer; }
#ob-recent h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin: 22px 0 8px; }
#ob-recent ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; } /* long file names shorten with … instead of widening the card */
#ob-recent li { display: flex; gap: 8px; }
#ob-recent button { font: inherit; border: 0; border-radius: 10px; cursor: pointer; min-height: 52px; }
#ob-recent .open { flex: 1; min-width: 0; text-align: left; background: #f1f0ec; padding: 6px 14px; overflow: hidden; }
#ob-recent .open b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ob-recent .open small { color: var(--mute); }
#ob-recent .open:hover { background: #e6e4dc; }
#ob-recent .open:hover { background: var(--brand-tint); }
#ob-recent .forget { flex: none; width: 52px; background: transparent; color: var(--mute); font-size: 22px; }
#ob-recent .forget:hover { background: #ffebee; color: #b71c1c; }
/* blank notebooks: the paper buttons on the start screen and under a notebook's last page */
:is(#ob-blank, #ob-addpage) h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); margin: 18px 0 8px; }
.ob-papers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ob-papers button { display: grid; justify-items: center; gap: 6px; min-height: 52px; padding: 10px 4px; border: 0; border-radius: 12px; background: #f1f0ec; color: var(--ink); font: 600 15px Inter, system-ui, sans-serif; cursor: pointer; overflow-wrap: anywhere; }
.ob-papers button:hover, .ob-papers button:focus-visible { background: #e6e4dc; }
.ob-papers button:hover, .ob-papers button:focus-visible { background: var(--brand-tint); }
.ob-papers button:disabled { opacity: .5; cursor: progress; }
.ob-papers i { width: 46px; height: 60px; border-radius: 2px; box-shadow: 0 1px 4px rgba(0,0,0,.3); background: #fff; }
.ob-papers [data-paper="lined"] i { background: linear-gradient(90deg, transparent 8px, #e57373 8px 9px, transparent 9px), repeating-linear-gradient(#fff 0 5px, #9ec5e8 5px 6px); }
Expand All @@ -51,7 +52,7 @@ body.notebook #ob-pages { padding-bottom: 0; }
#ob-addpage { width: min(560px, calc(100vw - 32px)); margin: 16px auto 50vh; padding: 4px 16px 16px; background: #fff; border-radius: 14px; box-shadow: 0 2px 14px rgba(0,0,0,.15); font-family: Inter, system-ui, sans-serif; }
#ob-release { color: var(--mute); font-size: 12px; } /* the version number, so you can tell the newest app loaded */
.note { font-size: 13px; color: var(--mute); margin: 22px 0 0; }
.note a { color: #1565c0; }
.note a { color: var(--brand); }

/* ---------- pages ---------- */
#ob-pages { position: relative; display: flex; flex-direction: column; align-items: safe center; gap: 16px; padding: 16px 0 50vh; min-width: max-content; touch-action: none; }
Expand Down Expand Up @@ -129,9 +130,9 @@ body.start #ob-pages { display: none; }
body.notebook #ob-embed .pdfonly, body:not(.notebook) #ob-embed .nbonly { display: none; } /* a blank notebook has no original PDF */
:is(#ob-embed, #ob-coverwarn) .row { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }
:is(#ob-embed, #ob-coverwarn) .row button { min-height: 56px; min-width: 130px; border: 0; border-radius: 12px; font: 700 17px Inter, system-ui, sans-serif; cursor: pointer; background: #e6e4dc; color: #111; padding: 0 18px; }
:is(#ob-embed, #ob-coverwarn) .row button.go { background: #111; color: #ffd400; }
:is(#ob-embed, #ob-coverwarn) .row button.go { background: var(--brand); color: #fff; }

#ob-dropcover { position: fixed; inset: 0; z-index: 200; background: rgba(255, 212, 0, .25); border: 6px dashed #e6b800; display: grid; place-items: center; pointer-events: none; }
#ob-dropcover div { background: #111; color: #ffd400; font: 700 28px Inter, system-ui, sans-serif; padding: 16px 28px; border-radius: 14px; }
#ob-dropcover { position: fixed; inset: 0; z-index: 200; background: rgba(20, 93, 160, .2); border: 6px dashed var(--brand); display: grid; place-items: center; pointer-events: none; }
#ob-dropcover div { background: var(--brand); color: #fff; font: 700 28px Inter, system-ui, sans-serif; padding: 16px 28px; border-radius: 14px; }

@media print { #ink-bar, #ink-show, #ob-toc, #ob-find { display: none !important; } }
11 changes: 6 additions & 5 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>OverBoard PDF</title>
<meta name="description" content="OverBoard: write on any PDF on your smartboard. Runs in the browser; nothing is uploaded.">
<meta name="ob-version" content="668b7bca1ddd">
<meta name="theme-color" content="#1f1f1f">
<meta name="ob-version" content="fe3dfe626707">
<meta name="theme-color" content="#145da0">
<link rel="manifest" href="manifest.json">
<link rel="icon" href="icons/favicon.ico" sizes="32x32">
<link rel="icon" href="icons/favicon.svg" type="image/svg+xml">
Expand Down Expand Up @@ -47,7 +47,7 @@ <h2 data-t="open_again">Open again</h2>
<p class="note"><span data-th="start_note">Your PDF and your ink stay in this browser on this computer. Nothing is uploaded.
Have a Word file? In Word, choose File → Save as PDF, then drop the PDF here.
Have an HTML worksheet? Drop it here to get a <i>_board.html</i> copy you can write on.</span>
<br><a href="https://github.com/BPMData/OverBoard" data-t="about">About OverBoard</a> · <a href="report/?from=start" target="_blank" data-t="board_help">Board not working?</a> · <span id="ob-release" title="OverBoard version">v49</span></p>
<br><a href="https://github.com/BPMData/OverBoard" data-t="about">About OverBoard</a> · <a href="report/?from=start" target="_blank" data-t="board_help">Board not working?</a> · <span id="ob-release" title="OverBoard version">v50</span></p>
<p class="note ob-langpick"><label><span aria-hidden="true">🌐</span> <select id="ob-lang" aria-label="Language" data-ta="language" data-tt="language" title="Language"></select></label></p>
</div>
</main>
Expand Down Expand Up @@ -104,7 +104,7 @@ <h2 data-t="add_page">Add a page:</h2>
<button data-act="select" class="sm" data-t="select" data-tt="select_tip" title="Select: circle ink with the pen (or tap one mark) to send a copy to another class period, copy it, move it or delete it">Select</button>
<button data-act="timer" class="sm" data-t="timer_btn" data-tt="timer_tip" title="A big countdown for the class, with a sound at zero">&#9201; Timer</button>
<button data-act="file" aria-haspopup="true" aria-expanded="false" data-t="menu" data-tt="menu_tip_app" title="Export PDF, ink files, open another PDF, settings, language and help">Settings &amp; help &#9656;</button>
<button data-act="hide" data-t="hide" data-tt="hide_tip" title="Hide the toolbar (the ✎ button brings it back)">Hide</button>
<button data-act="hide" data-t="hide" data-tt="hide_tip" title="Hide the toolbar (the boat button brings it back)">Hide</button>
<div id="ink-status" data-tt="status_tip" title="What OverBoard did last">Ready</div>
<input type="file" id="ob-inkfile" accept=".json,application/json" hidden>
</div>
Expand Down Expand Up @@ -135,7 +135,8 @@ <h2 data-t="add_page">Add a page:</h2>
<button data-act="clear-all" class="wide" data-tt="clear_all_tip" title="Clear the ink on every page (tap twice)">All pages</button>
<p data-t="clear_note">This class period only. Undo brings it back.</p>
</div>
<button id="ink-show" aria-label="Show writing tools" title="Show writing tools" data-ta="show_tip" data-tt="show_tip">&#9998;</button>
<button id="ink-show" aria-label="Show writing tools" title="Show writing tools" data-ta="show_tip" data-tt="show_tip"><svg viewBox="0 0 64 64" aria-hidden="true" focusable="false"><rect width="64" height="64" rx="13" fill="#145DA0"/>
<g transform="translate(12 29) scale(1) rotate(-3.5 20 18)"><rect x="9" y="-24" width="3.5" height="26" rx="1.75" fill="#FFFFFF"/><path d="M14 -22 Q25.27 -15.86 33.5 -6 L14 -6 Z" fill="#FFFFFF" stroke="#FFFFFF" stroke-width="1.5" stroke-linejoin="round"/><g transform="translate(2.58 0) skewX(-16)"><rect x="0" y="0" width="40" height="18" rx="4" fill="#FFFFFF"/></g><g transform="translate(2.58 0) skewX(-16)"><rect x="3.2" y="3.2" width="33.6" height="11.6" rx="1.5" fill="none" stroke="#145DA0" stroke-opacity="0.32" stroke-width="1.3"/><path d="M8 12.5 C11 8 14.5 5.5 16.5 7.5 C18 9 15.5 13.5 18.5 13 C21.5 12.5 23 8 26 8.5 C28.5 9 27 12.5 30 12 C31.5 11.8 32.5 11 33 10.5" fill="none" stroke="#145DA0" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></g></g><path d="M7.5 59 C11.5 58 13.5 52 17.5 52 C20.5 52 22 54.5 20 56.5 M24 60.5 C28 59.5 30 53.5 34 53.5 C37 53.5 38.5 56 36.5 58 M40.5 59 C44.5 58 46.5 52 50.5 52 C53.5 52 55 54.5 53 56.5" fill="none" stroke="#FFFFFF" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"/></svg></button>
<dialog id="ob-embed" aria-labelledby="ob-embed-h">
<h2 id="ob-embed-h"><span class="pdfonly" data-t="embed_h">Keep the ink inside a PDF file?</span><span class="nbonly" data-t="nb_embed_h">Save this notebook as a PDF file?</span></h2>
<ul>
Expand Down
4 changes: 2 additions & 2 deletions app/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"start_url": "./",
"scope": "./",
"display": "standalone",
"background_color": "#e9e7e2",
"theme_color": "#1f1f1f",
"background_color": "#e3ecf5",
"theme_color": "#145da0",
"icons": [
{ "src": "icons/icon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "any" },
{ "src": "icons/icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any" },
Expand Down
14 changes: 7 additions & 7 deletions app/report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>OverBoard: board not working?</title>
<meta name="description" content="A two-minute check that tells the OverBoard team how your board talks to the browser, so they can fix it.">
<meta name="theme-color" content="#1f1f1f">
<meta name="theme-color" content="#145da0">
<link rel="icon" href="../icons/favicon.ico" sizes="32x32">
<link rel="icon" href="../icons/favicon.svg" type="image/svg+xml">
<!-- "Board not working?" (app start screen, Settings & help ▸ in the PDF app and the HTML overlay).
Expand All @@ -14,7 +14,7 @@
Sending goes to a small Google Apps Script (tools/report-relay.gs, setup in docs/REPORTS.md) that emails
the report and opens a GitHub issue. If it can't be reached, the person downloads the report instead. -->
<style>
:root { --desk: #e9e7e2; --ink: #111; --mute: #555; --line: #d6d3cc; --go: #111; --goText: #ffd400; --ok: #1b5e20; --okBg: #e8f5e9; --warn: #8a5a00; --warnBg: #fff4d6; --bad: #b71c1c; --badBg: #ffebee; }
:root { --desk: #e3ecf5; --ink: #111; --mute: #555; --line: #d6d3cc; --go: #145da0; --goText: #fff; --brand: #145da0; --brand-pale: #e3ecf5; --ok: #1b5e20; --okBg: #e8f5e9; --warn: #8a5a00; --warnBg: #fff4d6; --bad: #b71c1c; --badBg: #ffebee; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--desk); color: var(--ink); font: 22px/1.45 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; touch-action: pan-y; overscroll-behavior: none; }
Expand All @@ -36,7 +36,7 @@
.mute { color: var(--mute); }
.small { font-size: 17px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 26px; }
.brand-name { background: #111; color: #ffd400; border-radius: 8px; padding: 0 10px; }
.brand-name { background: var(--brand); color: #fff; border-radius: 8px; padding: 0 10px; }

/* ---------- drawing steps ---------- */
#steps { display: grid; grid-template-rows: auto 1fr auto; height: 100vh; }
Expand All @@ -59,14 +59,14 @@
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.brands button { min-height: 92px; padding: 10px; display: grid; place-items: center; gap: 4px; font-size: 22px; }
.brands button img { max-width: 150px; max-height: 44px; }
.brands button[aria-pressed="true"] { box-shadow: inset 0 0 0 4px #111; background: #fffbe0; }
.brands button[aria-pressed="true"] { box-shadow: inset 0 0 0 4px var(--brand); background: var(--brand-pale); }
label.field { display: block; margin-top: 14px; }
input[type="text"], input[type="email"], textarea { width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
textarea { min-height: 120px; resize: vertical; }
.checks { display: grid; gap: 10px; }
.checks label { display: flex; gap: 14px; align-items: center; min-height: 60px; padding: 8px 16px; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; background: #fff; }
.checks input { width: 30px; height: 30px; flex: none; accent-color: #111; }
.checks label:has(input:checked) { box-shadow: inset 0 0 0 3px #111; background: #fffbe0; }
.checks input { width: 30px; height: 30px; flex: none; accent-color: var(--brand); }
.checks label:has(input:checked) { box-shadow: inset 0 0 0 3px var(--brand); background: var(--brand-pale); }
.langpick { float: right; margin: 0 0 8px 16px; font-size: 18px; }
.langpick select { font: inherit; min-height: 48px; padding: 0 10px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
[dir="rtl"] .langpick { float: left; margin: 0 16px 8px 0; }
Expand Down Expand Up @@ -98,7 +98,7 @@ <h1 data-t="r_h1">Is OverBoard not working on your board?</h1>
<p data-th="r_intro2">If something doesn't work the way the page asks, that's fine. <b>That's exactly what I need to know.</b> Just keep going.</p>
<p class="mute small" data-th="r_privacy">Nothing is sent until you press <b>Send</b> at the very end, and you'll see everything first. No worksheets, PDFs or ink are ever included.</p>
<div class="row"><button class="go big" data-go="start" data-t="r_start">Start</button></div>
<p class="mute small" style="margin-top:28px">OverBoard <span id="ob-release" title="OverBoard version">v49</span></p>
<p class="mute small" style="margin-top:28px">OverBoard <span id="ob-release" title="OverBoard version">v50</span></p>
</div></div>
</section>

Expand Down
18 changes: 9 additions & 9 deletions app/sw.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// ===== GENERATED by tools/build.py: every file the app needs, with the start of its SHA-256. Do not edit by hand. =====
const VERSION = 'ee377bb0d381';
const VERSION = '40c2f737e804';
const FILES = {
"../overlay/ink_overlay.html": "42c92eebbe19123d",
"../overlay/ink_overlay.html": "ff3cb1e5b2a929fd",
"../shared/ink-core.js": "bd0ac55dbae6a3ea",
"../shared/strings.js": "3fc2aeda43e13917",
"../shared/toolbar.css": "3d7b4ac9a02ae120",
"app.css": "d2ee47f27ebce7a2",
"../shared/strings.js": "4c0c63493dd62532",
"../shared/toolbar.css": "68234a816cc90a77",
"app.css": "d5009a129891b58e",
"embed.js": "ea50a9ff4e960dd4",
"export.js": "eaec8736ffed97b7",
"find.js": "decbe30b206bf32e",
Expand All @@ -17,14 +17,14 @@ const FILES = {
"icons/icon-512.png": "46ca8bd2d6a32612",
"icons/maskable-512.png": "c7d41ed2fa4ad874",
"image.js": "d396b7d4f5aced4e",
"index.html": "31b9734ac0d9b665",
"index.html": "a878402265bc763c",
"ink.js": "76142d82f12d37ca",
"libs.js": "c09f60186ab9029a",
"main.js": "fa607d2ba7d7680b",
"manifest.json": "f7ee4a6c6f83cd40",
"manifest.json": "416c107c34c8610b",
"notebook.js": "7346e40dda6ff149",
"offline.js": "6504935b2738711a",
"report/index.html": "2616a6050a363168",
"report/index.html": "1b2129c3831ed02f",
"store.js": "155ec064f6ffe569",
"textlayer.js": "383ad22e91afb648",
"vendor/pdf-lib@1.17.1/LICENSE.md": "f2c9fc00fdb66eb9",
Expand Down Expand Up @@ -217,7 +217,7 @@ const FILES = {
"vendor/pdfjs-dist@4.10.38/standard_fonts/LiberationSans-BoldItalic.ttf": "a224075ac17495ad",
"vendor/pdfjs-dist@4.10.38/standard_fonts/LiberationSans-Italic.ttf": "832b4406dbef2362",
"vendor/pdfjs-dist@4.10.38/standard_fonts/LiberationSans-Regular.ttf": "f8ace1f892b2bd9d",
"version.json": "1e68318080ad0f0f",
"version.json": "552600bfe5d74ad2",
"viewer.js": "1cffd9d5c7158958"
};
// ===== END GENERATED =====
Expand Down
2 changes: 1 addition & 1 deletion app/version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"v": "668b7bca1ddd",
"v": "fe3dfe626707",
"js": [
"embed.js",
"export.js",
Expand Down
Loading
Loading