mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
Fix small issue with maintance page and lightbar
This commit is contained in:
parent
c6615fcd96
commit
fd00b65276
2 changed files with 10 additions and 10 deletions
|
@ -182,8 +182,8 @@
|
||||||
"title": "Couldn't find that page"
|
"title": "Couldn't find that page"
|
||||||
},
|
},
|
||||||
"downtimeNotice": {
|
"downtimeNotice": {
|
||||||
"goHome": "Go home!",
|
"goHome": "Go home",
|
||||||
"message": "sudo-flix.lol is dedicated to providing its users with the most up-to-date and stable experience in order to do this we must switch hosting providers. Expect downtime between the below times.",
|
"message": "sudo-flix.lol is dedicated to providing its users with the most up-to-date and stable experience. In order to do this, we must switch hosting providers. Expect downtime between the following times.",
|
||||||
"timeFrame": "<bold>12:00 AM - 1:00 AM</bold>",
|
"timeFrame": "<bold>12:00 AM - 1:00 AM</bold>",
|
||||||
"title": "Maintenance expected"
|
"title": "Maintenance expected"
|
||||||
},
|
},
|
||||||
|
|
|
@ -154,7 +154,7 @@ function ParticlesCanvas() {
|
||||||
const day = date.getDate();
|
const day = date.getDate();
|
||||||
if (
|
if (
|
||||||
(month === 11 && day >= 24 && day <= 26) ||
|
(month === 11 && day >= 24 && day <= 26) ||
|
||||||
Math.random() < 0.091 // 9.1%
|
Math.random() < 0.051 // 5.1%
|
||||||
) {
|
) {
|
||||||
imageOverride = [
|
imageOverride = [
|
||||||
{
|
{
|
||||||
|
@ -174,7 +174,7 @@ function ParticlesCanvas() {
|
||||||
const day2 = date.getDate();
|
const day2 = date.getDate();
|
||||||
if (
|
if (
|
||||||
(month2 === 9 && day2 >= 29 && day2 <= 31) ||
|
(month2 === 9 && day2 >= 29 && day2 <= 31) ||
|
||||||
Math.random() < 0.09 // 9%
|
Math.random() < 0.05 // 5%
|
||||||
) {
|
) {
|
||||||
imageOverride = [
|
imageOverride = [
|
||||||
{
|
{
|
||||||
|
@ -190,7 +190,7 @@ function ParticlesCanvas() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fish easter egg
|
// Fish easter egg
|
||||||
const shouldShowFishie = Math.random() < 0.4; // 40%
|
const shouldShowFishie = Math.random() < 0.1; // 10%
|
||||||
if (shouldShowFishie) {
|
if (shouldShowFishie) {
|
||||||
imageOverride = [
|
imageOverride = [
|
||||||
{
|
{
|
||||||
|
@ -208,7 +208,7 @@ function ParticlesCanvas() {
|
||||||
// Weed easter egg
|
// Weed easter egg
|
||||||
const month3 = date.getMonth() + 1;
|
const month3 = date.getMonth() + 1;
|
||||||
const day3 = date.getDate();
|
const day3 = date.getDate();
|
||||||
const shouldShowZa = (month3 === 4 && day3 === 20) || Math.random() < 0.35; // 35%
|
const shouldShowZa = (month3 === 4 && day3 === 20) || Math.random() < 0.25; // 25%
|
||||||
if (shouldShowZa) {
|
if (shouldShowZa) {
|
||||||
imageOverride = [
|
imageOverride = [
|
||||||
{
|
{
|
||||||
|
@ -220,7 +220,7 @@ function ParticlesCanvas() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Kitty easter egg
|
// Kitty easter egg
|
||||||
const shouldShowCat = Math.random() < 0.25; // 25%
|
const shouldShowCat = Math.random() < 0.2; // 20%
|
||||||
if (shouldShowCat) {
|
if (shouldShowCat) {
|
||||||
imageOverride = [
|
imageOverride = [
|
||||||
{
|
{
|
||||||
|
@ -232,7 +232,7 @@ function ParticlesCanvas() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Movie & popcorn easter egg
|
// Movie & popcorn easter egg
|
||||||
const shouldShowParaphernalia = Math.random() < 0.2; // 20%
|
const shouldShowParaphernalia = Math.random() < 0.3; // 30%
|
||||||
if (shouldShowParaphernalia) {
|
if (shouldShowParaphernalia) {
|
||||||
imageOverride = [
|
imageOverride = [
|
||||||
{
|
{
|
||||||
|
@ -248,7 +248,7 @@ function ParticlesCanvas() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Chicken easter egg
|
// Chicken easter egg
|
||||||
const shouldShow4thDecor = Math.random() < 0.1; // 10%
|
const shouldShow4thDecor = Math.random() < 0.06; // 6%
|
||||||
if (shouldShow4thDecor) {
|
if (shouldShow4thDecor) {
|
||||||
imageOverride = [
|
imageOverride = [
|
||||||
{
|
{
|
||||||
|
@ -268,7 +268,7 @@ function ParticlesCanvas() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dev easter egg
|
// Dev easter egg
|
||||||
const shouldShowCode = Math.random() < 0.05; // 5%
|
const shouldShowCode = Math.random() < 0.03; // 3%
|
||||||
if (shouldShowCode) {
|
if (shouldShowCode) {
|
||||||
imageOverride = [
|
imageOverride = [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue