comparison src/index.html.luan @ 60:3521166513b3

finish invite
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 04 Mar 2025 20:31:00 -0700
parents 8270106644db
children afd5ab5b02a2
comparison
equal deleted inserted replaced
59:8270106644db 60:3521166513b3
39 <style online></style> 39 <style online></style>
40 <script src="chat.js?s=<%=started%>"></script> 40 <script src="chat.js?s=<%=started%>"></script>
41 </head> 41 </head>
42 <body> 42 <body>
43 <% header() %> 43 <% header() %>
44 <div chat_content show="chats"> 44 <div chat_content show="intro">
45 <div chats> 45 <div chats>
46 <% chats_html() %> 46 <% chats_html() %>
47 </div> 47 </div>
48 <div posts> 48 <div intro>
49 <div intro> 49 <h3 or>Choose a chat on the left</h3>
50 <h3>Choose a chat on the left</h3> 50 <p or>or</p>
51 <p>or</p> 51 <h3>Chat with another person</h3>
52 <h3>Chat with another person</h3> 52 <form action="javascript:invite()">
53 <form action="javascript:invite()"> 53 <p>
54 <p> 54 <label>Person's email</label><br>
55 <label>Person's email</label><br> 55 <input type=email name=email required><br>
56 <input type=email name=email required><br> 56 </p>
57 </p> 57 <p>
58 <p> 58 <input type=submit>
59 <input type=submit> 59 </p>
60 </p> 60 </form>
61 </form>
62 </div>
63 </div> 61 </div>
62 <div posts></div>
64 </div> 63 </div>
65 <div hidden> 64 <div hidden>
66 <span pulldown> 65 <span pulldown>
67 <img onclick="clickMenu(this)" src="/images/more_vert.svg"> 66 <img onclick="clickMenu(this)" src="/images/more_vert.svg">
68 <div> 67 <div>
73 </div> 72 </div>
74 <dialog delete_chat> 73 <dialog delete_chat>
75 <h2>Delete Chat</h2> 74 <h2>Delete Chat</h2>
76 <p>Are you sure that you want to delete this chat?</p> 75 <p>Are you sure that you want to delete this chat?</p>
77 <div buttons> 76 <div buttons>
78 <button cancel onclick="closeModal(this)">Cancel</button> 77 <button onclick="closeModal(this)">Cancel</button>
79 <button go onclick="doDeleteChat(this)">Delete</button> 78 <button onclick="doDeleteChat(this)">Delete</button>
80 </div> 79 </div>
81 </dialog> 80 </dialog>
82 <dialog delete_post> 81 <dialog delete_post>
83 <h2>Delete Message</h2> 82 <h2>Delete Message</h2>
84 <p>Are you sure that you want to delete this message?</p> 83 <p>Are you sure that you want to delete this message?</p>
85 <div buttons> 84 <div buttons>
86 <button cancel onclick="closeModal(this)">Cancel</button> 85 <button onclick="closeModal(this)">Cancel</button>
87 <button go onclick="doDeletePost(this)">Delete</button> 86 <button onclick="doDeletePost(this)">Delete</button>
88 </div> 87 </div>
89 </dialog> 88 </dialog>
90 <dialog edit_post> 89 <dialog edit_post>
91 <h2>Edit Message</h2> 90 <h2>Edit Message</h2>
92 <p><textarea onfocus="fixTextarea(event)" oninput="fixTextarea(event)"></textarea></p> 91 <p><textarea onfocus="fixTextarea(event)" oninput="fixTextarea(event)"></textarea></p>
93 <div buttons> 92 <div buttons>
94 <button cancel onclick="closeModal(this)">Cancel</button> 93 <button onclick="closeModal(this)">Cancel</button>
95 <button go onclick="savePost(this)">Save</button> 94 <button onclick="savePost(this)">Save</button>
96 </div> 95 </div>
97 </dialog> 96 </dialog>
98 <dialog invite> 97 <dialog invite>
99 <h2>Chat with another person</h2> 98 <h2>Chat with another person</h2>
100 <p>We have sent an invite to <span email></span></p> 99 <p>We have sent an invite to <span email></span></p>
101 <div buttons> 100 <div buttons>
102 <button cancel onclick="closeModal(this)">Close</button> 101 <button onclick="gotoInvite(this)">Close</button>
103 </div> 102 </div>
104 </dialog> 103 </dialog>
105 <script> 104 <script>
106 'use strict'; 105 'use strict';
107 106