Auto-scroll to bottom of messages
This commit is contained in:
parent
340b9feee1
commit
2e5ece9d96
|
@ -8,7 +8,7 @@
|
|||
<frameset cols="300px,*,200px">
|
||||
<frame name="rooms" src="/room#{{ROOM_ID}}">
|
||||
<frameset rows="*,50px">
|
||||
<frame name="messages" src="messages">
|
||||
<frame name="messages" src="messages#bottom">
|
||||
<frame name="send" src="send">
|
||||
</frameset>
|
||||
<frame name="users" src="users">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<a href="/room/{{ROOM_ID}}/#send">
|
||||
<a href="/room/{{ROOM_ID}}/">
|
||||
<div class="room-list-item" id="{{ROOM_ID}}">
|
||||
<b>{{ROOM_TITLE}}</b>
|
||||
<p>{{LAST_MESSAGE}}</p>
|
||||
|
|
|
@ -11,5 +11,6 @@
|
|||
<table>
|
||||
{{LIST_ITEMS}}
|
||||
</table>
|
||||
<div id="bottom"> <!-- for auto-scrolling to the bottom! -->
|
||||
</body>
|
||||
</html>
|
||||
|
|
Reference in New Issue