vidya mode
This commit is contained in:
parent
258c804593
commit
94b64c29b1
|
|
@ -2,13 +2,18 @@
|
|||
// temporary hack for browser commands
|
||||
|
||||
import { scrollback } from "./dom.js"
|
||||
import { resize } from "./resize.js"
|
||||
|
||||
export const commands: string[] = []
|
||||
|
||||
export const browserCommands: Record<string, () => any> = {
|
||||
fullscreen: () => document.body.requestFullscreen(),
|
||||
clear: () => scrollback.innerHTML = "",
|
||||
commands: () => commands.join(" ")
|
||||
commands: () => commands.join(" "),
|
||||
fullscreen: () => document.body.requestFullscreen(),
|
||||
mode: () => {
|
||||
document.body.dataset.mode = document.body.dataset.mode === "tall" ? "cinema" : "tall"
|
||||
resize()
|
||||
}
|
||||
}
|
||||
|
||||
export function cacheCommands(cmds: string[]) {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ export function setStatus(id: string, status: InputStatus) {
|
|||
|
||||
switch (status) {
|
||||
case "waiting":
|
||||
statusEl.classList.add("dark-blue")
|
||||
statusEl.classList.add("yellow")
|
||||
break
|
||||
case "streaming":
|
||||
statusEl.classList.add("purple")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user