21 lines
		
	
	
		
			No EOL
		
	
	
		
			548 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			No EOL
		
	
	
		
			548 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const logInButton = document.getElementById('login-button');
 | |
| const logOutButton = document.getElementById('logout-button');
 | |
| const homeButton = document.getElementById('home-button');
 | |
| 
 | |
| if(logInButton) {
 | |
|     logInButton.addEventListener('click', () => {
 | |
|         window.location.href = "/auth/login";
 | |
|     });
 | |
| }
 | |
| 
 | |
| if(logOutButton) {
 | |
|     logOutButton.addEventListener('click', () => {
 | |
|         window.location.href = "/auth/logout";
 | |
|     });
 | |
| }
 | |
| 
 | |
| if(homeButton) {
 | |
|     homeButton.addEventListener('click', () => {
 | |
|         window.location.href = '/';
 | |
|     });
 | |
| } |