From 09219e12b4e03cbb6924a81bb00403b5fbc2d490 Mon Sep 17 00:00:00 2001 From: Malloc of Kuzkycyziklistan Date: Mon, 17 Apr 2017 16:02:12 -0500 Subject: [PATCH] squeed --- client/.vscode/tasks.json | 11 +++++++++++ client/game.js | 7 +++++++ client/index.html | 2 +- client/{scripts/Database.ts => src/FileCache.ts} | 2 +- client/src/Init.js | 6 ++++++ 5 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 client/.vscode/tasks.json create mode 100644 client/game.js rename client/{scripts/Database.ts => src/FileCache.ts} (81%) create mode 100644 client/src/Init.js 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