Просмотр исходного кода

prevent the input box from getting out of view.

though maybe change the scrolling thing later. don't scroll when we have
scrolled ourselves?
Lucas Stadler лет назад: 11
Родитель
Сommit
235f89cdb2
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      js/babl/public/index.html

+ 8 - 0
js/babl/public/index.html

3
	<head>
3
	<head>
4
		<title>babl</title>
4
		<title>babl</title>
5
		<meta charset="utf-8" />
5
		<meta charset="utf-8" />
6
7
		<style type="text/css">
8
			#input {
9
				float: left;
10
				width: 100%;
11
			}
12
		</style>
6
	</head>
13
	</head>
7
14
8
	<body>
15
	<body>
30
				var msgDate = new Date(msg.timestamp);
37
				var msgDate = new Date(msg.timestamp);
31
				msgEl.textContent = msgDate.toLocaleTimeString() + " - " + msg.author + ": " + msg.content;
38
				msgEl.textContent = msgDate.toLocaleTimeString() + " - " + msg.author + ": " + msg.content;
32
				messagesEl.appendChild(msgEl);
39
				messagesEl.appendChild(msgEl);
40
				msgEl.scrollIntoView();
33
			}
41
			}
34
42
35
			function handleMessage(msg) {
43
			function handleMessage(msg) {