-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
232 lines (205 loc) · 5.63 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<meta name="Description" content="Custom elements in the wild.">
<base href="/">
<link rel="manifest" href="./manifest.json" />
<link rel="icon" type="image/png" href="./images/icons/icon128.png" />
<meta property="og:title" content="Custom Elements in the wild">
<meta property="og:site_name" content="Custom Elements in the wild">
<meta property="og:url" content="wild.open-wc.org">
<meta property="og:description" content="Custom Elements in the wild lists sites that make use of custom elements. Sites are automatically and anonymously added by users browsing the web with the Custom Elements Locator browser extension.">
<meta property="og:type" content="website">
<meta property="og:image" content="https://raw.githubusercontent.com/open-wc/wild/master/screenshot.png">
<style>
html {
--col-dark: white;
--col-darker: #ededed;
--col-light: #efefef;
--col-active: blue;
--col-active-lighter: #8282ff;
--col-active-hover: rgba(0,0,255,0.1);
--text-color: black;
--text-color-inv: #ececec;
--switch-track: #73767d;
--switch-thumb: white;
--border-col: #d2d2d2;
--component-color: rgb(33, 127, 249);
--input-placeholder: #7d7d7d;
--input-text-color: black;
--input-bg: white;
--input-bg-hover: #f1f1f1;
--input-border: #d8d8d8;
}
html.dark {
--col-dark: #2f3136;
--col-darker: #26272b;
--col-light: #36393e;
--col-active: #41ffb0;
--col-active-lighter: #b4ffe0;
--col-active-hover: rgba(65,255,176,0.1);
--text-color: #ececec;
--text-color-inv: #ececec;
--switch-track: #a4a4a4;
--switch-thumb: white;
--border-col: rgb(77, 77, 77);
--component-color: rgb(175, 210, 255);
--input-placeholder: #c1c1c1;
--input-text-color: white;
--input-bg: #5a5c63;
--input-bg-hover: #6c6e75;
--input-border: #26272b;
}
*:focus {
outline: 0;
border-radius: 5px;
box-shadow: 0 0 0 2px var(--col-active)!important;
transition: box-shadow .1s ease-in-out;
}
html,
body {
margin: 0;
padding: 0;
font-family: sans-serif;
background-color: var(--col-light);
}
#dialog {
background-color: var(--col-light);
width: 450px;
height: 400px;
border-radius: 10px;
padding: 20px;
box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.75);
color: var(--text-color);
overflow: auto;
}
ul {
padding-left: 0;
list-style: none;
}
.changelog {
white-space: pre-wrap;
}
.button {
fill: var(--col-active);
background: transparent;
border: none;
display: block;
font-size: 16px;
/* line-height: 14px; */
color: var(--col-active);
position: relative;
border: solid 2px var(--col-active);
border-radius: 10px;
padding: 5px 10px 5px 10px;
}
.button:hover,
.button:active,
.button:focus {
background: var(--col-active-hover);
}
.dialog-buttons {
display: flex;
}
.dialog-buttons button:first-child {
margin-right: 10px;
}
.close {
margin-left: auto;
line-height: 14px;
padding: 5px 5px 5px 5px;
}
@media (max-width: 480px) {
#dialog {
width: calc(100vw - 40px);
height: 75vh;
}
}
.loading {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
flex-direction: column;
height: calc(100% - 60px);
}
.loading {
width: 40px;
height: 40px;
animation: rotate 2000ms linear infinite;
transform-origin: center center;
margin: auto;
}
.loading circle {
stroke-dasharray: 85, 200;
/* 0px is requires for edge 15 and lower */
stroke-dashoffset: 0px;
animation: dash 2000ms ease-in-out infinite;
stroke-linecap: round;
stroke-width: var(--spinner-stroke-width, 4px);
stroke-miterlimit: 10;
fill: none;
stroke: #828282;
}
@keyframes rotate {
100% {
transform: rotate(360deg);
}
}
@keyframes dash {
0% {
stroke-dasharray: 1, 200;
/* 0px is requires for edge 15 and lower */
stroke-dashoffset: 0px;
}
50% {
stroke-dasharray: 89, 200;
stroke-dashoffset: -35px;
}
100% {
stroke-dasharray: 89, 200;
stroke-dashoffset: -124px;
}
}
/* Animating SVG does not work on IE11. Use a fallback animation. */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
.loading svg {
animation-duration: 1500ms;
}
.loading circle {
stroke-linecap: square;
}
}
@media (prefers-reduced-motion: reduce) {
.loading svg {
animation-duration: 20000ms;
}
.loading circle {
animation: dash 20000ms ease-in-out infinite;
}
}
</style>
<title>Custom Elements in the wild</title>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-177073154-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-177073154-1');
</script>
</head>
<body>
<locator-list></locator-list>
<script type="module" src="./src/locator-list.js"></script>
<script>
let refreshing;
navigator.serviceWorker.addEventListener('controllerchange', () => {
if (refreshing) return;
window.location.reload();
refreshing = true;
});
</script>
</body>
</html>