Skip to content

Commit

Permalink
0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p committed Mar 11, 2024
1 parent e26900f commit 24295de
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
14 changes: 11 additions & 3 deletions static/mobile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ async def custom_site():

builtins.re_entered = True


# if '-i' in sys.orig_argv:
# await asyncio.sleep(5)



import pygbag_app
import pygbag_ux as ux

Expand Down Expand Up @@ -122,16 +128,17 @@ async def custom_site():
raise IOError(404)
print_pg_bar(track.len or 100, track.pos or 0)

if str(track.avail) == "true":
if track.avail:
break
await asyncio.sleep(0.02)

# Print New Line on Complete
print()
print("Done")


print('Downloading and mounting assets:')
print(f'Downloading and mounting assets on track {track.trackid} :')
# wait until zip mount + overlayfs is complete
#while not track.ready:
await pv(track)
#await asyncio.sleep(.1)

Expand Down Expand Up @@ -384,6 +391,7 @@ config = {
<meta name="viewport" content="minimal-ui, width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1, user-scalable=no"">

<link rel="icon" type="image/png" href="favicon.png" sizes="16x16">
<link rel="stylesheet" type="text/css" href="{{cookiecutter.cdn}}/cssreset-min.css">

<style>
#status {
Expand Down
12 changes: 10 additions & 2 deletions static/pythons.js
Original file line number Diff line number Diff line change
Expand Up @@ -1050,10 +1050,18 @@ async function feat_vtx(debug_hidden) {
var fntsize = Math.floor(py/lines) - 1

if (lines<=33) {
fntsize = ( fntsize - 5 ) / console_divider
fntsize = ( fntsize - 6 ) / console_divider
console.log("vtx font: less than 33 lines : forced font to", fntsize)
}

console.warn("fnt:",window.document.body.clientHeight ,"/", lines,"=", fntsize, " Cols:", cols, "Cons:", cons)
if (navigator.userAgent.indexOf("Chrome") != -1 ) {
fntsize = Math.floor( fntsize * 1.12 )
console.log("vtx font: 125%")
} else {
console.log("vtx font: 100%")
}

console.warn("vtx font:",window.document.body.clientHeight ,"/", lines,"=", fntsize, " Cols:", cols, "Cons:", cons)
vm.vt = new WasmTerminal(
"terminal",
cols,
Expand Down

0 comments on commit 24295de

Please sign in to comment.