Restyled by clang-format

This commit is contained in:
Restyled.io 2024-06-11 16:59:42 +00:00
parent 3787b539f8
commit 23dff498c8
3 changed files with 97 additions and 93 deletions

View file

@ -1,5 +1,6 @@
// Define an array of strings
const neverSaid = [
const neverSaid =
[
"<strong>ASM:</strong> The Director liked all the props we got today.",
"<strong>PM:</strong> Ah ha, a revolve. Terrific.",
"<strong>Chippie:</strong> I don't know, let's look at the ground plan.",

View file

@ -1,5 +1,6 @@
// 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>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>",

View file

@ -29,7 +29,8 @@ function setCookie(cname, cvalue, exdays) {
const d = new Date();
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
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) {
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")}`)
}