From cb3187b69320f2c4535aacece39c25a704b1e729 Mon Sep 17 00:00:00 2001 From: Seth Trowbridge Date: Thu, 24 Nov 2022 12:16:57 -0500 Subject: [PATCH] init --- app.js | 16 + index.html | 6 + squarespace.html | 899 +++++++++++++++++++++++++++++++++++++++++++++++ store.js | 31 ++ ui.js | 24 ++ 5 files changed, 976 insertions(+) create mode 100644 app.js create mode 100644 index.html create mode 100644 squarespace.html create mode 100644 store.js create mode 100644 ui.js diff --git a/app.js b/app.js new file mode 100644 index 0000000..923e0d0 --- /dev/null +++ b/app.js @@ -0,0 +1,16 @@ +//@ts-check +import React from "https://esm.sh/preact@10.11.3/compat"; +import {html} from "https://esm.sh/htm@3.1.1/preact"; + +import {install} from "https://esm.sh/@twind/core"; +import preTailwind from "https://esm.sh/@twind/preset-tailwind@1.0.1"; +import preAutoprefix from "https://esm.sh/@twind/preset-autoprefix@1.0.1"; +install({presets:[preTailwind(), preAutoprefix()]}); + +import * as Store from "./store.js"; +import UI from "./ui.js"; + +React.render(html` +

suuupu

+ <${UI.Button} label="Play Tone" icon=">" light/> +`, document.querySelector("#app")); \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..d0142ae --- /dev/null +++ b/index.html @@ -0,0 +1,6 @@ + + + + +
+ diff --git a/squarespace.html b/squarespace.html new file mode 100644 index 0000000..c096acb --- /dev/null +++ b/squarespace.html @@ -0,0 +1,899 @@ + + +
+ + + + + + + + + + +Earmark Hearing Conservation | Philadelphia + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ + Earmark-Logo-Medium-Web-Ocean (2).png +
+
+ +
+ + +
+ + + +
+
+ + + + +

Serving musicians, music industry professionals, and music lovers in the Greater Philadelphia community.

+ + + + +
+
+ + +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + +
+
+ +
+ + +
+ + + +
+
+ + +

Online Courses Available

+ + + + + + +
+
+ + +
+ + + + + + +
 
+ +

Your Ears. your MUSIC.

 Hearing wellness for musicians is healthcare, hearing protection, and occupational safety, but it is much more than that. It is reducing barriers to great performance, increasing personal satisfaction, and ensuring career longevity. Contact us to see how we can help your ears.

+ + +
+ + + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + +
+
+ +
+
+ +
+ + + + +
+ + +
+ + + + + + +
+ +

Talking Ears

A new podcast about hearing health in the music industry.

+ + +
+ + + + + + + + + + + + + + + + + + +
+ + + + +
+ + + + + + + +
+
+ Serving musicians and music lovers, Earmark aims to provide customized solutions for listening, monitoring and performance needs for years to come. +
+
+ +
+ + + + +
+ + +
+ + + + +
+ +

About Earmark

About Earmark and Frank Wartinger, Au.D.

+ + +
+
+ +
+ +
+ +
+ + +
+ + + + + + + \ No newline at end of file diff --git a/store.js b/store.js new file mode 100644 index 0000000..e898d79 --- /dev/null +++ b/store.js @@ -0,0 +1,31 @@ +//@ts-check +/** @typedef {[f1:ListEntry, f2:ListEntry, f3:ListEntry, f4:ListEntry, f5:ListEntry, f6:ListEntry, f7:ListEntry]} FreqList */ +/** @typedef {number|TestMark} ListEntry */ +/** @typedef {{Name:string, Sample:{Left:FreqList, Right:FreqList}, Answer?:{Left:FreqList, Right:FreqList}}} Test */ +/** @typedef {{Stim:number|null, Resp:boolean}|null} TestMark*/ + +/** @type FreqList */ +export const Frequencies = [500, 1000, 2000, 3000, 4000, 6000, 8000]; +/** @type Array */ +export const Tests = [ + { + Name: "Patient A Asymmetric Notch", + Sample:{ + Left:[15, 10, 15, 30, 40, 35, 20], + Right:[10, 10, 20, 40, 55, 40, 15] + } + } +]; + +export const Controls = +{ + Test:0, + Channel: "left", + Frequency: 1, + Stimulus: 30 +}; + +function Reducer(inState, inAction) +{ + +} \ No newline at end of file diff --git a/ui.js b/ui.js new file mode 100644 index 0000000..494b51f --- /dev/null +++ b/ui.js @@ -0,0 +1,24 @@ +//@ts-check +import React from "https://esm.sh/preact@10.11.3/compat"; +import {html} from "https://esm.sh/htm@3.1.1/preact"; + +export default { + Button({label, icon, light, disabled}) + { + return html``; + }, + Chart() + { + return html` +
+
+
+ `; + } +} \ No newline at end of file