Skip to content

Commit fbdcc7f

Browse files
committed
add comments to demo
1 parent f35ee20 commit fbdcc7f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

demo.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@
55
</title>
66
<script src="sql.js"></script>
77
<script>
8+
// Connect to the HTML element we 'print' to
89
function print(text) {
910
var element = document.getElementById('output');
1011
element.innerHTML = text.replace(/\n/g, '<br>');
1112
}
1213

14+
// Open a database
1315
var db = SQL.open();
1416

17+
// Run a command in the database
1518
function execute(commands) {
1619
try {
1720
var data = db.exec(commands.replace(/\n/g, '; '));

0 commit comments

Comments
 (0)