browser audio processing phase 1
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
/* empty css */import"./fireworks-home.js-D5iuyEAp.js";import"./map.js-jpUFFpF3.js";import"../../../manual-report-BLClvilD.js";import"../../../theme-DXAi27ON.js";
|
||||
@@ -0,0 +1 @@
|
||||
/* empty css */import"./fireworks-home.js-BF3PcmrX.js";import"./map.js-jpUFFpF3.js";import"../../../manual-report-BLClvilD.js";import"../../../theme-DXAi27ON.js";
|
||||
@@ -0,0 +1 @@
|
||||
/* empty css */import"./fireworks-home.js-DfXbE6JP.js";import"./map.js-jpUFFpF3.js";import"../../../manual-report-BLClvilD.js";import"../../../theme-DXAi27ON.js";
|
||||
@@ -0,0 +1 @@
|
||||
/* empty css */import"./fireworks-home.js-ij3dXXlf.js";import"./map.js-jpUFFpF3.js";import"../../../manual-report-BLClvilD.js";import"../../../theme-DXAi27ON.js";
|
||||
@@ -0,0 +1 @@
|
||||
/* empty css */import"../../../theme-DXAi27ON.js";
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import"../../../manual-report-BLClvilD.js";import"../../../theme-DXAi27ON.js";
|
||||
@@ -0,0 +1 @@
|
||||
import"../../../theme-DXAi27ON.js";const r=document.querySelector(".upload-form"),n=document.querySelector("#drop-zone"),o=document.querySelector("#audio-file"),d=document.querySelector("#file-name"),a=document.querySelector("#upload-status"),s=e=>{d.textContent=e?e.name:"No file selected"};o.addEventListener("change",()=>s(o.files[0]));["dragenter","dragover"].forEach(e=>n.addEventListener(e,t=>{t.preventDefault(),n.classList.add("dragging")}));["dragleave","drop"].forEach(e=>n.addEventListener(e,t=>{t.preventDefault(),n.classList.remove("dragging")}));n.addEventListener("drop",e=>{const[t]=e.dataTransfer.files;t&&(o.files=e.dataTransfer.files,s(t))});r.addEventListener("htmx:beforeRequest",()=>{a.textContent="Analysing your recording…",r.setAttribute("aria-busy","true")});r.addEventListener("htmx:afterRequest",()=>{a.textContent="",r.removeAttribute("aria-busy")});r.addEventListener("htmx:responseError",()=>{a.textContent="Analysis could not be completed."});
|
||||
@@ -0,0 +1 @@
|
||||
import"../../../theme-DXAi27ON.js";
|
||||
@@ -0,0 +1 @@
|
||||
/* empty css */import"../../../theme-DXAi27ON.js";const e=window.BOOMCAST_I18N||{},u=document.getElementById("event-map"),f=u.dataset.h3Resolution,t=L.map(u,{zoomControl:!1,scrollWheelZoom:!1}).setView([52.1326,5.2913],7);L.control.zoom({position:"bottomleft"}).addTo(t);const m=L.control({position:"topright"});m.onAdd=()=>{const o=L.DomUtil.create("div","map-compass");return o.setAttribute("role","img"),o.setAttribute("aria-label",e.mapCompass||"Map compass: north is up"),o.innerHTML='<span class="compass-n">N</span><span class="compass-e">E</span><span class="compass-s">S</span><span class="compass-w">W</span><span class="compass-needle">↑</span>',L.DomEvent.disableClickPropagation(o),o};m.addTo(t);L.tileLayer("https://{s}.tile.openstreetmap.de/{z}/{x}/{y}.png",{maxZoom:18,attribution:"© OpenStreetMap contributors"}).addTo(t);const y=JSON.parse(document.getElementById("h3-cells-data").textContent),M=JSON.parse(document.getElementById("map-events-data").textContent),d=L.latLngBounds([]);y.forEach(o=>{L.polygon(o.boundary,{color:"#f59e0b",weight:2,fillColor:"#f59e0b",fillOpacity:.25}).addTo(t).bindPopup('<span class="popup-title">H3 '+o.cell+'</span><span class="popup-meta">'+o.reports+" "+(o.reports===1?e.report||"report":e.reports||"reports")+" · "+o.occurrences+" "+(o.occurrences===1?e.occurrence||"occurrence":e.occurrences||"occurrences")+" · "+(e.resolution||"resolution")+" "+f+"</span>"),d.extend(L.latLngBounds(o.boundary))});function b(o){return["N","NE","E","SE","S","SW","W","NW"][Math.floor((o+22.5)%360/45)]}function v(o,n,s){const c=n*Math.PI/180,i=o[0]*Math.PI/180,h=o[1]*Math.PI/180,r=s/6378137,l=Math.asin(Math.sin(i)*Math.cos(r)+Math.cos(i)*Math.sin(r)*Math.cos(c)),g=h+Math.atan2(Math.sin(c)*Math.sin(r)*Math.cos(i),Math.cos(r)-Math.sin(i)*Math.sin(l));return[l*180/Math.PI,g*180/Math.PI]}const E=L.divIcon({className:"",html:'<div class="report-icon">✦</div>',iconSize:[37,37],iconAnchor:[19,19]});M.forEach(o=>{const n=o.visually_confirmed?e.visuallyConfirmed||"Visually confirmed":e.notVisuallyConfirmed||"Not visually confirmed";let s=o.occurrences+" "+(o.occurrences===1?e.occurrence||"occurrence":e.occurrences||"occurrences")+" · "+n+"<br>"+(e.reported||"Reported")+" "+o.reported_on;if(o.direction_degrees!==null&&(s+="<br>"+(e.compassDirection||"Compass direction")+" "+Math.round(o.direction_degrees)+"° ("+b(o.direction_degrees)+")",o.direction_accuracy_degrees!==null&&(s+=" (±"+Math.round(o.direction_accuracy_degrees)+"°)")),L.marker(o.center,{icon:E}).addTo(t).bindPopup('<span class="popup-title">'+(e.manualReport||"Manual report")+" · H3 "+o.cell+'</span><span class="popup-meta">'+s+"</span>"),o.direction_degrees!==null){const a=v(o.center,o.direction_degrees,900);L.polyline([o.center,a],{color:"#fff7e6",weight:9,opacity:.8}).addTo(t),L.polyline([o.center,a],{color:"#6d45a0",weight:5,opacity:1}).addTo(t);const c=L.divIcon({className:"",html:'<div class="direction-marker"><span style="transform:rotate('+o.direction_degrees+'deg)">↑</span></div>',iconSize:[56,56],iconAnchor:[28,28]});L.marker(a,{icon:c,interactive:!1}).addTo(t)}});d.isValid()&&t.fitBounds(d.pad(.18));const p=document.getElementById("range");p&&document.querySelectorAll("#from-date, #to-date").forEach(o=>{o.addEventListener("change",()=>{p.value="custom"})});
|
||||
@@ -0,0 +1 @@
|
||||
import"../../../theme-DXAi27ON.js";
|
||||
@@ -0,0 +1 @@
|
||||
import"../../../theme-DXAi27ON.js";
|
||||
@@ -0,0 +1 @@
|
||||
import"../../../theme-DXAi27ON.js";
|
||||
@@ -0,0 +1 @@
|
||||
import"../../../theme-DXAi27ON.js";
|
||||
@@ -0,0 +1 @@
|
||||
import"../../../theme-DXAi27ON.js";document.querySelector("#ntfy-url").addEventListener("input",()=>{document.querySelector("#ntfy-test-result").replaceChildren()});
|
||||
@@ -0,0 +1 @@
|
||||
:root{color-scheme:dark;--theme-bg: #090e1d;--theme-ink: #eef3ff;--theme-muted: #aab9d8;--theme-surface: #172443;--theme-surface-raised: #111a31;--theme-line: #2b3d68;--theme-input: #0a1123}:root[data-theme=light]{color-scheme:light;--ink: #172033;--i: #172033;--muted: #536174;--m: #536174;--line: #c4cede;--l: #c4cede;--surface: #ffffff;--surface-2: #f2f6fc;--card: rgba(255, 255, 255, .94);--theme-bg: #f4f7fc;--theme-ink: #172033;--theme-muted: #536174;--theme-surface: #ffffff;--theme-surface-raised: #f2f6fc;--theme-line: #c4cede;--theme-input: #ffffff}:root[data-theme=light] body{color:var(--theme-ink)!important;background:radial-gradient(circle at 8% 0%,#dbeaff 0,transparent 31rem),radial-gradient(circle at 96% 100%,#eee2ff 0,transparent 29rem),var(--theme-bg)!important}:root[data-theme=light] .card,:root[data-theme=light] .welcome-card,:root[data-theme=light] .upload-card,:root[data-theme=light] .results-card,:root[data-theme=light] .panel,:root[data-theme=light] .map-panel{border-color:var(--theme-line)!important;background:var(--theme-surface)!important;box-shadow:0 1rem 3rem #20365c24!important}:root[data-theme=light] .topbar,:root[data-theme=light] .map-header,:root[data-theme=light] .nav,:root[data-theme=light] .filters,:root[data-theme=light] .result-group,:root[data-theme=light] .prediction,:root[data-theme=light] .event,:root[data-theme=light] .drop-zone{border-color:var(--theme-line)!important;color:var(--theme-ink);background:var(--theme-surface-raised)!important}:root[data-theme=light] .audio-upload--uploading .drop-zone,:root[data-theme=light] .audio-upload--processing .drop-zone{border-color:#7296d5!important;background:#e4ebff!important}:root[data-theme=light] input,:root[data-theme=light] select,:root[data-theme=light] textarea,:root[data-theme=light] .path{border-color:var(--theme-line)!important;color:var(--theme-ink)!important;background:var(--theme-input)!important}:root[data-theme=light] .intro,:root[data-theme=light] .lede,:root[data-theme=light] .subject,:root[data-theme=light] .message,:root[data-theme=light] .help,:root[data-theme=light] .empty,:root[data-theme=light] .meta,:root[data-theme=light] .popup-meta{color:var(--theme-muted)!important}.theme-toggle{position:fixed;top:1rem;left:1rem;z-index:1200;min-height:2.5rem;padding:.5rem .75rem;border:1px solid var(--theme-line);border-radius:999px;color:var(--theme-ink);font:700 .82rem/1 Inter,ui-sans-serif,system-ui,sans-serif;background:var(--theme-surface);box-shadow:0 .35rem 1.25rem #01030c3d;cursor:pointer}.theme-toggle:hover{filter:brightness(1.08)}.theme-toggle:focus-visible{outline:3px solid #8abaff;outline-offset:3px}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition-duration:.01ms!important}}:root[data-theme=light] .shell h1{color:#172b50!important}:root[data-theme=light] .shell h2{color:#203b63!important}:root[data-theme=light] .shell h3{color:#31527f!important}:root[data-theme=light] .shell .kicker,:root[data-theme=light] .shell .eyebrow{color:#3f6fa9!important}:root[data-theme=light] .shell .map-header strong{color:#243e65!important}
|
||||
@@ -0,0 +1 @@
|
||||
const r="sound-signal-theme",s=new Set(["dark","light"]);function c(){try{const e=window.localStorage.getItem(r);return s.has(e)?e:"dark"}catch{return"dark"}}function d(e,t){if(document.documentElement.dataset.theme=e,!t)return;const n=e==="dark"?"light":"dark",a=window.BOOMCAST_I18N||{};t.textContent=n==="light"?"☀ "+(a.lightMode||"Light mode"):"☾ "+(a.darkMode||"Dark mode"),t.setAttribute("aria-label",n==="light"?a.switchToLight||"Switch to light mode":a.switchToDark||"Switch to dark mode"),t.setAttribute("aria-pressed",String(e==="light"))}function o(){const e=document.querySelector(".theme-toggle")??document.createElement("button");e.isConnected||(e.className="theme-toggle",e.type="button",document.body.append(e)),d(c(),e),e.addEventListener("click",()=>{const t=document.documentElement.dataset.theme==="dark"?"light":"dark";try{window.localStorage.setItem(r,t)}catch{}d(t,e)})}function i(){const e=document.querySelector(".fireworks-menu-toggle");if(!e)return;const t=()=>{e.setAttribute("aria-expanded","false"),e.setAttribute("aria-label",e.dataset.openLabel)};e.addEventListener("click",()=>{const n=e.getAttribute("aria-expanded")!=="true";e.setAttribute("aria-expanded",String(n)),e.setAttribute("aria-label",n?e.dataset.closeLabel:e.dataset.openLabel)}),document.addEventListener("keydown",n=>{n.key==="Escape"&&e.getAttribute("aria-expanded")==="true"&&(t(),e.focus())}),window.matchMedia("(min-width: 44.001rem)").addEventListener("change",t)}d(c());document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{o(),i()},{once:!0}):(o(),i());
|
||||
Reference in New Issue
Block a user