mirror of
https://github.com/TangentFoxy/memex.git
synced 2024-11-22 04:54:23 +00:00
Revert to standard js database (local Chrome browser support avoiding CORS error).
This commit is contained in:
parent
eff3e720c9
commit
0b8851bac8
@ -1,3 +1,4 @@
|
|||||||
|
var DATABASE = `
|
||||||
AGAINST BEAUTY IN PHYSICS
|
AGAINST BEAUTY IN PHYSICS
|
||||||
PERS : faun
|
PERS : faun
|
||||||
SRCE : Merveilles
|
SRCE : Merveilles
|
||||||
@ -4002,3 +4003,4 @@ HOW TO MAKE A ROGUELIKE
|
|||||||
LINK : https://www.gridsagegames.com/blog/2018/10/how-to-make-a-roguelike/
|
LINK : https://www.gridsagegames.com/blog/2018/10/how-to-make-a-roguelike/
|
||||||
PERS : Phil James
|
PERS : Phil James
|
||||||
TAGS : gamedev
|
TAGS : gamedev
|
||||||
|
`
|
@ -13,6 +13,7 @@
|
|||||||
<script src="logic/lib/indental.js"></script>
|
<script src="logic/lib/indental.js"></script>
|
||||||
<script src="logic/lib/theme.js"></script>
|
<script src="logic/lib/theme.js"></script>
|
||||||
|
|
||||||
|
<script src="content/data.ndtl"></script>
|
||||||
<script src="content/settings.js"></script>
|
<script src="content/settings.js"></script>
|
||||||
<script src="logic/wrap.js"></script>
|
<script src="logic/wrap.js"></script>
|
||||||
<script src="logic/view.js"></script>
|
<script src="logic/view.js"></script>
|
||||||
@ -30,6 +31,7 @@
|
|||||||
<script>
|
<script>
|
||||||
var main = new Main();
|
var main = new Main();
|
||||||
main.install();
|
main.install();
|
||||||
|
main.start();
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -12,7 +12,6 @@ function Main()
|
|||||||
this.queryPrevAdd = '';
|
this.queryPrevAdd = '';
|
||||||
|
|
||||||
var parent = this;
|
var parent = this;
|
||||||
const FILELOCATION = 'content/data.ndtl';
|
|
||||||
|
|
||||||
this.install = function()
|
this.install = function()
|
||||||
{
|
{
|
||||||
@ -21,17 +20,8 @@ function Main()
|
|||||||
this.lightbox = new Lightbox;
|
this.lightbox = new Lightbox;
|
||||||
this.lightbox.install();
|
this.lightbox.install();
|
||||||
|
|
||||||
var oReq = new XMLHttpRequest();
|
|
||||||
oReq.open('GET', FILELOCATION);
|
|
||||||
oReq.overrideMimeType("text/plain");
|
|
||||||
oReq.addEventListener("load", function() { parent.setup(this.responseText); } );
|
|
||||||
oReq.send();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.setup = function(data)
|
|
||||||
{
|
|
||||||
this.db = new Wrap();
|
this.db = new Wrap();
|
||||||
this.db.install(data);
|
this.db.install(DATABASE);
|
||||||
this.view = new View();
|
this.view = new View();
|
||||||
this.view.install();
|
this.view.install();
|
||||||
|
|
||||||
@ -45,8 +35,6 @@ function Main()
|
|||||||
// main.add.close();
|
// main.add.close();
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
this.start();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.start = function()
|
this.start = function()
|
||||||
|
Loading…
Reference in New Issue
Block a user