|  |  | @@ -646,6 +646,36 @@ function clickPopup(text, type, location) { | 
		
	
		
			
			|  |  |  | }, 2000); | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | function doNews() { | 
		
	
		
			
			|  |  |  | let news = [ | 
		
	
		
			
			|  |  |  | "This is news", | 
		
	
		
			
			|  |  |  | "This is also news", | 
		
	
		
			
			|  |  |  | "SPORTS!" | 
		
	
		
			
			|  |  |  | ]; | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | const choice = Math.floor(Math.random() * news.length); | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | showNews(news[choice]); | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | setTimeout(() => { | 
		
	
		
			
			|  |  |  | doNews(); | 
		
	
		
			
			|  |  |  | }, 30000); | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | function showNews(text) { | 
		
	
		
			
			|  |  |  | const div = document.createElement("div"); | 
		
	
		
			
			|  |  |  | div.textContent = text; | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | div.classList.add("news-text"); | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | const body = document.querySelector("body"); | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | body.appendChild(div); | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | setTimeout(() => { | 
		
	
		
			
			|  |  |  | body.removeChild(div); | 
		
	
		
			
			|  |  |  | }, 10000); | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | function fillTooltip(type, field, content) { | 
		
	
		
			
			|  |  |  | let item = document.querySelector("#" + type + "-tooltip-" + field); | 
		
	
		
			
			|  |  |  | if (typeof(content) === "string") { | 
		
	
	
		
			
				|  |  | @@ -745,6 +775,8 @@ window.onload = function() { | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | lastTime = performance.now(); | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | doNews(); | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | setTimeout(updateDisplay, 1000/updateRate); | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | setTimeout(autosave, 60000); | 
		
	
	
		
			
				|  |  | 
 |