Spaces:
Paused
Paused
Empire P1: compact HUD sign-in/workspace buttons
Browse files- app.js +1 -1
- index.html +2 -2
- style.css +2 -0
- workspace.js +1 -1
app.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import * as THREE from './vendor/three.module.min.js';
|
| 2 |
import { STUDIOS, stopLoops } from './widgets.js?v=50';
|
| 3 |
import './real.js?v=50';
|
| 4 |
-
import './workspace.js?v=
|
| 5 |
import { icon } from './icons.js?v=50';
|
| 6 |
import { RoomEnvironment } from './vendor/addons/environments/RoomEnvironment.js';
|
| 7 |
import { EffectComposer } from './vendor/addons/postprocessing/EffectComposer.js';
|
|
|
|
| 1 |
import * as THREE from './vendor/three.module.min.js';
|
| 2 |
import { STUDIOS, stopLoops } from './widgets.js?v=50';
|
| 3 |
import './real.js?v=50';
|
| 4 |
+
import './workspace.js?v=51';
|
| 5 |
import { icon } from './icons.js?v=50';
|
| 6 |
import { RoomEnvironment } from './vendor/addons/environments/RoomEnvironment.js';
|
| 7 |
import { EffectComposer } from './vendor/addons/postprocessing/EffectComposer.js';
|
index.html
CHANGED
|
@@ -8,7 +8,7 @@
|
|
| 8 |
<title>STUDIUS · DAS Studio — Einswarm</title>
|
| 9 |
<link rel="icon" href="assets/einswarm-mascot.webp">
|
| 10 |
<link rel="preload" href="fonts/outfit-latin-wght.woff2" as="font" type="font/woff2" crossorigin>
|
| 11 |
-
<link rel="stylesheet" href="style.css?v=
|
| 12 |
</head>
|
| 13 |
<body>
|
| 14 |
<canvas id="gl"></canvas>
|
|
@@ -49,6 +49,6 @@
|
|
| 49 |
|
| 50 |
<a id="bmc" href="https://www.buymeacoffee.com/2btainment" target="_blank" rel="noopener noreferrer">Buy me a coffee</a>
|
| 51 |
<noscript><p style="color:#f2c94c;padding:2em">STUDIUS braucht JavaScript.</p></noscript>
|
| 52 |
-
<script type="module" src="app.js?v=
|
| 53 |
</body>
|
| 54 |
</html>
|
|
|
|
| 8 |
<title>STUDIUS · DAS Studio — Einswarm</title>
|
| 9 |
<link rel="icon" href="assets/einswarm-mascot.webp">
|
| 10 |
<link rel="preload" href="fonts/outfit-latin-wght.woff2" as="font" type="font/woff2" crossorigin>
|
| 11 |
+
<link rel="stylesheet" href="style.css?v=51">
|
| 12 |
</head>
|
| 13 |
<body>
|
| 14 |
<canvas id="gl"></canvas>
|
|
|
|
| 49 |
|
| 50 |
<a id="bmc" href="https://www.buymeacoffee.com/2btainment" target="_blank" rel="noopener noreferrer">Buy me a coffee</a>
|
| 51 |
<noscript><p style="color:#f2c94c;padding:2em">STUDIUS braucht JavaScript.</p></noscript>
|
| 52 |
+
<script type="module" src="app.js?v=51"></script>
|
| 53 |
</body>
|
| 54 |
</html>
|
style.css
CHANGED
|
@@ -212,3 +212,5 @@ body:not(.live) #beebtn{display:none}
|
|
| 212 |
@keyframes buzz{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px) rotate(-10deg)}}
|
| 213 |
.assetbar{margin-top:6px}.assetbar small{color:var(--mut)}
|
| 214 |
@media (max-width:700px){.hbtn{font-size:10px;padding:0 7px}#wsp{top:56px;left:2vw}#bees{left:2vw;bottom:60px}}
|
|
|
|
|
|
|
|
|
| 212 |
@keyframes buzz{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px) rotate(-10deg)}}
|
| 213 |
.assetbar{margin-top:6px}.assetbar small{color:var(--mut)}
|
| 214 |
@media (max-width:700px){.hbtn{font-size:10px;padding:0 7px}#wsp{top:56px;left:2vw}#bees{left:2vw;bottom:60px}}
|
| 215 |
+
.hbtn .s{display:none}
|
| 216 |
+
@media (max-width:1600px){.hbtn .t{display:none}.hbtn .s{display:inline}#who{font-size:0}#who img{font-size:11px}}
|
workspace.js
CHANGED
|
@@ -10,7 +10,7 @@ async function api(path, opt = {}) { const r = await fetch(path, { credentials:
|
|
| 10 |
const form = (o) => { const f = new FormData(); Object.entries(o).forEach(([k, v]) => f.append(k, v)); return f; };
|
| 11 |
|
| 12 |
/* HUD buttons */
|
| 13 |
-
$('#hud .hudr').insertAdjacentHTML('afterbegin', `<a id="signin" class="hbtn" href="/login" target="_blank" rel="noopener" hidden>🤗 Sign in with Hugging Face</a><button id="wsbtn" class="hbtn" aria-label="Workspace öffnen" hidden>▤ Workspace</button><span id="who" hidden></span>`);
|
| 14 |
document.body.insertAdjacentHTML('beforeend', `<aside id="wsp" hidden role="dialog" aria-label="Workspace"><div class="wh"><b>WORKSPACE</b><small id="wsb"></small><button class="x" aria-label="Workspace schließen">✕</button></div><div class="wbody"></div></aside>
|
| 15 |
<button id="beebtn" aria-label="Bee-Agenten öffnen" title="Bee-Agenten">🐝<span>Agents</span></button>
|
| 16 |
<aside id="bees" hidden role="dialog" aria-label="Bee-Agenten"><div class="wh"><b>BEE AGENTS</b><select id="agsel" aria-label="Agent wählen"></select><button class="x" aria-label="Agenten schließen">✕</button></div><div class="agcfg"></div><div class="blog" aria-live="polite"></div><div class="brow"><input id="bin" aria-label="Auftrag an Agent" placeholder="Auftrag… z.B. 'Male eine goldene Biene'"><button class="btn" id="bsend" aria-label="Senden">➤</button></div></aside>`);
|
|
|
|
| 10 |
const form = (o) => { const f = new FormData(); Object.entries(o).forEach(([k, v]) => f.append(k, v)); return f; };
|
| 11 |
|
| 12 |
/* HUD buttons */
|
| 13 |
+
$('#hud .hudr').insertAdjacentHTML('afterbegin', `<a id="signin" class="hbtn" href="/login" target="_blank" rel="noopener" hidden>🤗<span class="t"> Sign in with Hugging Face</span><span class="s"> Login</span></a><button id="wsbtn" class="hbtn" aria-label="Workspace öffnen" hidden>▤<span class="t"> Workspace</span></button><span id="who" hidden></span>`);
|
| 14 |
document.body.insertAdjacentHTML('beforeend', `<aside id="wsp" hidden role="dialog" aria-label="Workspace"><div class="wh"><b>WORKSPACE</b><small id="wsb"></small><button class="x" aria-label="Workspace schließen">✕</button></div><div class="wbody"></div></aside>
|
| 15 |
<button id="beebtn" aria-label="Bee-Agenten öffnen" title="Bee-Agenten">🐝<span>Agents</span></button>
|
| 16 |
<aside id="bees" hidden role="dialog" aria-label="Bee-Agenten"><div class="wh"><b>BEE AGENTS</b><select id="agsel" aria-label="Agent wählen"></select><button class="x" aria-label="Agenten schließen">✕</button></div><div class="agcfg"></div><div class="blog" aria-live="polite"></div><div class="brow"><input id="bin" aria-label="Auftrag an Agent" placeholder="Auftrag… z.B. 'Male eine goldene Biene'"><button class="btn" id="bsend" aria-label="Senden">➤</button></div></aside>`);
|