kontakt: [email protected]
Widżet:Orgonity: Różnice pomiędzy wersjami
Przejdź do nawigacji
Przejdź do wyszukiwania
imported>Sługa szatana mNie podano opisu zmian |
imported>Sługa szatana mNie podano opisu zmian |
||
(Nie pokazano 9 pośrednich wersji utworzonych przez tego samego użytkownika) | |||
Linia 6: | Linia 6: | ||
let plural = (value, a, b, c) => { | let plural = (value, a, b, c) => { | ||
return | return {"one": a, "other": b, "few": b, "many": c || b}[new Intl.PluralRules("en-us").select(value)]; | ||
} | } | ||
Linia 44: | Linia 44: | ||
a.setSeconds(0); | a.setSeconds(0); | ||
a.setMilliseconds(0); | a.setMilliseconds(0); | ||
let b = new Date(); | |||
// zajebane ze stackoverflow | // zajebane ze stackoverflow | ||
a.setDate(a.getDate() + ( | a.setDate(a.getDate() + (12 - b.getDay()) % 7 + 1); | ||
let r = interval(Math.abs(b - a)); | let r = interval(Math.abs(b - a)); | ||
let formatted = format(r); | let formatted = format(r); | ||
Linia 57: | Linia 57: | ||
} | } | ||
let jupi = el => { | let jupi = el => { | ||
el.classList.add("pulse"); | |||
el.style.color = "green"; | el.style.color = "green"; | ||
el.style.fontSize = "1.25em"; | el.style.fontSize = "1.25em"; | ||
Linia 70: | Linia 71: | ||
console.debug(timer); | console.debug(timer); | ||
} | } | ||
</script></includeonly> | </script><style>.pulse { | ||
animation-name: pulse; | |||
animation-iteration-count: infinite; | |||
animation-duration: 1s; | |||
} | |||
@keyframes pulse { | |||
0% { | |||
opacity: 1; | |||
} | |||
50% { | |||
opacity: 0; | |||
} | |||
100% { | |||
opacity: 1; | |||
} | |||
} | |||
</style></includeonly> |