-
Notifications
You must be signed in to change notification settings - Fork 0
/
brands.html
289 lines (262 loc) · 12.6 KB
/
brands.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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-119769091-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "UA-119769091-1");
</script>
<!-- Hotjar Tracking Code for https://cryptofonts.com/ -->
<script>
(function (h, o, t, j, a, r) {
h.hj =
h.hj ||
function () {
(h.hj.q = h.hj.q || []).push(arguments);
};
h._hjSettings = { hjid: 1835372, hjsv: 6 };
a = o.getElementsByTagName("head")[0];
r = o.createElement("script");
r.async = 1;
r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv;
a.appendChild(r);
})(window, document, "https://static.hotjar.com/c/hotjar-", ".js?sv=");
</script>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="A crisp collection of svg crypto brand icons and logos" />
<meta name="keywords" content="icons, brands, logos, crypto logo, vector icons, svg icons, free icons, icon font, webfont, desktop icons, svg, font awesome, font awesome free, font awesome pro" />
<meta name="author" content="Fabio Monzani" />
<meta name="theme-color" content="#f2f2f2" />
<meta property="og:site_name" content="Cryptofonts" />
<meta property="og:type" content="website" />
<meta property="og:image" content="http://www.cryptofonts.com/img/card.png" />
<meta property="og:url" content="https://cryptofonts.com" />
<meta property="og:title" content="Cryptofonts" />
<meta property="og:description" content="A crisp webfont icons and svg logos for your favourite cryptocurrencies. Featuring 974 icons." />
<title>CryptoFont - Cryptocurrency API icons and webfont</title>
<link rel="apple-touch-icon" sizes="180x180" href="favicons/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="favicons/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="favicons/favicon-16x16.png" />
<link rel="manifest" href="favicons/site.webmanifest" />
<link rel="mask-icon" href="favicons/safari-pinned-tab.svg" color="#5bbad5" />
<link rel="shortcut icon" href="favicons/favicon.ico" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="msapplication-config" content="favicons/browserconfig.xml" />
<meta name="theme-color" content="#ffffff" />
<!-- Facebook Open Graph -->
<meta property="og:site_name" content="CryptoFonts" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://www.cryptofonts.com/img/card.png" />
<meta property="og:url" content="https://www.cryptofonts.com/" />
<meta property="og:title" content="CryptoFonts" />
<meta property="og:description" content="We create beautiful and crisp cryptocurrency webfonts, icons and SVG " />
<!-- Twitter Card -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@CryptoFonts" />
<meta property="og:url" content="https://www.cryptofonts.com/" />
<meta property="og:title" content="CryptoFonts" />
<meta property="og:description" content="We create beautiful and crisp cryptocurrency webfonts, icons and SVG " />
<meta property="og:image" content="https://www.cryptofonts.com/img/card.png" />
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css?v=1.0" />
<!-- Custom CSS -->
<link rel="stylesheet" href="css/style.min.css?v=1.0" />
<!-- Inter font -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@500;600&display=swap" rel="stylesheet" />
</head>
<body>
<nav class="navbar navbar-expand-lg fixed-top">
<div class="container-fluid">
<a class="navbar-brand" href="index.html">
<img src="img/logo-squircle.svg" width="36" height="36" class="d-inline-block align-top mr-2" alt="" loading="lazy" />
<strong class="align-text-top">Cryptofonts</strong>
</a>
<button class="navbar-toggler border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link d-flex align-items-center" href="api.html">
<img class="me-2" src="img/icon-api.svg" width="24" height="24" alt="" />
API</a
>
</li>
<li class="nav-item">
<a class="nav-link d-flex align-items-center" href="icons.html">
<img class="me-2" src="img/icon-icons.svg" width="24" height="24" alt="" />
Icons</a
>
</li>
<li class="nav-item">
<a class="nav-link d-flex align-items-center" href="brands.html">
<img class="me-2" src="img/icon-brands.svg" width="24" height="24" alt="" />
Brand</a
>
</li>
<li class="nav-item">
<a class="nav-link d-flex align-items-center" href="font.html">
<img class="me-2" src="img/icon-webfont.svg" width="20" height="20" alt="" />
Webfont</a
>
</li>
</ul>
</div>
</div>
</nav>
<div class="section-header py-5">
<div class="container pt-5">
<h1>High Quality Cryptocurrencies Brand logos</h1>
<p class="lead" id="totalCount">An ever-growing set of SVG cryptocurrency brand logos.</p>
</div>
</div>
<div class="container input-search">
<div class="d-flex justify-content-end align-items-center position-relative">
<input type="text" id="searchName" onkeyup="searchName()" class="form-control form-control-lg" placeholder="Search icons..." autofocus autocomplete="off" />
<div class="position-absolute me-2 bg-body-secondary px-2 py-1 rounded text-muted">
<span>⌘</span>
<span>K</span>
</div>
</div>
</div>
<section>
<div class="container">
<div id="loading-spinner" class="d-flex justify-content-center mb-5">
<img src="./img/loading-spinner.svg" alt="" />
</div>
<div class="row" id="list"></div>
<div class="row">
<div class="col-12 text-center">
<p class="lead">Can't find what you were looking for?</p>
<a class="btn btn-primary" href="https://forms.gle/b3LQr8JeTJi7SRdQ6" target="_blank">Request a new icon</a>
</div>
</div>
</div>
</section>
<footer>
<div class="container">
<div class="row mb-5">
<div class="col-md-3 text-center mb-4">
<img class="opacity-50" src="img/logo.svg" height="60px" />
</div>
<div class="col-md-3 col-12 text-center text-md-start mb-4">
<ul class="footer-list p-0">
<li>Social</li>
<li><a href="https://twitter.com/cryptofonts?lang=en" target="_blank">Twitter</a></li>
<li><a href="https://t.me/cryptofonts" target="_blank">Telegram</a></li>
</ul>
</div>
<div class="col-md-3 col-12 text-center text-md-start mb-4">
<ul class="footer-list p-0">
<li>Legal</li>
<li><a href="license.html">License</a></li>
</ul>
</div>
<div class="col-md-3 col-12 text-center text-md-start mb-4">
<ul class="footer-list p-0">
<li>Developers</li>
<li><a href="https://docs.cryptofonts.com/" target="_blank">Documentation</a></li>
<li><a href="https://github.com/Cryptofonts" target="_blank">Github</a></li>
</ul>
</div>
</div>
<div class="row">
<div class="col text-center">
<p class="small opacity-50">Made by <a class="fabiomonzani" href="https://fabiomonzani.com" target="_blank">Fabio Monzani</a> and other people around the world</p>
</div>
</div>
<div class="row">
<div class="col text-center">
<p class="tiny opacity-50">All product and company names are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.</p>
</div>
</div>
</div>
</footer>
<!-- Detail Modal -->
<div class="modal fade" id="detailModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title text-capitalize" id="modalTitle"></h5>
<button type="button" class="btn" data-bs-dismiss="modal" aria-label="Close">
<img src="img/icon-close.svg" height="30" alt="icon close" />
</button>
</div>
<div class="modal-body text-center">
<img id="iconDetail" class="mb-5" src="" width="400" />
<a download="" id="iconDownload" href="" class="btn btn-primary">Download SVG</a>
</div>
</div>
</div>
</div>
<script src="vendors/bootstrap-5.3.1/js/bootstrap.bundle.min.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
// FETCHING DATA FROM JSON FILE
fetch("json/cryptologos.json")
.then((response) => response.json())
.then((data) => {
var icon = "";
// ITERATING THROUGH OBJECTS
data.forEach(function (value) {
// CONSTRUCTION OF ROWS HAVING
// DATA FROM JSON OBJECT
icon += '<div id="' + value.name + '" class="col-md-2 col-6 text-center expand mb-5" onclick="getDetails(this)">';
icon += '<img loading="lazy" src="img/brands/' + value.image + '" width="60" alt="' + value.name + '">';
icon += '<p class="text-muted text-capitalize mb-0">' + value.name + "</p>";
icon += "</div>";
});
// INSERTING ROWS INTO TABLE
document.getElementById("list").insertAdjacentHTML("beforeend", icon);
// Remove the loading spinner
document.getElementById("loading-spinner").setAttribute("style", "display: none !important");
});
});
function searchName() {
// Declare variables
var input, filter, ul, li, a, i;
input = document.getElementById("searchName");
filter = input.value.toLowerCase();
ul = document.getElementById("list");
li = ul.getElementsByTagName("div");
// Loop through all list items, and hide those who don't match the search query
for (i = 0; i < li.length; i++) {
a = li[i].getElementsByTagName("p")[0];
if (a.innerHTML.toLowerCase().indexOf(filter) > -1) {
li[i].style.display = "";
} else {
li[i].style.display = "none";
}
}
}
function getDetails(ticker) {
let logoname = ticker.id;
let newSrc = "img/brands/" + logoname + ".svg";
console.log(name);
const detailModal = new bootstrap.Modal(document.getElementById("detailModal"));
detailModal.show();
document.getElementById("modalTitle").innerHTML = '<img src="img/brands/' + logoname + '.svg" height="16"> ' + logoname;
document.getElementById("iconDetail").src = newSrc;
document.getElementById("iconDownload").setAttribute("href", newSrc);
document.getElementById("iconDownload").setAttribute("download", logoname);
}
const searchBar = document.getElementById("searchName");
document.addEventListener("keydown", (event) => {
if (event.metaKey && event.key === "k") {
// Check for CMD+K on Mac, or CTRL+K on Windows
event.preventDefault(); // Prevent the default behavior of the keypress (e.g., open a new tab)
searchBar.focus(); // Bring the input field into focus
}
});
</script>
</body>
</html>