You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
607 B
21 lines
607 B
6 years ago
|
function startup() {
|
||
|
let connection = new Connection();
|
||
|
let connectionView = new ConnectionView(connection);
|
||
6 years ago
|
document.getElementById('connection').appendChild(connectionView.element);
|
||
6 years ago
|
|
||
|
let fs = new FileSystem({
|
||
6 years ago
|
inode: 1,
|
||
6 years ago
|
mode: 0755,
|
||
|
type: "dir",
|
||
|
entries: {
|
||
6 years ago
|
"hello.txt" : { inode: 2, mode: 0444, type: "file", contents: "Hello, World!"},
|
||
|
"say_hello.sh": { inode: 3, mode: 0555, type: "file", contents: "#!/bin/sh\necho hello\n"}
|
||
6 years ago
|
}
|
||
|
});
|
||
|
let handler = new FileSystemHandler(fs, connection);
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
window.onload = startup;
|