summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-adblock/luasrc/view/adblock/logread.htm
blob: bb8d652fbc21dbe41c0f320da71d83b4481f81fc (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
<%#
Copyright 2017-2018 Dirk Brenken (dev@brenken.org)
This is free software, licensed under the Apache License, Version 2.0
-%>

<%+header%>

<script type="text/javascript">
//<![CDATA[
	function log_update()
	{
		XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "services", "adblock", "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 adblock related messages only.%></div>
		<textarea id="view_id" style="width:100%;height:450px;border:1px solid #cccccc;padding:5px;font-size:12px;font-family:monospace;resize:none;" readonly="readonly" wrap="off" value=""></textarea>
	</div>
</div>

<%+footer%>