Skip to content

Commit 8ea9c0a

Browse files
author
Julian Yaman
committed
fix: last visit, device type, resolution & orientation had no value
in MS Edge
1 parent c2156b4 commit 8ea9c0a

File tree

2 files changed

+39
-38
lines changed

2 files changed

+39
-38
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<body>
1414
<div class="container">
1515
<h1>Crooked Style Sheets <small>Website tracking/analytics without JS only with CSS</small></h1>
16-
1716
<hr>
17+
1818
<h2>Link tests</h2>
1919

2020
<a href="http://google.de" id="link1" target="_blank">Link 1</a>

screen.css

Lines changed: 38 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99

1010
/** Tracking rules **/
11-
#type {
11+
#type::after {
1212
content: url("track.php?action=screen_start");
1313
}
1414

@@ -62,6 +62,7 @@
6262
#duration:hover::after {
6363
-moz-animation: pulsate 5s infinite;
6464
-webkit-animation: pulsate 5s infinite;
65+
animation: pulsate 5s infinite;
6566
/*animation: pulsate 5s infinite;*/
6667
animation-name: pulsate;
6768
animation-duration: 10s;
@@ -129,195 +130,195 @@
129130
/** Orientation detection **/
130131

131132
@media (orientation: portrait) {
132-
#orientation {
133+
#orientation::after {
133134
content: url("track.php?orientation=portrait");
134135
}
135136
}
136137

137138
@media (orientation: landscape) {
138-
#orientation {
139+
#orientation::after {
139140
content: url("track.php?orientation=landscape");
140141
}
141142
}
142143

143144
/* Width part of the Resolution */
144145

145146
@media (min-device-width: 240px) {
146-
#width {
147+
#width::after {
147148
content: url("track.php?width=360");
148149
}
149150
}
150151

151152

152153
@media (min-device-width: 360px) {
153-
#width {
154+
#width::after {
154155
content: url("track.php?width=360");
155156
}
156157
}
157158

158159
@media (min-device-width: 480px) {
159-
#width {
160+
#width::after {
160161
content: url("track.php?width=480");
161162
}
162163
}
163164

164165
@media (min-device-width: 640px) {
165-
#width {
166+
#width::after {
166167
content: url("track.php?width=640");
167168
}
168169
}
169170

170171
@media (min-device-width: 720px) {
171-
#width {
172+
#width::after {
172173
content: url("track.php?width=720");
173174
}
174175
}
175176

176177
@media (min-device-width: 1024px) {
177-
#width {
178+
#width::after {
178179
content: url("track.php?width=1024");
179180
}
180181
}
181182

182183
@media (min-device-width: 1280px) {
183-
#width {
184+
#width::after {
184185
content: url("track.php?width=1280");
185186
}
186187
}
187188

188189
@media (min-device-width: 1366px) {
189-
#width {
190+
#width::after {
190191
content: url("track.php?width=1366");
191192
}
192193
}
193194

194195
@media (min-device-width: 1920px) {
195-
#width {
196+
#width::after {
196197
content: url("track.php?width=1920");
197198
}
198199
}
199200

200201
@media (min-device-width: 3840px) {
201-
#width {
202+
#width::after {
202203
content: url("track.php?width=3840");
203204
}
204205
}
205206

206207
@media (min-device-width: 4096px) {
207-
#width {
208+
#width::after {
208209
content: url("track.php?width=4096");
209210
}
210211
}
211212

212213
/* Height part of the resolution */
213214

214215
@media (min-device-height: 240px) {
215-
#height {
216+
#height::after {
216217
content: url("track.php?height=240");
217218
}
218219
}
219220

220221

221222
@media (min-device-height: 320px) {
222-
#height {
223+
#height::after {
223224
content: url("track.php?height=320");
224225
}
225226
}
226227

227228
@media (min-device-height: 360px) {
228-
#height {
229+
#height::after {
229230
content: url("track.php?height=360");
230231
}
231232
}
232233

233234
@media (min-device-height: 480px) {
234-
#height {
235+
#height::after {
235236
content: url("track.php?height=480");
236237
}
237238
}
238239

239240
@media (min-device-height: 504px) {
240-
#height {
241+
#height::after {
241242
content: url("track.php?height=504");
242243
}
243244
}
244245

245246
@media (min-device-height: 540px) {
246-
#height {
247+
#height::after {
247248
content: url("track.php?height=540");
248249
}
249250
}
250251

251252
@media (min-device-height: 568px) {
252-
#height {
253+
#height::after {
253254
content: url("track.php?height=568");
254255
}
255256
}
256257

257258
@media (min-device-height: 576px) {
258-
#height {
259+
#height::after {
259260
content: url("track.php?height=576");
260261
}
261262
}
262263

263264
@media (min-device-height: 600px) {
264-
#height {
265+
#height::after {
265266
content: url("track.php?height=600");
266267
}
267268
}
268269

269270
@media (min-device-height: 640px) {
270-
#height {
271+
#height::after {
271272
content: url("track.php?height=640");
272273
}
273274
}
274275

275276
@media (min-device-height: 667px) {
276-
#height {
277+
#height::after {
277278
content: url("track.php?height=667");
278279
}
279280
}
280281

281282
@media (min-device-height: 690px) {
282-
#height {
283+
#height::after {
283284
content: url("track.php?height=690");
284285
}
285286
}
286287

287288
@media (min-device-height: 720px) {
288-
#height {
289+
#height::after {
289290
content: url("track.php?height=720");
290291
}
291292
}
292293

293294
@media (min-device-height: 768px) {
294-
#height{
295+
#height::after {
295296
content: url("track.php?height=768");
296297
}
297298
}
298299

299300
@media (min-device-height: 1024px) {
300-
#height {
301+
#height::after {
301302
content: url("track.php?height=1024");
302303
}
303304
}
304305

305306
@media (min-device-height: 1080px) {
306-
#height {
307+
#height::after {
307308
content: url("track.php?height=1080");
308309
}
309310
}
310311

311-
@media (min-device-height: 2160px) {
312-
#height {
313-
content: url("track.php?height=2160");
312+
@media (min-device-height: 1366px) {
313+
#height::after {
314+
content: url("track.php?height=1366");
314315
}
315316
}
316317

317-
318-
@media (min-device-height: 1366px) {
319-
#height {
320-
content: url("track.php?height=1366");
318+
@media (min-device-height: 2160px) {
319+
#height::after {
320+
content: url("track.php?height=2160");
321321
}
322322
}
323323

324+

0 commit comments

Comments
 (0)