From 64efe12e1277e37de0bf450a8aeade282a1d7a6f Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Mon, 16 Dec 2019 23:30:59 -0500 Subject: [PATCH] Center the news text and make it appear more randomly --- gorge.css | 8 ++++---- gorge.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gorge.css b/gorge.css index 700eb25..83edace 100644 --- a/gorge.css +++ b/gorge.css @@ -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; } } diff --git a/gorge.js b/gorge.js index 7163ea7..7ce8583 100644 --- a/gorge.js +++ b/gorge.js @@ -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) {