added Cousine references
This commit is contained in:
parent
36b9eaadcb
commit
44f79ac02a
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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') ) )
|
||||
|
||||
|
|
Loading…
Reference in New Issue