Restyled by clang-format
This commit is contained in:
parent
3787b539f8
commit
23dff498c8
3 changed files with 97 additions and 93 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
// Define an array of strings
|
// Define an array of strings
|
||||||
const neverSaid = [
|
const neverSaid =
|
||||||
|
[
|
||||||
"<strong>ASM:</strong> The Director liked all the props we got today.",
|
"<strong>ASM:</strong> The Director liked all the props we got today.",
|
||||||
"<strong>PM:</strong> Ah ha, a revolve. Terrific.",
|
"<strong>PM:</strong> Ah ha, a revolve. Terrific.",
|
||||||
"<strong>Chippie:</strong> I don't know, let's look at the ground plan.",
|
"<strong>Chippie:</strong> I don't know, let's look at the ground plan.",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
// Define an array of strings
|
// Define an array of strings
|
||||||
const neverSaid = [
|
const neverSaid =
|
||||||
|
[
|
||||||
"<td style=\"width: 105px\"><strong>ASM:</strong></td> <td>The Director liked all the props we got today.</td>",
|
"<td style=\"width: 105px\"><strong>ASM:</strong></td> <td>The Director liked all the props we got today.</td>",
|
||||||
"<td style=\"width: 105px\"><strong>PM:</strong></td> <td>Ah ha, a revolve. Terrific.</td>",
|
"<td style=\"width: 105px\"><strong>PM:</strong></td> <td>Ah ha, a revolve. Terrific.</td>",
|
||||||
"<td style=\"width: 105px\"><strong>Chippie:</strong></td> <td>I don't know, let's look at the ground plan.</td>",
|
"<td style=\"width: 105px\"><strong>Chippie:</strong></td> <td>I don't know, let's look at the ground plan.</td>",
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,8 @@ function setCookie(cname, cvalue, exdays) {
|
||||||
const d = new Date();
|
const d = new Date();
|
||||||
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
|
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
|
||||||
let expires = "expires=" + d.toUTCString();
|
let expires = "expires=" + d.toUTCString();
|
||||||
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/;SameSite=Strict;Domain=.diskfloppy.me";
|
document.cookie = cname + "=" + cvalue + ";" + expires +
|
||||||
|
";path=/;SameSite=Strict;Domain=.diskfloppy.me";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -48,7 +49,8 @@ function cookieExists(cname) {
|
||||||
*/
|
*/
|
||||||
function swapScheme(scheme) {
|
function swapScheme(scheme) {
|
||||||
setCookie("colorscheme", scheme, 90);
|
setCookie("colorscheme", scheme, 90);
|
||||||
document.getElementById("css-colorscheme").href = `/css/colorschemes/${scheme}.css`;
|
document.getElementById("css-colorscheme").href =
|
||||||
|
`/css/colorschemes/${scheme}.css`;
|
||||||
console.log(`Set colorscheme to ${getCookie("colorscheme")}`)
|
console.log(`Set colorscheme to ${getCookie("colorscheme")}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue