Mercurial Hosting > chat
comparison src/account.html.luan @ 61:d4d154b404f8
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 04 Mar 2025 21:29:17 -0700 |
parents | 3521166513b3 |
children | ad9772fc588a |
comparison
equal
deleted
inserted
replaced
60:3521166513b3 | 61:d4d154b404f8 |
---|---|
79 ajax(`save_notify.js?email=${encodeURIComponent(notifyEmail)}&multi=${multiNotify}`); | 79 ajax(`save_notify.js?email=${encodeURIComponent(notifyEmail)}&multi=${multiNotify}`); |
80 } | 80 } |
81 | 81 |
82 function showVoice() { | 82 function showVoice() { |
83 let span = document.querySelector('span[voice]'); | 83 let span = document.querySelector('span[voice]'); |
84 span.textContent = voice ? `Your voice URL: ${voice}` : 'No voice URL'; | 84 span.textContent = voice ? `Your voice URL is ${voice}` : 'No voice URL'; |
85 } | 85 } |
86 | 86 |
87 function editVoice() { | 87 function editVoice() { |
88 let dialog = document.querySelector('dialog[edit_voice]'); | 88 let dialog = document.querySelector('dialog[edit_voice]'); |
89 let input = dialog.querySelector('input[name=voice]'); | 89 let input = dialog.querySelector('input[name=voice]'); |
140 <body> | 140 <body> |
141 <% header() %> | 141 <% header() %> |
142 <div content> | 142 <div content> |
143 <h1>Your Account</h1> | 143 <h1>Your Account</h1> |
144 <p><a href="about.html">About Luan Chat</a></p> | 144 <p><a href="about.html">About Luan Chat</a></p> |
145 <p>Your URL: <%= base_url() %>/chat?with=<%=user.email%></p> | 145 <p>Your username is <span username></span> <a href="javascript:editUsername()">Edit</a></p> |
146 <p>Your username: <span username></span> <a href="javascript:editUsername()">Edit</a></p> | |
147 <p><span notify></span> <a href="javascript:editNotify()">Edit</a></p> | 146 <p><span notify></span> <a href="javascript:editNotify()">Edit</a></p> |
148 <p><span voice></span> <a href="javascript:editVoice()">Edit</a></p> | 147 <p><span voice></span> <a href="javascript:editVoice()">Edit</a></p> |
148 <p>Your chat URL is <%= base_url() %>/chat?with=<%=user.email%></p> | |
149 <p><a href="javascript:logout()">Logout</a></p> | 149 <p><a href="javascript:logout()">Logout</a></p> |
150 <p><a href="javascript:deleteUser()">Delete account</a></p> | 150 <p><a href="javascript:deleteUser()">Delete account</a></p> |
151 </div> | 151 </div> |
152 <dialog edit_username> | 152 <dialog edit_username> |
153 <h2>Edit Username</h2> | 153 <h2>Edit Username</h2> |