34 lines
647 B
HTML
34 lines
647 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
</head>
|
|
<body>
|
|
<div id="stdout"></div>
|
|
</body>
|
|
<script src="../lib/require.js"></script>
|
|
<script>
|
|
require.config({
|
|
baseUrl: "../lib",
|
|
paths: {
|
|
"src": "../src"
|
|
}
|
|
});
|
|
|
|
require(["src/filesystem"], function(IDBFS) {
|
|
|
|
IDBFS.mount("default", function(error, fs) {
|
|
fs.mkdir("/tmp", function(error) {
|
|
fs.mkdir("/tmp/0", function(error) {
|
|
fs.mkdir("/tmp/1", function(error) {
|
|
fs.rmdir("/tmp/0", function(error) {
|
|
fs.dump(document.getElementById("stdout"));
|
|
});
|
|
});
|
|
});
|
|
});
|
|
}, true);
|
|
|
|
});
|
|
</script>
|
|
</html> |