Parcourir la source

Center the news text and make it appear more randomly

tags/v0.0.4
Fen Dweller il y a 5 ans
Parent
révision
64efe12e12
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: E80B35A6F11C3656
2 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. +4
    -4
      gorge.css
  2. +2
    -2
      gorge.js

+ 4
- 4
gorge.css Voir le fichier

@@ -511,19 +511,19 @@ div::-webkit-scrollbar-corner {

@keyframes news-text-frames {
0% {
transform: translate(0px, 0px);
transform: translate(-50%, 0px);
opacity: 0;
}
20% {
transform: translate(0px, -200px);
transform: translate(-50%, -100px);
opacity: 1;
}
80% {
transform: translate(0px, -200px);
transform: translate(-50%, -100px);
opacity: 1;
}
100% {
transform: translate(0px, 0px);
transform: translate(-50%, 0px);
opacity: 0;
}
}

+ 2
- 2
gorge.js Voir le fichier

@@ -642,7 +642,7 @@ function clickPopup(text, type, location) {
body.appendChild(div);

setTimeout(() => {
body.removeChild(div);
body.removeChild(div);choice
}, 2000);
}

@@ -659,7 +659,7 @@ function doNews() {

setTimeout(() => {
doNews();
}, 30000);
}, 15000 + Math.random() * 2500);
}

function showNews(text) {


Chargement…
Annuler
Enregistrer