mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Fixed newly created issue of timestamps of chat
This commit is contained in:
		@@ -58,6 +58,10 @@ var Chat = {
 | 
				
			|||||||
                add = "chatchannel";
 | 
					                add = "chatchannel";
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            for(var x = 0; x < Chat.chat_help.length; x++) {
 | 
					            for(var x = 0; x < Chat.chat_help.length; x++) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                var _time = new Date();
 | 
				
			||||||
 | 
					                var time = Helper.pad(_time.getHours()) + ":" + Helper.pad(_time.getMinutes());
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                document.querySelector("#" + add).insertAdjacentHTML("beforeend", "<li title='Zoff''><span class='time_color'>" + time + "</span> <img class='chat-icon' src='https://zoff.me/assets/images/favicon-32x32.png' alt='System'><span style='color:orange;'>System</span>: </li>");
 | 
					                document.querySelector("#" + add).insertAdjacentHTML("beforeend", "<li title='Zoff''><span class='time_color'>" + time + "</span> <img class='chat-icon' src='https://zoff.me/assets/images/favicon-32x32.png' alt='System'><span style='color:orange;'>System</span>: </li>");
 | 
				
			||||||
                var in_text = document.createTextNode(Chat.chat_help[x]);
 | 
					                var in_text = document.createTextNode(Chat.chat_help[x]);
 | 
				
			||||||
                document.querySelector("#" + add).children[document.querySelector("#" + add).children.length - 1].appendChild(in_text);
 | 
					                document.querySelector("#" + add).children[document.querySelector("#" + add).children.length - 1].appendChild(in_text);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user