diff options
author | Dirk Brenken <dev@brenken.org> | 2018-07-25 21:46:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-25 21:46:20 +0200 |
commit | 69257be152a1582808af11853b0ddadd5904f7ed (patch) | |
tree | f54736415138d246509c45390bef90a2412ff0d4 /applications/luci-app-adblock | |
parent | c27a77756c718a0b3babd510f83850bd9e2ac431 (diff) | |
parent | 771672ff7a654439dfe3b7b8661c90a1cca0ac6c (diff) |
Merge pull request #1997 from dibdot/adblock
luci-app-adblock: small visual fixes
Diffstat (limited to 'applications/luci-app-adblock')
-rw-r--r-- | applications/luci-app-adblock/luasrc/view/adblock/logread.htm | 17 | ||||
-rw-r--r-- | applications/luci-app-adblock/luasrc/view/adblock/query.htm | 6 |
2 files changed, 19 insertions, 4 deletions
diff --git a/applications/luci-app-adblock/luasrc/view/adblock/logread.htm b/applications/luci-app-adblock/luasrc/view/adblock/logread.htm index bb8d652fb..b50523349 100644 --- a/applications/luci-app-adblock/luasrc/view/adblock/logread.htm +++ b/applications/luci-app-adblock/luasrc/view/adblock/logread.htm @@ -4,6 +4,21 @@ This is free software, licensed under the Apache License, Version 2.0 -%> <%+header%> +<style type="text/css"> + select[readonly], + textarea[readonly] + { + width: 100%; + height: 450px; + 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[ @@ -28,7 +43,7 @@ This is free software, licensed under the Apache License, Version 2.0 <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> + <textarea id="view_id" readonly="readonly" wrap="off" value=""></textarea> </div> </div> diff --git a/applications/luci-app-adblock/luasrc/view/adblock/query.htm b/applications/luci-app-adblock/luasrc/view/adblock/query.htm index 1fcd14580..2cf7e5baa 100644 --- a/applications/luci-app-adblock/luasrc/view/adblock/query.htm +++ b/applications/luci-app-adblock/luasrc/view/adblock/query.htm @@ -1,5 +1,5 @@ <%# -Copyright 2017 Dirk Brenken (dev@brenken.org) +Copyright 2017-2018 Dirk Brenken (dev@brenken.org) This is free software, licensed under the Apache License, Version 2.0 -%> @@ -12,7 +12,7 @@ This is free software, licensed under the Apache License, Version 2.0 function update_status(data) { var domain = data.value; - var input = document.getElementById('query_input'); + var input = document.getElementById('query_input'); var output = document.getElementById('query_output'); if (input && output) @@ -48,7 +48,7 @@ This is free software, licensed under the Apache License, Version 2.0 <div class="cbi-section"> <div class="cbi-section-descr"><%:This form allows you to query active block lists for certain domains, e.g. for whitelisting.%></div> <div style="width:33%; float:left;"> - <input style="margin: 5px 0" type="text" value="google.com" name="input" /> + <input type="text" value="google.com" name="input" /> <input type="button" value="<%:Query%>" class="cbi-button cbi-button-apply" onclick="update_status(this.form.input)" /> </div> <br style="clear:both" /> |