-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
67 lines (61 loc) · 2.88 KB
/
index.html
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SQLite WebAssembly + WebRTC</title>
<link rel="stylesheet" href="/css/main.css" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link href=" https://cdn.jsdelivr.net/npm/[email protected]/dist/styles/css/slick-icons.min.css " rel="stylesheet">
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/styles/css/slick-alpine-theme.min.css">
</head>
<body>
<div id="toasts" class="toast-container top-0 end-0 p-3"></div>
<div style="text-align: center;">
<h1>SQLite WebAssembly + WebRTC</h1>
<p>Source code: <a
href="https://github.com/adhamsalama/sqlite-wasm-webrtc">https://github.com/adhamsalama/sqlite-wasm-webrtc</a>
</p>
<div id="metadata">
Room Name: <span id="room"></span>
<br>
User ID: <span id="id"></span>
</div>
<button id="joinButton">Join Room</button>
<button id="hangupButton">Hangup</button>
</div>
<div id="messagesContainer" style="display: none;">
<h2>Messages</h2>
<ul id="messages"></ul>
<textarea name="message" id="newMessage"></textarea>
<button id="sendMessage">Send</button>
</div>
<form id="query-form">
<h1>Write your SQL queries here.</h1>
<textarea id="query"></textarea>
<button type="submit" id="run-query" style="width: 100%;">Run</button>
<hr>
<p>Import CSV or SQLite file.</p>
<input type="file" id="file_input">
<button type="button" id="import" style="width: 100%;">Import</button>
<button type="button" id="export" style="width: 100%;">Export DB</button>
</form>
<div id="grid" class="slick-container" style="width:100%;height:1000px;"></div>
<script src="https://cdn.jsdelivr.net/npm/sortablejs/Sortable.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/browser/slick.core.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/browser/slick.interactions.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/browser/slick.grid.min.js"></script>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
<script src="./csvToSqlite.js"></script>
<script src="./randomString.js"></script>
<script src="./async-worker.js"></script>
<script src="/socket.io/socket.io.js"></script>
<script src="./spreadsheet.js"></script>
<script src="./main.js"></script>
<script src="js/webrtc.js"></script>
</body>
</html>