Commit 99d64ad1 authored by Zhai Zirun's avatar Zhai Zirun

framework for using sql.js

parent 37672aad
......@@ -2,7 +2,7 @@
var MOUSE_VISITED_CLASSNAME = 'crx_mouse_visited_true';
var MOUSE_VISITED_CLASSNAME_FALSE = 'crx_mouse_visited_false';
var worker = new Worker("./sql.js/dist/worker.sql-wasm.js");
var srcName;
// var requestResult;
......@@ -16,6 +16,16 @@ function dietNumInit() {
dietNum = a + (b << 1) + (c << 2) + (d << 3);
}
// https://github.com/sql-js/sql.js/blob/master/examples/GUI/gui.js
function databaseInit() {
}
function queryDatabase(product) {
}
// function query(product) {
// const sqlite3 = require('sqlite3').verbose();
......
......@@ -4,7 +4,7 @@
<meta charset = "utf-8"/>
<title> clickerance </title>
<link type="text/css" rel="stylesheet" href="style.css"/>
<script src="bundle.js"></script>
<script src="content.js"></script>
</head>
<body>
<div class="Title"></div>
......@@ -17,6 +17,6 @@
<p>Which ones you can't eat?</p>
<input id="Submit" type="submit" value="Submit">
<input id="Submit" type="submit" value="Submit" onclick="databaseInit()">
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment