-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
settings.html
93 lines (88 loc) · 4.29 KB
/
settings.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="img/icon_x32.png">
<title>Peek Settings</title>
<link href="css/bootstrap.css" rel="stylesheet">
<style>
/* Firefox-specific styles */
@supports (-moz-appearance:none) {
#firefox-warning {
display: block !important;
}
}
</style>
</head>
<body>
<!-- Header -->
<div class="container-fluid bg-light mb-5">
<div class="container bg-light py-5">
<div class="row">
<div class="col-9">
<h1 class="display-5 fw-bold">Peek Settings</h1>
<p>Here you can change all the options for Peek. Your changes are automatically saved.</p>
</div>
</div>
</div>
</div>
<!-- Main container -->
<div class="container">
<div class="row">
<!-- Main settings -->
<div class="col-md-8">
<div class="card text-bg-warning w-100 mb-3 d-none" id="firefox-warning">
<div class="card-body">
<h5 class="card-title">You may need to update permissions</h5>
<p class="card-text">Firefox may block Peek from running on a page until you click the Peek button in the toolbar. You can fix this by going to your add-ons list (<b>about:addons</b>) > Peek > Permissions tab > Access your data for all websites.</p>
</div>
</div>
<!-- Document viewer -->
<div class="mb-3">
<label for="doc-viewer" class="form-label">Document Viewer</label>
<select id="doc-viewer" class="form-select" aria-labelledby="documentHelpBlock">
<option value="google">Google Docs</option>
<option value="office">Microsoft Office Online</option>
</select>
<div id="documentHelpBlock" class="form-text text-muted">
This is what Peek uses to display Microsoft Word (.doc, docx), Excel (.xls, .xlsx), and PowerPoint (.ppt, .pptx) files. The default is Google Docs.
</div>
</div>
<!-- Popup setting -->
<div class="mb-3">
<label class="form-label">Pop-out Preview</label>
<select id="popout-mode" class="form-select" aria-labelledby="popoutHelpBlock">
<option value="popup">Open preview in new window</option>
<option value="newtab">Open preview in new browser tab</option>
</select>
<div id="popoutHelpBlock" class="form-text text-muted">
This changes the behavior of the pop-out button <img src="img/arrow-up-right-circle.svg" height="15" title="pop-out button icon" aria> in Peek previews. The default is a new window.
</div>
</div>
</div>
<!-- Donation -->
<div class="col-md-4">
<h2>Donate</h2>
<p>If you find Peek useful, please donate to support continued development. It would mean a lot!</p>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=4SZVSMJKDS35J&lc=US&item_name=Peek%20Donation¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted" target="_blank">
<button type="button" class="btn btn-success w-100 mb-3">Donate via PayPal</button>
</a>
<a href="https://cash.app/$corbdav" target="_blank">
<button type="button" class="btn btn-success w-100 mb-3">Donate via Cash App</button>
</a>
<p>Peek is developed by <a href="https://corbin.io/?utm_source=Peek%20Extension">Corbin Davenport</a>.</p>
<h2>Need help?</h2>
<p>If something isn't working, or if you just want to chat with other Peek users, <a href="https://github.com/corbindavenport/peek/issues" target="_blank">create an issue on GitHub</a> or <a href="https://discord.com/invite/59wfy5cNHw" target="_blank">join the Discord server</a>.</p>
</div>
</div>
<!-- Footer -->
<div class="row">
<div class="bg-light rounded-3 pt-3 pb-3 mt-5 mb-5">
Peek uses code from <a href="https://github.com/cure53/DOMPurify" target="_blank">DOMPurify</a>, <a href="https://popper.js.org/" target="_blank">Popper.js</a>, <a href="https://atomiks.github.io/tippyjs/" target="_blank">Tippy.js</a>, <a href="https://icons.getbootstrap.com/" target="_blank">Bootstrap Icons</a>, and <a href="https://getbootstrap.com/" target="_blank">Bootstrap</a>. You can find Peek's source code <a href="https://github.com/corbindavenport/peek" target="_blank">on GitHub</a>, under the GPL license.</div>
</div>
</div>
<script src="js/settings.js"></script>
</body>
</html>