2022-10-12 18:54:28 +03:00
|
|
|
<!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">
|
2022-10-19 09:06:42 +03:00
|
|
|
<link rel="stylesheet" href="common/emscripten.css"/>
|
|
|
|
<link rel="stylesheet" href="common/testing.css"/>
|
2022-11-20 08:36:52 +03:00
|
|
|
<title>sqlite3 tester #1:
|
|
|
|
//#if target=es6-module
|
|
|
|
ES6 Module in UI thread
|
|
|
|
//#else
|
|
|
|
UI thread
|
|
|
|
//#endif
|
|
|
|
</title>
|
2022-12-05 17:13:55 +03:00
|
|
|
<style></style>
|
2022-10-12 18:54:28 +03:00
|
|
|
</head>
|
2022-12-05 17:13:55 +03:00
|
|
|
<body><h1 id='color-target'></h1>
|
2023-01-28 07:20:46 +03:00
|
|
|
<div>Variants:
|
|
|
|
<a href='tester1.html' target='tester1.html'>conventional UI thread</a>,
|
|
|
|
<a href='tester1-worker.html' target='tester1-worker.html'>conventional worker</a>,
|
|
|
|
<a href='tester1-esm.html' target='tester1-esm.html'>ESM in UI thread</a>,
|
|
|
|
<a href='tester1-worker.html?esm' target='tester1-worker.html?esm'>ESM worker</a>
|
|
|
|
</div>
|
2022-10-21 09:58:27 +03:00
|
|
|
<div class='input-wrapper'>
|
2022-10-25 11:15:57 +03:00
|
|
|
<input type='checkbox' id='cb-log-reverse'>
|
2022-10-21 09:58:27 +03:00
|
|
|
<label for='cb-log-reverse'>Reverse log order?</label>
|
|
|
|
</div>
|
2022-10-13 11:03:31 +03:00
|
|
|
<div id='test-output'></div>
|
2022-11-20 08:36:52 +03:00
|
|
|
<script>(function(){
|
|
|
|
document.querySelector('h1').innerHTML =
|
|
|
|
document.querySelector('title').innerHTML;
|
|
|
|
})();</script>
|
|
|
|
//#if target=es6-module
|
|
|
|
<script src="tester1.mjs" type="module"></script>
|
|
|
|
//#else
|
2022-10-19 07:44:58 +03:00
|
|
|
<script src="jswasm/sqlite3.js"></script>
|
2022-10-12 18:54:28 +03:00
|
|
|
<script src="tester1.js"></script>
|
2022-11-20 08:36:52 +03:00
|
|
|
//#endif
|
2022-10-12 18:54:28 +03:00
|
|
|
</body>
|
|
|
|
</html>
|