changeset 67:e4e331539146

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 06 Mar 2025 12:13:31 -0700
parents f067de76084c
children 329c3f70fd78
files src/account.html.luan
diffstat 1 files changed, 18 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/account.html.luan	Thu Mar 06 03:09:24 2025 -0700
+++ b/src/account.html.luan	Thu Mar 06 12:13:31 2025 -0700
@@ -110,6 +110,11 @@
 				ajax('delete_user.js');
 			}
 
+			function openUrl() {
+				let dialog = document.querySelector('dialog[url]');
+				openModal(dialog);
+			}
+
 			function init() {
 				showUsername();
 				showNotify();
@@ -132,6 +137,9 @@
 			input[name=voice] {
 				width: 500px;
 			}
+			dialog[url] {
+				width: 600px;
+			}
 			span[note] {
 				font-size: small;
 			}
@@ -144,7 +152,7 @@
 			<p>Your username is <span username></span> <a href="javascript:editUsername()">Edit</a></p>
 			<p><span notify></span> <a href="javascript:editNotify()">Edit</a></p>
 			<p><span voice></span> <a href="javascript:editVoice()">Edit</a></p>
-			<p>Your chat URL is <%= base_url() %>/chat?with=<%=user.email%></p>
+			<p><a href="javascript:openUrl()">Your chat URL</a></p>
 			<p><a href="javascript:logout()">Logout</a></p>
 			<p><a href="javascript:deleteUser()">Delete account</a></p>
 			<p>&nbsp;</p>
@@ -193,7 +201,7 @@
 				<p>
 					<label>URL for receiving voice calls</label><br> 
 					<input type=url name=voice><br>
-					<span note>Leave blank for no voice URL.  We recommend <a href="https://talky.io/">Talky</a>.</span>
+					<span note>Leave blank for no voice URL.  We recommend <a href="https://whereby.com/">Whereby</a>.</span>
 				</p>
 				<div buttons>
 					<button type=button onclick="closeModal(this)">Cancel</button>
@@ -209,6 +217,14 @@
 				<button onclick="doDeleteUser(this)">Delete</button>
 			</div>
 		</dialog>
+		<dialog url>
+			<h2>Your chat URL</h2>
+			<p><%= base_url() %>/chat?with=<%=user.email%></p>
+			<p>Use this URL to link to your chat so that other people can chat with you by clicking on the link.</p>
+			<div buttons>
+				<button onclick="closeModal(this)">Close</button>
+			</div>
+		</dialog>
 		<script> init(); </script>
 		<!-- ID = <%=user.id%> -->
 	</body>