luci-app-adblock: sync with adblock 3.5.4
[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
8 <script type="text/javascript">
9 //<![CDATA[
10 function log_update()
11 {
12 XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "services", "adblock", "logread")%>', null,
13 function(x)
14 {
15 if (!x)
16 {
17 return;
18 }
19 var view = document.getElementById("view_id");
20 view.value = x.responseText;
21 view.scrollTop = view.scrollHeight;
22 });
23 }
24 window.onload = log_update();
25 //]]>
26 </script>
27
28 <div class="cbi-map">
29 <div class="cbi-section">
30 <div class="cbi-section-descr"><%:The syslog output, pre-filtered for adblock related messages only.%></div>
31 <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>
32 </div>
33 </div>
34
35 <%+footer%>