luci-app-adblock: consolidate css
[project/luci.git] / applications / luci-app-adblock / luasrc / view / adblock / logread.htm
1 <%#
2 Copyright 2017-2018 Dirk Brenken (dev@brenken.org)
3 This is free software, licensed under the Apache License, Version 2.0
4 -%>
5
6 <%+header%>
7 <%+adblock/adblock_css%>
8
9 <script type="text/javascript">
10 //<![CDATA[
11 function log_update()
12 {
13 XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "services", "adblock", "logread")%>', null,
14 function(x)
15 {
16 if (!x)
17 {
18 return;
19 }
20 var view = document.getElementById("view_id");
21 view.value = x.responseText;
22 view.scrollTop = view.scrollHeight;
23 });
24 }
25 window.onload = log_update();
26 //]]>
27 </script>
28
29 <div class="cbi-map">
30 <div class="cbi-section">
31 <div class="cbi-section-descr"><%:The syslog output, pre-filtered for adblock related messages only.%></div>
32 <textarea id="view_id" readonly="readonly" wrap="off" value=""></textarea>
33 </div>
34 </div>
35
36 <%+footer%>