summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-nextdns/luasrc/view/nextdns/logread.htm
blob: 0a98b2704fc77dfab38c501ec72fa499e48a6f73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<%+header%>

<style type="text/css">
	select[readonly],
	textarea[readonly]
	{
		width: 100% !important;
		height: 450px !important;
		border: 1px solid #cccccc;
		padding: 5px;
		font-size: 12px;
		font-family: monospace;
		resize: none;
		pointer-events: auto;
		cursor: auto;
	}
</style>

<script type="text/javascript">
//<![CDATA[
	function log_update()
	{
		XHR.poll(-1, '<%=luci.dispatcher.build_url("admin", "services", "nextdns", "logread")%>', null,
		function(x)
		{
			if (!x)
			{
				return;
			}
			var view       = document.getElementById("view_id");
			view.value     = x.responseText;
			view.scrollTop = view.scrollHeight;
		});
	}
	window.onload = log_update();
//]]>
</script>

<div class="cbi-map">
	<div class="cbi-section">
		<div class="cbi-section-descr"><%:The syslog output, pre-filtered for nextdns related messages only.%></div>
		<textarea id="view_id" readonly="readonly" wrap="off" value=""></textarea>
	</div>
</div>

<%+footer%>