-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
75 lines (71 loc) · 2.51 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Go Corpus</title>
<script src="wasm_exec.js"></script>
<script src="pako.min.js"></script>
<script src="untar.min.js"></script>
<script src="app.js"></script>
<link rel="stylesheet" type="text/css" href="theme.css"/>
<link rel="stylesheet" type="text/css" href="style.css"/>
<meta property="og:title" content="Go Corpus">
<meta property="og:type" content="website">
<meta property="og:description" content="Search over a Go corpus">
<meta property="og:url" content="https://quasilyte.dev/gocorpus/">
<meta property="og:locale" content="en_US">
</head>
<body><div class="container-lg px-0 my-5 markdown-body">
<table style="table-layout: auto; max-width: 1280px">
<tr>
<td style="width: 700px">
Search over a Go corpus (totalling <span id="total-sloc">?</span> SLOC)
</td>
<td style="width: 500px">
<button id="run-button">Run</button>
<button id="share-button" style="margin-left: 8px;">Share</button>
<button id="help-button" style="margin-left: 8px;">Help</button>
</td>
</tr>
<tr>
<td>
Search pattern
<div class="code-block">
<textarea id="search-pattern" class="editor code block" data-gramm="false" spellcheck="false">var $b bytes.Buffer; $*_; return $b.String()</textarea>
</div>
</td>
<td>
Filter
<div class="code-block">
<textarea id="results-filter" class="editor code block" data-gramm="false" spellcheck="false">!file.IsAutogen() && file.MaxDepth() <= 100</textarea>
</div>
</td>
</tr>
<tr>
<td>
Status: <span id="status">undefined [Object object] and Where to Find Them</span>
</td>
<td>
<span id="search-progress"></span>
</td>
</tr>
<tr>
<td colspan="2">
Repositories
<button id="load-button" style="margin-left: 16px;">Load</button>
<button id="selectall-button" style="margin-left: 8px;">Select all</button>
<br>
<br>
<div id="corpus-selection"></div>
</td>
</tr>
<tr>
<td colspan="2">
Query results
<hr>
<span id="search-results"></span>
</td>
</tr>
</table>
</div></body>
</html>