1
0

Testing something

This commit is contained in:
devenblake 2020-12-20 19:29:32 -05:00
parent f7d559b8e8
commit c57b292374
2 changed files with 2 additions and 27 deletions

View File

@ -9,7 +9,8 @@
</HEAD> </HEAD>
<BODY> <BODY>
<P><A href="/">~ Return to the rest of the site</A></P> <P><A href="/">~ Return to the rest of the site</A></P>
<SCRIPT src="theme.js"></SCRIPT> <SCRIPT SRC="/sheets.js" TYPE="application/javascript"></SCRIPT>
<SCRIPT TYPE="application/javascript">window.onload = window.initializesheets;</SCRIPT>
<H1>frequently asked questions</H1> <H1>frequently asked questions</H1>
<H3>updated 2020-12-13</H3> <H3>updated 2020-12-13</H3>
<HR size="1" width="25%" align="left" /> <HR size="1" width="25%" align="left" />

View File

@ -1,26 +0,0 @@
/*
these code snippets stolen from
https://www.w3schools.com/js/js_cookies.asp
*/
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = "expires="+ d.toUTCString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}
function getCookie(cname) {
var name = cname + "=";
var decodedCookie = decodeURIComponent(document.cookie);
var ca = decodedCookie.split(';');
for(var i = 0; i <ca.length; i++) {
var c = ca[i];
while(c.charAt(0) == ' ') c = c.substring(1);
if(c.indexOf(name) == 0) return c.substring(name.length, c.length);
}
return "";
}
/* end stolen code; */
var sheet = getCookie('sheet');
if(sheet != '') document.getElementById('styling').setAttribute('href', sheet);