aboutsummaryrefslogtreecommitdiff
path: root/html/options.html
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2021-09-10 16:50:56 +0200
committerWojtek Kosior <koszko@koszko.org>2021-09-10 16:50:56 +0200
commit5c75d7446187a01409eff1a1e5946f66267f61fb (patch)
treebbb6b86d0f404fce68b8f70cafacb8b4eaee35be /html/options.html
parent72cbfa74f7f30fdf60fc6ad73182ed1cca3d3712 (diff)
downloadbrowser-extension-5c75d7446187a01409eff1a1e5946f66267f61fb.tar.gz
browser-extension-5c75d7446187a01409eff1a1e5946f66267f61fb.zip
Make it impossible to check "Allow native scripts" for pages with payload.
Diffstat (limited to 'html/options.html')
-rw-r--r--html/options.html23
1 files changed, 21 insertions, 2 deletions
diff --git a/html/options.html b/html/options.html
index f2a75e1..01b1061 100644
--- a/html/options.html
+++ b/html/options.html
@@ -152,6 +152,22 @@
min-width: 70vw;
resize: none;
}
+
+ .form_disabled>* {
+ opacity: 0.5;
+ pointer-events: none;
+ }
+
+ .form_disabled_msg {
+ display: none;
+ font-style: italic;
+ }
+
+ .form_disabled .form_disabled_msg {
+ opacity: initial;
+ pointer-events: initial;
+ display: initial;
+ }
</style>
</head>
<body>
@@ -226,15 +242,18 @@
<label for="page_url_field">URL: </label>
<input id="page_url_field"></input>
<label>Payload: </label>
- <span>
+ <span class="nowrap">
<span id="page_payload"></span>
<button id="select_page_components_but">
Choose payload
</button>
</span>
- <div>
+ <div id="allow_native_scripts_container" class="nowrap">
<input id="page_allow_chbx" type="checkbox" style="display: inline;"></input>
<label for="page_allow_chbx">Allow native scripts</label>
+ <span class="form_disabled_msg">
+ (only possible when no payload is used)
+ </span>
</div>
<div>
<button id="save_page_but" type="button"> Save </button>