Auto-scroll to bottom of messages
This commit is contained in:
parent
340b9feee1
commit
2e5ece9d96
|
@ -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">
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Reference in New Issue