added Cousine references
/ mirror_to_github (push) Successful in 23s Details
/ test (push) Successful in 5s Details

This commit is contained in:
Leon van Kammen 2024-09-23 16:01:40 +00:00
parent 36b9eaadcb
commit 44f79ac02a
3 changed files with 10 additions and 4 deletions

View File

@ -80,7 +80,7 @@ if( typeof AFRAME != 'undefined '){
},
dom: {
scale: 0.5,
scale: 0.66,
events: ['click','keydown'],
html: (me) => `<div class="isoterminal">
<div id="screen" style="white-space: pre; font: 14px monospace; "></div>
@ -97,7 +97,13 @@ if( typeof AFRAME != 'undefined '){
font-family: 'Cousine';
font-style: normal;
font-weight: 400;
src: url(./assets/Cousine.ttf) format('truetype');
src: url(./com/isoterminal/assets/Cousine.ttf) format('truetype');
}
@font-face {
font-family: 'Cousine';
font-style: normal;
font-weight: 700;
src: url(./com/isoterminal/assets/CousineBold.ttf) format('truetype');
}
.isoterminal *{
white-space: pre;

View File

@ -11,7 +11,7 @@ ISOTerminal.prototype.autorestore = async function(e){
]).then( () => {
localforage.getItem("state", async (err,stateBase64) => {
if( !err && confirm('continue last session?') ){
if( stateBase64 && !err && confirm('continue last session?') ){
this.noboot = true // see feat/boot.js
state = this.convert.base64ToArrayBuffer( stateBase64 )
this.emulator.restore_state(state)

View File

@ -7,7 +7,7 @@ ISOTerminal.prototype.boot = async function(e){
let env = ['export BROWSER=1']
for ( let i in document.location ){
if( typeof document.location[i] == 'string' )
env.push( 'export '+String(i).toUpperCase()+'="'+document.location[i]+'"')
env.push( 'export '+String(i).toUpperCase()+'="'+decodeURIComponent( document.location[i]+'"') )
}
await this.emulator.create_file("profile.browser", this.convert.toUint8Array( env.join('\n') ) )