-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.ts
36 lines (30 loc) · 883 Bytes
/
script.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
'use strict'
$("document").ready(function () {
// Debugging UI - enable in index.html too
// $("#start-button").click(main);
// $("#platform-button").click(Platform.init);
// $("#clear-button").click(window.localStorage.clear);
main();
});
let controller: Controller;
function main() {
Platform.init();
controller = new Controller();
}
// Debugging UI - enable in index.html too.
// function printDebug (str: string) {
// let $deb = $("#debug");
// $deb.append($("<br>"));
// $deb.append(str);
// }
function foo() {
controller.app_data_dir.getFile('out', { create: true, exclusive: false }, function (file, err) {
if (err) {
console.log(err);
return;
}
file.write(new Blob([JSON.stringify(controller.movie_list)]), function () {
console.log('wrote file');
});
})
}