Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·26 lines (26 loc) · 1.6 KB
/
Copy pathindex.html
File metadata and controls
executable file
·26 lines (26 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!-- <meta http-equiv="refresh"content="0;url=./g.html"/> -->
<meta content="tiny desktop"name=title>
<meta content="tiny desktop"name=twitter:title>
<meta content="tiny desktop"name=og:title>
<meta content="set of apps and games, each below 1500 bytes!"name=description>
<meta content="set of apps and games, each below 1500 bytes!"property=og:description>
<meta content="set of apps and games, each below 1500 bytes!"property=twitter:description>
<meta content=/tinies/q.png property=og:image>
<meta content=/tinies/q.png property=twitter:image>
<meta content=summary_large_image property=twitter:card>
<script src=./api.js></script>
<script>
navigator.serviceWorker.register("./wrk.js",{ scope:'./'});
(async()=>{
await aR;
if(!await getf('boot')){
localStorage.setItem('sys_id',crypto.randomUUID())
await setf('ui.sys',`:root{color-scheme:light dark}p,a{background:#8888;margin:0}body{margin:0;}.w{width:50vw;height:50vh;}`)
await setf('apps.sys',JSON.stringify({sheets:"a.html",plot:"b.html",editor:"c.html",todo:"d.html",paint:"e.html",files:"f.html",camera:"h.html",browser:"j.html",nodes:"k.html",terminal:"l.html",settings:"n.html",games:"s.html",info:"i.html"}))
await setf('perms.sys',"accelerometer;gyroscope;camera;")
await setf('title.sys',"<button style=float:right>X</button>")
await setf('winevt.sys',"bar.onpointermove=e=>e.buttons&&(win.style.left=win.offsetLeft+e.movementX+'px',win.style.top=win.offsetTop+e.movementY+'px')")
await setf('boot',1)
await setf('applets.sys','{"time":{"icon":"⌚","onclick":"alert(new Date)"},"reboot":{"icon":"🔌","onclick":"location.reload()"}}')
}location.href="g.html"})();
</script>