Archived
1
0
Disbranĉigi 0

Auto-scroll to bottom of messages

This commit is contained in:
Jaidyn Ann 2023-05-31 14:33:43 -05:00
parent 340b9feee1
commit 2e5ece9d96
3 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,7 @@
<frameset cols="300px,*,200px"> <frameset cols="300px,*,200px">
<frame name="rooms" src="/room#{{ROOM_ID}}"> <frame name="rooms" src="/room#{{ROOM_ID}}">
<frameset rows="*,50px"> <frameset rows="*,50px">
<frame name="messages" src="messages"> <frame name="messages" src="messages#bottom">
<frame name="send" src="send"> <frame name="send" src="send">
</frameset> </frameset>
<frame name="users" src="users"> <frame name="users" src="users">

View File

@ -1,4 +1,4 @@
<a href="/room/{{ROOM_ID}}/#send"> <a href="/room/{{ROOM_ID}}/">
<div class="room-list-item" id="{{ROOM_ID}}"> <div class="room-list-item" id="{{ROOM_ID}}">
<b>{{ROOM_TITLE}}</b> <b>{{ROOM_TITLE}}</b>
<p>{{LAST_MESSAGE}}</p> <p>{{LAST_MESSAGE}}</p>

View File

@ -11,5 +11,6 @@
<table> <table>
{{LIST_ITEMS}} {{LIST_ITEMS}}
</table> </table>
<div id="bottom"> <!-- for auto-scrolling to the bottom! -->
</body> </body>
</html> </html>