mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-11-03 18:43:04 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			276 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			276 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import htmx from "htmx.org";
 | 
						|
 | 
						|
document.body.addEventListener("htmx:beforeRequest", (event) => {
 | 
						|
  event.target.ariaBusy = true;
 | 
						|
});
 | 
						|
 | 
						|
document.body.addEventListener("htmx:afterRequest", (event) => {
 | 
						|
  event.originalTarget.ariaBusy = null;
 | 
						|
});
 | 
						|
 | 
						|
Object.assign(window, { htmx });
 |