78 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			78 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html lang="en">
 | |
|     <head>
 | |
|         <meta charset="UTF-8" />
 | |
|         <title>Register - Temperature Alarm</title>
 | |
|         <meta name="viewport" content="width=device-width, initial-scale=1">
 | |
|         <link rel="stylesheet" href="/styles/auth.css">
 | |
|         <link rel="stylesheet" href="/styles/profile.css">
 | |
|         <script defer type="module" src="/scripts/profile.js"></script>
 | |
|     </head>
 | |
|     <body>
 | |
|         <div id="container">
 | |
|             <div class="topnav">
 | |
|                 <a href="/home/index.html">Home</a>
 | |
|                 <div style="display: flex; justify-content: flex-end;">
 | |
|                     <a href="/devices">Devices</a>
 | |
|                   <a class="active" href="/profile">Profile</a>
 | |
|                   <span class="logout-container">
 | |
|                     <img class="logout" src="/img/logout.png">
 | |
|                   </span>
 | |
|                 </div>
 | |
|               </div>
 | |
|               <div style="display: flex; justify-content: center;"> 
 | |
|                 <div class="profileContainer">
 | |
|                     <div id="profileCard"></div>
 | |
|                     <div class="btnContainer">
 | |
|                         <button class="btn" id="openEditModal">Edit</button>
 | |
|                         <button class="btn" id="openPasswordModal">Change Password</button>
 | |
|                     </div>
 | |
|                   </div>
 | |
|               </div>
 | |
|         </div>
 | |
| 
 | |
|         <div id="editModal" class="modal">
 | |
|             <div class="modal-content">
 | |
|                 <span class="close">×</span>
 | |
|                 <h2>Edit Username or Email</h2>
 | |
|                 <form id="editForm">
 | |
|                     <div class="form-container">
 | |
|                         <label for="email"><b>Email</b></label>
 | |
|                         <input type="email" placeholder="Enter email "id="email" required>
 | |
|          
 | |
|                         <label for="uname"><b>Username</b></label>
 | |
|                         <input type="text" placeholder="Enter username" id="uname" required>
 | |
|         
 | |
|                         <button id="submitEditBtn" type="submit">Save Changes</button>
 | |
|         
 | |
|                     </div>
 | |
|                 </form>
 | |
|             </div>
 | |
|         </div>
 | |
| 
 | |
|         <div id="PasswordModal" class="modal">
 | |
|             <div class="modal-content">
 | |
|                 <span class="close">×</span>
 | |
|                 <h2>Change Password</h2>
 | |
|                 <form id="PasswordForm">
 | |
|                     <div class="form-container">
 | |
|                         <label for="psw"><b>Old Password</b></label>
 | |
|                         <input type="password" placeholder="Enter your current password" id="oldpsw" required>
 | |
|     
 | |
|                         <label for="psw"><b>New Password</b></label>
 | |
|                         <input type="password" placeholder="Enter the new password" id="psw" required>
 | |
|         
 | |
|                         <label for="rpsw"><b>Repeat New Password</b></label>
 | |
|                         <input type="password" placeholder="Enter the new password again" id="rpsw" required>
 | |
|         
 | |
|                         <button type="submit">Change Password</button>
 | |
|         
 | |
|                         <div id="form-error"></div>
 | |
|                     </div>
 | |
|                 </form>
 | |
|             </div>
 | |
|         </div>
 | |
|     </body>
 | |
| </html>
 | |
| 
 |