Auto-refresh chat-page
This commit is contained in:
parent
79e8b61ac3
commit
2029df1cfc
|
@ -5,12 +5,13 @@
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="/style.css" type="text/css">
|
<link rel="stylesheet" href="/style.css" type="text/css">
|
||||||
|
<meta http-equiv="refresh" content="20">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<table>
|
<table>
|
||||||
{{LIST_ITEMS}}
|
{{LIST_ITEMS}}
|
||||||
</table>
|
</table>
|
||||||
<form method="post">
|
<form id="send" method="post">
|
||||||
<input name="message" />
|
<input name="message" />
|
||||||
<button>Send</button>
|
<button>Send</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<a href="/room/{{ROOM_ID}}/">
|
<a href="/room/{{ROOM_ID}}/#send">
|
||||||
<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>
|
||||||
|
|
Reference in New Issue