-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsettings.html
46 lines (41 loc) · 2.38 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
---
title: Settings
---
<style scoped type="text/css">
td i.fas { display: block; font-size: 43px; }
td { text-align: center; }
table { font-family: system-ui, sans; }
</style>
<script>
window.dataLayer = window.dataLayer || [];
if (typeof gtag == 'undefined') function gtag(){dataLayer.push(arguments);}
</script>
<h3>Usage Statistics</h3>
<p>This site uses Google Analytics to get anonymous usage data which we use to improve the site and to feel good about what we've built. It means a lot to us that you come here and we love to see you here.</p>
<p id="js-off">But you have Javascript disabled, so we cannot track your usage.</p>
<div id="incog" style="display: none;">
<h4>Incognito Mode</h4>
<p>If, for whatever reason, you would like <strong>to specifically opt-in/out of our tracking</strong>, please do so here:</p>
<table><tbody><tr>
<td style="display: none;" id="incog-off"><i class="fas fa-user-tie"></i> Currently, you are dressed in business casual and your usage of the site is anonymously visible to us. Hello!</td>
<td style="display: none;" id="incog-on"><i class="fas fa-user-secret"></i> You are now <span style="font-family: monospace;">Incognito</span>. Your use of this website is <span style="font-family: cursive;">invisible</span> to us.</td>
<td><button class="btn btn-danger" id="incog-toggle" onclick="if(localStorage.getItem('doNotTrack')=='1'){localStorage.removeItem('doNotTrack');localStorage.setItem('TRACK', 1);gtag('event','tracking_opt_in',{});}else{localStorage.removeItem('TRACK');localStorage.setItem('doNotTrack', 1);gtag('event','tracking_opt_out',{});}location.reload();">Go Incognito...</button></td>
</tr></tbody></table>
</div>
<script>
document.getElementById("js-off").style = "display: none;";
document.getElementById('incog').style = "";
if (localStorage.getItem('TRACK') == "1") {
document.getElementById('incog-off').style="";
} else {
if (localStorage.getItem('doNotTrack') == "1") {
document.getElementById('incog-toggle').innerHTML = "Opt Back In";
document.getElementById('incog-on').style="";
} else {
if (window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1") {
document.getElementById('incog-toggle').innerHTML = "Opt In To Tracking";
document.getElementById('incog-on').style="";
} else {
document.getElementById('incog-off').style="";
}}}
</script>