Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
bacionejs authored Aug 9, 2024
1 parent 8e36381 commit 9834b69
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bacione.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@

let themes=(function(){
let i=-1,t={},a=[
["fontsizesmall" ,[10 , 10 , 10 , 10 ]],
["fontsizebig" ,[15 , 15 , 15 , 15 ]],
["keyroundness" ,["20%" , "20%" , "20%" , "50%" ]],
["keyborder" ,["silver", "tan" , "white" , "none" ]],
["keybackground" ,["white" , "black" , "#38393D" , "#38393D" ]],
Expand All @@ -50,8 +52,6 @@
["foreground" ,["black" , "tan" , "whitesmoke" , "lime" ]],
["keywords" ,["teal" , "orange", "silver" , "lime" ]],
["pairs" ,["purple", "brown" , "black" , "lime" ]],
["fontsizesmall" ,[10 , 10 , 10 , 10 ]],
["fontsizebig" ,[15 , 15 , 15 , 15 ]],
];
(t.next=()=>{if(++i>=a[0][1].length)i=0; a.forEach(a=>t[a[0]]=a[1][i])})();
i--;
Expand Down Expand Up @@ -154,8 +154,8 @@
}

function zoom(){
let p=PRETTY.style;
let t=T.style;
let p=PRETTY.style;
if(parseInt(t.fontSize)==themes.fontsizesmall){
t.fontSize=themes.fontsizebig;
p.fontSize=themes.fontsizebig;
Expand All @@ -166,6 +166,7 @@
p.fontSize=themes.fontsizesmall;
// t.whiteSpace="nowrap";
// p.whiteSpace="pre";

}
setTimeout(()=>{T.blur(); T.focus();},200);
}
Expand Down Expand Up @@ -931,6 +932,7 @@
style.fontFamily="monospace";
style.touchAction="pan-x pan-y";
style.zIndex=2;
style.overflow="auto";
style.whiteSpace="nowrap";

T.value=striplinesfirstlast(gameprograms);
Expand All @@ -952,8 +954,8 @@
style.touchAction="pan-x pan-y";
style.zIndex=1;
style.overflow="auto";
style.wordWrap="break-word";
style.whiteSpace="pre";
style.wordWrap="break-word";
return e;
}//end createpretty

Expand Down

0 comments on commit 9834b69

Please sign in to comment.