diff --git a/client/.vscode/tasks.json b/client/.vscode/tasks.json new file mode 100644 index 0000000..a1028eb --- /dev/null +++ b/client/.vscode/tasks.json @@ -0,0 +1,11 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "0.1.0", + "command": "tsc", + "isShellCommand": true, + "args": ["-w", "-p", "."], + //"showOutput": "silent", + "isBackground": true, + "problemMatcher": "$tsc-watch" +} \ No newline at end of file diff --git a/client/game.js b/client/game.js new file mode 100644 index 0000000..41c6577 --- /dev/null +++ b/client/game.js @@ -0,0 +1,7 @@ +var FileCache = (function () { + function FileCache() { + } + FileCache.Initialize = function () { + }; + return FileCache; +}()); diff --git a/client/index.html b/client/index.html index f4e5b35..8153a43 100644 --- a/client/index.html +++ b/client/index.html @@ -3,7 +3,7 @@ CircleScape - + diff --git a/client/scripts/Database.ts b/client/src/FileCache.ts similarity index 81% rename from client/scripts/Database.ts rename to client/src/FileCache.ts index 7c2e166..4c23771 100644 --- a/client/scripts/Database.ts +++ b/client/src/FileCache.ts @@ -1,5 +1,5 @@ class FileCache { static Initialize() { - + } } \ No newline at end of file diff --git a/client/src/Init.js b/client/src/Init.js new file mode 100644 index 0000000..9dab121 --- /dev/null +++ b/client/src/Init.js @@ -0,0 +1,6 @@ +window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB; +window.IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.msIDBTransaction; +window.IDBKeyRange = window.IDBKeyRange || window.webkitIDBKeyRange || window.msIDBKeyRange + +if (!window.indexedDB) + window.alert("Your browser doesn't support a stable version of IndexedDB."); \ No newline at end of file