aboutsummaryrefslogtreecommitdiff
path: root/html/display-panel.html
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2021-07-06 18:27:38 +0200
committerWojtek Kosior <koszko@koszko.org>2021-07-06 18:27:38 +0200
commitc86bdfcd9d56309faca69b58830cea1fa98870e0 (patch)
treeaba830cbebf3a3a7a3af94c65103f14585651441 /html/display-panel.html
parent2059fab6c01a0793e8a82f80d9518ed2bd6d1e29 (diff)
parentb7e2870ff58ef85370781aa04e9e0126988e39fd (diff)
downloadbrowser-extension-c86bdfcd9d56309faca69b58830cea1fa98870e0.tar.gz
browser-extension-c86bdfcd9d56309faca69b58830cea1fa98870e0.zip
Merge popup display
Diffstat (limited to 'html/display-panel.html')
-rw-r--r--html/display-panel.html85
1 files changed, 83 insertions, 2 deletions
diff --git a/html/display-panel.html b/html/display-panel.html
index 5e5580e..9b6d619 100644
--- a/html/display-panel.html
+++ b/html/display-panel.html
@@ -6,9 +6,90 @@
<html>
<head>
<meta charset="utf-8"/>
- <title>Myext popup</title>
+ <title>Hachette - page settings</title>
+ <style>
+ input[type="radio"], input[type="checkbox"] {
+ display: none;
+ }
+
+ body {
+ width: 300px;
+ height: 300px;
+ }
+
+ .show_next:not(:checked)+* {
+ display: none;
+ }
+
+ .hide {
+ display: none;
+ }
+
+ #possible_patterns_chbx:not(:checked)+label span#triangle:first-child+span,
+ #possible_patterns_chbx:not(:checked)+label+*,
+ #possible_patterns_chbx:checked+label span#triangle:first-child {
+ display: none;
+ }
+
+ #container_for_injected>#none_injected:not(:last-child) {
+ display: none;
+ }
+
+ input#connected_chbx:checked+div+h3 {
+ display: none;
+ }
+ </style>
</head>
<body>
- <button id="settings_but" type="button">Settings</button>_POPUPSCRIPTS_
+ <!-- The invisible div below is for elements that will be cloned. -->
+ <div class="hide">
+ <li id="pattern_li_template">
+ <span></span>
+ <button>View in settings</button>
+ </li>
+ </div>
+
+ <h2 id="page_url_heading"></h2>
+
+ <input id="show_privileged_notice_chbx" type="checkbox" class="show_next"></input>
+ <h3>Privileged page</h3>
+
+ <input id="show_page_state_chbx" type="checkbox" class="show_next"></input>
+ <div>
+ <input id="possible_patterns_chbx" type="checkbox"></input>
+ <label for="possible_patterns_chbx">
+ <h3>
+ <span id="triangle">&#x23F5;</span><span>&#x23F7;</span>
+ Possible patterns
+ </h3>
+ </label>
+ <ul id="possible_patterns"></ul>
+
+ <input id="connected_chbx" type="checkbox" class="show_next"></input>
+ <div>
+ <h3>
+ Matched pattern: <span id="pattern">...</span>
+ <button id="view_pattern" class="hide">
+ View in settings
+ </button>
+ </h3>
+ <h3>
+ Blocked: <span id="blocked">...</span>
+ </h3>
+ <h3>
+ Payload: <span id="payload">...</span>
+ <button id="view_payload" class="hide">
+ View in settings
+ </button>
+ </h3>
+ <h3>Injected</h3>
+ <div id="container_for_injected">
+ <span id="none_injected">None</span>
+ </div>
+ </div>
+ <h3>Trying to connect..<input id="loading_chbx" type="checkbox" class="show_next"></input><span>.</span></h3>
+ </div>
+
+ <button id="settings_but" type="button" style="margin-top: 20px;">Settings</button>_POPUPSCRIPTS_
</body>
</html>