sqlite/ext/wasm/tester1-esm.html

31 lines
1.0 KiB
HTML
Raw Normal View History

<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">
<link rel="stylesheet" href="common/emscripten.css"/>
<link rel="stylesheet" href="common/testing.css"/>
<title>sqlite3 tester #1: ES6 Module in UI thread</title>
<style>
body {
font-family: monospace;
}
</style>
</head>
<body>
<h1 id='color-target'>sqlite3 tester #1: ES6 Module in UI thread</h1>
<div class='input-wrapper'>
<input type='checkbox' id='cb-log-reverse'>
<label for='cb-log-reverse'>Reverse log order?</label>
</div>
<div id='test-output'></div>
<script type="module" defer>
import {default as sqlite3InitModule} from "./jswasm/sqlite3.mjs";
self.sqlite3InitModule = sqlite3InitModule;
console.log("Loaded sqlite3InitModule() via an ES6 module.");
</script>
<script src="tester1.js" defer></script>
</body>
</html>