mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:02:44 +00:00 
			
		
		
		
	 4912b22e3b
			
		
	
	
		4912b22e3b
		
	
	
	
	
		
			
			This allows us to print messages in inline scripts. Also add an example of this in the welcome page to test this.
		
			
				
	
	
		
			6 lines
		
	
	
	
		
			254 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
	
		
			254 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| document.addEventListener("DOMContentLoaded", function () {
 | |
|     console.log(
 | |
|         "Hello from DOMContentLoaded! There should be a message before this from an inline script"
 | |
|     );
 | |
|     document.getElementById("ua").innerHTML = navigator.userAgent;
 | |
| });
 |