]> Lady’s Gitweb - Langdev/blob - data/qjt/srcs/x-XX-jt/files/global.js
Initial commit with docs/srcs for early langs
[Langdev] / data / qjt / srcs / x-XX-jt / files / global.js
1 // SPDX-FileCopyrightText: Lady <https://www.ladys.computer/about/#lady>
2 // SPDX-License-Identifier: CC0-1.0
3 /* Quote-thingies */
4 var hTwo = ["Official Dictionary!", "It's Awesome!", "I ♥ Firefox!", "v. 8.2b", "De-1337", "Not 'to be'!", "I'm sorry...", "My word!", "(un)Censored!", "Diacritical!", "Unicode!", "&lt;h2&gt;", "Constantly growing!", "Now organic!", "Derive this!", "y'", "Something different!", "Thank you!", "Math.random()", "'Single quotes'!", "Not my fault!", "Safe!", "Refreshing!", "What's this?", "Jästugā is evolving!", "ECHO!", "...echo...", "Look inside!", "Learn it!", "Synergy!", "Not parasitic!", "Symbiotic!", "Non-toxic!", "Fancy!", "Ezh!", "-moz-animate", "Hid", "den", "Mess", "age!", "With taste!", "Sounds good!", "Emotional!", "Life!", "Abstract!", "Not moldy!", "It's time!", "Count me in!", "You animal!", "Vegetable!", "FOOD!", "A tool!", "Pretty!", "Musical!", "Building!", "A work of art!", "Yes!", "Modified!", "Odo!", "Action!", "β!"];
5
6 /* Stylesheet Selection */
7 var now = new Date();
8 var cssList = [document.getElementById("day"), document.getElementById("night"), document.getElementById("clover"), document.getElementById("oe")]
9 function cssSwitcher(n) {
10 for (i=0; i < cssList.length; i++) {
11 if (i === n) cssList[i].disabled = false;
12 else cssList[i].disabled = true;
13 }
14 }
15 if (now.getHours() < 8 || now.getHours() >= 20) {
16 cssSwitcher(1);
17 hTwo.push("It's nighttime!", "Ooh, Vampires!", "You're up late!");
18 }
19 else if (now.getHours() === 12) {
20 cssSwitcher(3);
21 hTwo = ["Greetings!", "Good afternoon!", "Time for luncheon!", "Would you like some tea?"];
22 }
23 else if (now.getMonth() === 2) {
24 if (now.getDate() === 17) {
25 cssSwitcher(2);
26 hTwo = ["Happy St. Patrick's Day!"];
27 }
28 }
29 else if (now.getMonth() === 5) {
30 if (now.getDate() === 8) hTwo = ["Good Day!"];
31 }
This page took 0.047955 seconds and 5 git commands to generate.