-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
59 lines (56 loc) · 5.31 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
<html>
<head>
<title>Example App</title>
<link rel="stylesheet" href="index.css" />
</head>
<body class="myarrow">
<div class="page darwin" id="main">
<div class="entry">
<textarea placeholder="your question" class="input" id="prompt"></textarea>
<select name="model" id="model">
</select>
<button id="query" class="query">Query</button>
<div class="spin-container hidden" id="spinner">
<div class="spin" id="loader"></div>
<div class="spin" id="loader2"></div>
<div class="spin" id="loader3"></div>
<div class="spin" id="loader4"></div>
<span id="text">QUERYING...</span>
</div>
</div>
<div class="results" id="results"></div>
<div id="menu" class="menu">
<img
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAACXBIWXMAAA3XAAAN1wFCKJt4AAAE9GlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgOS4xLWMwMDEgNzkuYThkNDc1MzQ5LCAyMDIzLzAzLzIzLTEzOjA1OjQ1ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG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="window.close()">Quit</a>
</span>
</div>
</div>
<div class="hidden preferences" id="preferences">
<h3>Dumbar Preferences</h3>
<div>
<label for="host">Ollama Host</label>
<input id="host" type="text" placeholder="127.0.0.1">
</div>
<div>
<label for="port">Ollama Port</label>
<input id="port" type="text" placeholder="11434">
</div>
<div class="copyright">
Dumbar is © 2023 by Jerry Sievert
<br>
It is free to use.
<br>
See the source and license at https://github.com/JerrySievert/dumbar
</div>
<div class="action">
<button id="save">Save</button>
<button id="cancel">Cancel</button>
</div>
</div>
<script src="app.js" type="text/javascript">
</script>
</body>
</html>