forked from sihorton/electron-sqlite3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
26 lines (25 loc) · 693 Bytes
/
Copy pathindex.html
File metadata and controls
26 lines (25 loc) · 693 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<script>
window.$ = window.jQuery = require('jquery');
</script>
<script src="db.js"></script>
<h1>Hello World!</h1>
We are using io.js <script>document.write(process.version)</script>
and Electron <script>document.write(process.versions['electron'])</script>.
<div id="dbrows">
<h2>Database Rows</h2>
</div>
<script>
$( document ).ready(function() {
db.each("SELECT rowid AS id, info FROM lorem", function(err, row) {
$('#dbrows').append(row.id + ": " + row.info + "<br />");
});
});
</script>
</body>
</html>