+
+ Test Camera
+
+
+
+
+
+
+
diff --git a/examples/pseudo-components.html b/examples/pseudo-components.html
new file mode 100644
index 0000000..5ae326f
--- /dev/null
+++ b/examples/pseudo-components.html
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
diff --git a/src/Components.ts b/src/Components.ts
new file mode 100644
index 0000000..2c45923
--- /dev/null
+++ b/src/Components.ts
@@ -0,0 +1,81 @@
+import { Eyetracker } from "./Eyetracker";
+
+export class Components {
+ private Eyetracker: Eyetracker | undefined;
+ private currentComponents: Array = [];
+
+ constructor(et: Eyetracker) {
+ this.Eyetracker = et;
+ }
+
+ init() {
+ // is this even necessary?
+ }
+
+ //TODO: figure out how to put CSS in here shorthand without giving me a stroke
+ createLanding(id: string, message: string): HTMLDivElement {
+ this.currentComponents.push(id);
+ if (message === undefined) {
+ message = `Welcome to an experiment that uses eye tracking.
+ In a few moments you will be asked for permission to use your camera in order to complete the experiment.`;
+ }
+ let landing = document.createElement("div");
+ landing.id = id;
+ landing.classList.add("landing");
+ landing.innerHTML = `
+