forked from inloop/sqlite-viewer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
143 lines (127 loc) · 7.91 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="sqlite file viewer">
<meta name="keywords" content="sqlite,viewer,db,database,online">
<meta name="author" content="Juraj Novák">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PIDDatabase Viewer</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/select2.min.css" rel="stylesheet">
<link href="css/select2-bootstrap-5-theme.min.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link rel="image_src" href="img/icon.png" />
<link rel="icon" type="image/png" href="img/icon.png"/>
<meta property="og:url" content="https://inloop.github.io/sqlite-viewer/">
<meta property="og:type" content="website">
<meta property="og:title" content="PIDDatabase Viewer">
<meta property="og:description" content="Viewer for the UMSKT PIDDatabase, powered by SQLite Viewer">
<meta property="og:image" content="https://inloop.github.io/sqlite-viewer/img/icon.png">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-N22SYDVQHZ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-N22SYDVQHZ');
</script>
</head>
<body>
<img src="img/icon.png" style="display: none;"/>
<div id="main-container" class="container shadow bg-white" style="background-color: rgba(255, 255, 255, 0.4)!important; backdrop-filter: blur(10px);">
<header id="header" class="row align-items-center p-4">
<img src="img/logo.svg" width="54" height="54" class="col-auto p-0" alt="Database logo"/>
<div class="col">
<h4 class="mb-0">PIDDatabase Viewer</h4>
<p class="mb-0">Powered by SQLite Viewer</p>
</div>
<a href="#" id="resizer" aria-label="Expand/Collapse" class="col-auto text-decoration-none" style="color: #3474A8">
<svg id="resizer-expand" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="bi bi-arrows-angle-expand" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M5.828 10.172a.5.5 0 0 0-.707 0l-4.096 4.096V11.5a.5.5 0 0 0-1 0v3.975a.5.5 0 0 0 .5.5H4.5a.5.5 0 0 0 0-1H1.732l4.096-4.096a.5.5 0 0 0 0-.707m4.344-4.344a.5.5 0 0 0 .707 0l4.096-4.096V4.5a.5.5 0 1 0 1 0V.525a.5.5 0 0 0-.5-.5H11.5a.5.5 0 0 0 0 1h2.768l-4.096 4.096a.5.5 0 0 0 0 .707"/>
</svg>
<svg id="resizer-collapse" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="bi bi-arrows-angle-contract collapse" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M.172 15.828a.5.5 0 0 0 .707 0l4.096-4.096V14.5a.5.5 0 1 0 1 0v-3.975a.5.5 0 0 0-.5-.5H1.5a.5.5 0 0 0 0 1h2.768L.172 15.121a.5.5 0 0 0 0 .707M15.828.172a.5.5 0 0 0-.707 0l-4.096 4.096V1.5a.5.5 0 1 0-1 0v3.975a.5.5 0 0 0 .5.5H14.5a.5.5 0 0 0 0-1h-2.768L15.828.879a.5.5 0 0 0 0-.707"/>
</svg>
</a>
</header>
<div id="compat-error" class="alert alert-danger row rounded-0 d-none" role="alert">
Sorry but your browser does not support some of new HTML5 features! Try using latest version of Google Chrome or Firefox.
</div>
<div class="row text-center p-3 align-items-stretch" id="dropzone" onclick="dropzoneClick(this)">
<div class="d-flex border border-info-subtle rounded-1 align-items-center justify-content-center">
<div id="drop-loading" class="d-flex align-items-center d-none">
<div class="spinner-border me-2" role="status">
<span class="visually-hidden">Loading...</span>
</div>
<b>Processing file...</b>
</div>
</div>
</div>
<div id="output-box" class="container-fluid">
<div class="input-group">
<select id="tables" class="form-select" title="Table"></select>
<div class="dropdown ms-2">
<button class="btn btn-outline-secondary dropdown-toggle" type="button" id="dropdownMenu1"
data-bs-toggle="dropdown" aria-expanded="false">
Export
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
<li><a class="dropdown-item" href="#" onclick="exportAllToCsv()">All tables to CSV</a></li>
<li><a class="dropdown-item" href="#" onclick="exportSelectedTableToCsv()">Selected table to CSV</a></li>
<li><a class="dropdown-item" href="#" onclick="exportQueryTableToCsv()">Query table to CSV</a></li>
</ul>
</div>
</div>
<div class="d-flex mt-3 mb-3">
<div id="sql-editor" class="form-control form-control-lg col me-2"></div>
<button class="btn btn-primary col-auto" id="sql-run" type="submit" onclick="executeSql(this)">Execute</button>
</div>
<div class="alert alert-danger" id="error" style="display: none"></div>
<div class="alert alert-info" id="info" style="display: none"></div>
<div class="row pb-4">
<div class="overflow-x-auto">
<table id="data" class="table table-sm table-bordered table-hover table-striped">
<thead>
<tr></tr>
</thead>
<tbody class="table-group-divider"></tbody>
</table>
</div>
</div>
</div>
</div>
<div id="bottom-bar" class="d-flex position-sticky justify-content-center bottom-0 pb-4 d-none pe-none">
<div class="row bg-white border border-dark shadow p-3 rounded-2 pe-auto">
<button class="btn btn-outline-secondary btn-sm lh-1 col-auto" id="page-prev" type="submit" onclick="setPage(this, false)">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-caret-left-fill" viewBox="0 0 16 16">
<path d="m3.86 8.753 5.482 4.796c.646.566 1.658.106 1.658-.753V3.204a1 1 0 0 0-1.659-.753l-5.48 4.796a1 1 0 0 0 0 1.506z"/>
</svg>
</button>
<a href="javascript:void(0)" data-bs-toggle="tooltip" class="text-decoration-none col-auto" onclick="setPage(this)" id="pager"></a>
<button class="btn btn-outline-secondary btn-sm lh-1 col-auto" id="page-next" type="submit" onclick="setPage(this, true)">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-caret-right-fill" viewBox="0 0 16 16">
<path d="m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z"/>
</svg>
</button>
</div>
</div>
<footer class="col text-center text-light py-2 my-1 small" id="footer">
This is a modified version of SQLite Viewer to more easily access a single database.<br>
<a href="https://github.com/UMSKT" class="text-decoration-none text-info">© 2024 UMSKT authors</a><br>
<a href="https://yuraj11.github.io" class="text-decoration-none text-info">Original source © 2024 Juraj Novák</a><br>
<small><a href="https://github.com/UMSKT/PIDDatabase-viewer" class="text-decoration-none text-info link-opacity-75">See the source code</a></small><br>
<small><a href="https://github.com/inloop/sqlite-viewer" class="text-decoration-none text-info link-opacity-75">See the original code</a></small>
</footer>
<script src="js/jquery-3.7.1.min.js"></script>
<script src="js/filereader.js"></script>
<script src="js/sql-wasm.js?v=1100"></script>
<script src="js/select2.min.js?v=4013"></script>
<script src="js/ace/ace.js?v=1323"></script>
<script src="js/bootstrap.bundle.min.js?v=532"></script>
<script src="js/mindmup-editabletable.js"></script>
<script src="js/jszip.min.js"></script>
<script src="js/FileSaver.min.js"></script>
<script src="js/main.js?v=18"></script>
</body>
</html>