Monorepo for Aesthetic.Computer
aesthetic.computer
1<style>
2 body {
3 margin: 0;
4 }
5 iframe {
6 border: none;
7 }
8</style>
9<!--<iframe id="aesthetic.computer" width="100%" height="100%" src="https://aesthetic.computer/#plot"></iframe>-->
10<iframe
11 id="aesthetic.computer"
12 width="100%"
13 height="100%"
14 src="https://aesthetic.computer"
15 allow="camera *;microphone *"
16></iframe>
17
18<script>
19 const post =
20 document.getElementById("aesthetic.computer").contentWindow.postMessage;
21
22 console.log(document.getElementById("aesthetic.computer").featurePolicy);
23
24 window.onmessage = (event) => {
25 if (event.data.pluginMessage.type === "imageInput") {
26 post(event.data.pluginMessage, "https://aesthetic.computer");
27 // post(event.data.pluginMessage, "https://aesthetic.computer");
28 }
29 };
30
31 console.log("Secure:", window.isSecureContext, "Location:", window.location);
32</script>