-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
142 lines (118 loc) · 7 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<!-- <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">-->
<!-- <meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src 'self'">-->
<meta http-equiv="Content-Security-Policy"
content="font-src 'self' data:; img-src * 'self' data:; default-src 'self'; script-src 'self' 'unsafe-inline'; connect-src * 'self'; frame-src *; style-src 'self' 'unsafe-inline'">
<link rel="stylesheet" href="css/index.css">
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap-icons.css">
<link rel="stylesheet" href="vendor/glightbox/css/glightbox.css">
<script src="vendor/glightbox/js/glightbox.js"></script>
<title>Truman Show - Global Image Search</title>
</head>
<body>
<!--<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-gear" viewBox="0 0 16 16">-->
<!-- <path fill-rule="evenodd" d="M8.837 1.626c-.246-.835-1.428-.835-1.674 0l-.094.319A1.873 1.873 0 0 1 4.377 3.06l-.292-.16c-.764-.415-1.6.42-1.184 1.185l.159.292a1.873 1.873 0 0 1-1.115 2.692l-.319.094c-.835.246-.835 1.428 0 1.674l.319.094a1.873 1.873 0 0 1 1.115 2.693l-.16.291c-.415.764.42 1.6 1.185 1.184l.292-.159a1.873 1.873 0 0 1 2.692 1.116l.094.318c.246.835 1.428.835 1.674 0l.094-.319a1.873 1.873 0 0 1 2.693-1.115l.291.16c.764.415 1.6-.42 1.184-1.185l-.159-.291a1.873 1.873 0 0 1 1.116-2.693l.318-.094c.835-.246.835-1.428 0-1.674l-.319-.094a1.873 1.873 0 0 1-1.115-2.692l.16-.292c.415-.764-.42-1.6-1.185-1.184l-.291.159A1.873 1.873 0 0 1 8.93 1.945l-.094-.319zm-2.633-.283c.527-1.79 3.065-1.79 3.592 0l.094.319a.873.873 0 0 0 1.255.52l.292-.16c1.64-.892 3.434.901 2.54 2.541l-.159.292a.873.873 0 0 0 .52 1.255l.319.094c1.79.527 1.79 3.065 0 3.592l-.319.094a.873.873 0 0 0-.52 1.255l.16.292c.893 1.64-.902 3.434-2.541 2.54l-.292-.159a.873.873 0 0 0-1.255.52l-.094.319c-.527 1.79-3.065 1.79-3.592 0l-.094-.319a.873.873 0 0 0-1.255-.52l-.292.16c-1.64.893-3.433-.902-2.54-2.541l.159-.292a.873.873 0 0 0-.52-1.255l-.319-.094c-1.79-.527-1.79-3.065 0-3.592l.319-.094a.873.873 0 0 0 .52-1.255l-.16-.292c-.892-1.64.902-3.433 2.541-2.54l.292.159a.873.873 0 0 0 1.255-.52l.094-.319z"/>-->
<!-- <path fill-rule="evenodd" d="M8 5.754a2.246 2.246 0 1 0 0 4.492 2.246 2.246 0 0 0 0-4.492zM4.754 8a3.246 3.246 0 1 1 6.492 0 3.246 3.246 0 0 1-6.492 0z"/>-->
<!--</svg>-->
<div class="row m-2">
<div class="col my-auto">
<div class="search_container">
<input id="search" name="search" type="text" class="form-control" placeholder="What do you want to search for?">
</div>
</div>
<div class="col-auto">
<!-- <p class="mb-0 ">-->
<button id="load-settings" type="button" class="btn btn-secondary">
<i class="bi bi-gear" style="font-size: 1.2rem; color: cornflowerblue;"></i>
<span class="visually-hidden">Button</span>
</button>
<!-- </p>-->
</div>
</div>
<div class="row">
<img class='checkbox' src="./assets/checkbox.png" hidden>
<button hidden type="button" id="fetch-images" name="fetch-images">Fetch Images</button>
<header></header>
<div class="gallery">
<!-- <img id="testimg" src="" >-->
</div>
<div class="glightbox-desc custom-desc1">
<div class="btn-primary btn copy-to-clipboard" onclick="copyToClipboard(event);">Copy to Clipboard</div>
</div>
<footer></footer>
</div>
<!--<div id="settings" class="modal" tabindex="-1" role="dialog">-->
<!-- <div class="modal-dialog modal-dialog-centered" role="document">-->
<!-- <div class="modal-content">-->
<!-- <div class="modal-header">-->
<!-- <h5 class="modal-title">Modal title</h5>-->
<!-- <button type="button" class="close" data-dismiss="modal" aria-label="Close">-->
<!-- <span aria-hidden="true">×</span>-->
<!-- </button>-->
<!-- </div>-->
<!-- <div class="modal-body">-->
<!-- <p>Modal body text goes here.</p>-->
<!-- </div>-->
<!-- <div class="modal-footer">-->
<!-- <button type="button" class="btn btn-primary">Save changes</button>-->
<!-- <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>-->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<!--</div>-->
<div id="settings" class="fade modal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Settings</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="input-group mb-3">
<span class="input-group-text">CSE Id:</span>
<input type="text" class="form-control" name="cse_clientid" id="cse_clientid" placeholder="Enter your CSE Client Id">
</div>
<div class="input-group mb-3">
<span class="input-group-text">CSE Key:</span>
<input type="text" class="form-control" name="cse_key" id="cse_key" placeholder="Enter your CSE Google Key">
</div>
<div class="input-group mb-3">
<span class="input-group-text">Banned Domains: (One per line)</span>
<textarea class="form-control" name="banned_domains" id="banned_domains" rows="3" placeholder="e.g. shutterstock.com" ></textarea>
</div>
<div class="input-group mb-3 ">
<div class="col-2">
<span class="input-group-text fill">Color</span>
</div>
<div class="col-8"></div>
<div class="col-2">
<input class="form-control fill" type="color" value="#563d7c" id="settings_color">
</div>
</div>
<div class="input-group mb-3">
<div class="col-2">
<span class="input-group-text">No AI:</span>
</div>
<div class="col-8"></div>
<div class="col-2">
<input type="checkbox" class="form-check-input" id="no_ai">
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button id="save-settings" type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
<!-- You can also require other files to run in this process -->
<script src="./renderer.js"></script>
</body>
</html>