-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.html
186 lines (182 loc) · 5.58 KB
/
footer.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
<script>
(function() {
return;
var isDev = location.pathname.indexOf('/dev') == 0 || location.search.match(/[?&]debug=1/);
// console.log('%cSTOP', 'font-size: 128px; color: red;');
// console.log('%cIf someone told you to copy/paste something here you have an 11/10 chance you\'re being scammed.', 'font-size: 16px;');
// console.log('%cUnless you understand exactly what you are doing, close this window and stay safe.', 'font-size: 16px;');
if (isDev) return;
window.console.log = function(){};
})();
</script>
<style>
#copyright {
text-align: center;
font-size: 0.8em;
background: #18191C;
color: #AAA;
margin: 0 -10px;
}
#copyright a:link, #tenKAlert a:link, #copyright a:visited, #tenKAlert a:visited {
color: #00b0f4;
}
#cookieAlert {
position: fixed;
bottom: 1em;
right: 1em;
width: auto;
color: black;
border: 4px solid red;
border-radius: 1em;
padding: 1em;
background: white;
z-index: 1000;
box-shadow: 0 0 15px black;
}
#cookieAlert button {
background: white;
color: black;
border: 2px solid blue;
border-radius: 1em;
font-size: 1.1em;
cursor: pointer;
}
/* #tenKAlert {
position: fixed;
bottom: 1em;
left: 1em;
margin-right: 1em;
width: auto;
z-index: 999;
background: black;
color: white;
border: 2px solid white;
border-radius: 1em;
padding: 1em;
box-shadow: 0 0 15px black;
text-align: left;
}
#tenKAlert button {
background: transparent;
float: right;
text-decoration: underline;
color: white;
cursor: pointer;
border: 0;
} */
@media screen and (max-width: 550px) {
#cookieAlert {
right: 0;
bottom: 0;
}
}
</style>
<footer id="copyright">
<small>Website Contact: <a href="mailto:web@spikeybot.com">web@spikeybot.com</a>.</small>
<br>
<!-- <small>© Copyright 2019-2020, Campbell Crowley. <a href="https://docs.google.com/document/d/1SAC2aPxxeNqRjlZzjwrnCyyWWyt09ZP-AP7BDBjjQDg/edit?usp=sharing">Privacy Policy</a></small> -->
<small>© Copyright 2019-2023, Campbell Crowley. <a href="https://www.spikeybot.com/privacy-policy.html">Privacy Policy</a></small>
</footer>
<!-- <div id="tenKAlert">
<h3>See the 10k celebration winner's submission!</h3>
<p>It includes fan art, memes, custom rules, NPCs, and even a fanfic or two!</p>
<a href="https://www.spikeybot.com/10k/">SpikeyBot.com/10k</a>
<button onclick="tenKClose()">close</button>
<script>
window.tenKClose = function() {
setCookie('tenKClose2', true, Date.now() + 7 * 24 * 60 * 60 * 1000);
document.getElementById('tenKAlert').remove();
};
if (getCookie('tenKClose2') == 'true') tenKClose();
/**
* Sets a browser cookie.
* @private
* @param {string} name The name of the cookie.
* @param {string} value The value of the cookie.
* @param {string|number} expiresAt Date value to pass into `Date`.
* @param {string} [path=/] Path value of the cookie.
*/
function setCookie(name, value, expiresAt, path = '/') {
if (expiresAt) {
let d = new Date(expiresAt);
let expires = 'expires=' + d.toUTCString();
document.cookie =
name + '=' + value + ';' + expires + ';path=' + path + ';secure';
} else {
document.cookie = name + '=' + value + ';path=' + path + ';secure';
}
}
/**
* Fetches the value of a cookie.
* @private
* @param {string} name The name of the cookie to fetch the value of.
* @return {string} The cookie value.
*/
function getCookie(name) {
name += '=';
let decodedCookie = decodeURIComponent(document.cookie);
let ca = decodedCookie.split(';');
for (let i = 0; i < ca.length; i++) {
let c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return '';
}
</script>
</div> -->
<div id="cookieAlert">
<p>We use cookies.</p>
<button onclick="cookieAgree()">I Understand</button>
<a target="__blank" style="font-size: 0.9em" href="https://www.cookiesandyou.com/">More Info</a>
<script>
window.cookieAgree = function() {
setCookie('cookieAgree', true, Date.now() + 365 * 24 * 60 * 60 * 1000);
document.getElementById('cookieAlert').remove();
};
if (getCookie('cookieAgree') == 'true') cookieAgree();
/**
* Sets a browser cookie.
* @private
* @param {string} name The name of the cookie.
* @param {string} value The value of the cookie.
* @param {string|number} expiresAt Date value to pass into `Date`.
* @param {string} [path=/] Path value of the cookie.
*/
function setCookie(name, value, expiresAt, path = '/') {
if (expiresAt) {
let d = new Date(expiresAt);
let expires = 'expires=' + d.toUTCString();
document.cookie =
name + '=' + value + ';' + expires + ';path=' + path + ';secure';
} else {
document.cookie = name + '=' + value + ';path=' + path + ';secure';
}
}
/**
* Fetches the value of a cookie.
* @private
* @param {string} name The name of the cookie to fetch the value of.
* @return {string} The cookie value.
*/
function getCookie(name) {
name += '=';
let decodedCookie = decodeURIComponent(document.cookie);
let ca = decodedCookie.split(';');
for (let i = 0; i < ca.length; i++) {
let c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return '';
}
</script>
</div>