aboutsummaryrefslogtreecommitdiff
path: root/src/fs.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs.json')
-rw-r--r--src/fs.json8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fs.json b/src/fs.json
index 96cbf9f..be1a7b4 100644
--- a/src/fs.json
+++ b/src/fs.json
@@ -6,17 +6,21 @@
"content": [
{
"name": "notepad",
- "icon": "./src/img/notepad.png",
"perms": { "r": true },
"dir": false,
"content": "window Notepad <textarea onkeypress='auto_resize(this)' style='width:100%;overflow:visible;display:block;'></textarea>\nmeta icon src/img/notepad.png"
},
{
"name": "cmd",
- "icon": "./src/img/cmd.png",
"perms": { "r": true },
"dir": false,
"content": "window cmd <div class='history' id='#_ID-history'></div><form autocomplete='off' onsubmit='exe_com(this);return false;'>λ <input id='#_ID-line' class='line' style='width:95%;' autofocus><input type='submit' style='display: none' /></form>\nmeta icon src/img/cmd.png"
+ },
+ {
+ "name": "Mine Sweeper",
+ "perms": { "r": true },
+ "dir": false,
+ "content": "window uwu uwu\nmeta icon src/img/mine.png, resize false, left 250, top 250, width 144, height 192, scroll false\njs let id = #_ID - 1;let cont = document.getElementById(id + '-content-content');let width = 9; let height = 10;cont.innerHTML='';let board = [];for(let i = 0; i!=height;i++){let temp = [];for(let i = 0; i!=width;i++){if(Math.random() < 0.19){temp.push(-1);} else {temp.push(0);}};board.push(temp);};for(let i = 0; i!= board.length; i++){for(let ii = 0; ii!=board[i].length; ii++){if((i!=0&&i!=height-1&&ii!=0&&ii!=width-1)&&board[i][ii]!=-1){board[i][ii] = (board[i-1][ii]==-1) + (board[i-1][ii-1]==-1) + (board[i][ii-1]==-1) + (board[i+1][ii-1]==-1) + (board[i+1][ii]==-1) + (board[i+1][ii+1]==-1) + (board[i][ii+1]==-1) + (board[i-1][ii+1]==-1);}}};for(let l of board){console.log(l)}"
}
]
}