diff options
author | jahoti <jahoti@tilde.team> | 2021-09-21 00:00:00 +0000 |
---|---|---|
committer | jahoti <jahoti@tilde.team> | 2021-09-21 00:00:00 +0000 |
commit | 59fb32a341d42c685b5167c3d8b4d7b87c49fd18 (patch) | |
tree | 17143cd40a59eb06b4e698d6fd9ca9d02abaf2b9 /html/options.html | |
parent | b1444d9c9ea065d7c97d5809c3ec5259cb01a1da (diff) | |
parent | 960363e7dd98a724246320e49c3fbaff9d68d1bd (diff) | |
download | browser-extension-59fb32a341d42c685b5167c3d8b4d7b87c49fd18.tar.gz browser-extension-59fb32a341d42c685b5167c3d8b4d7b87c49fd18.zip |
Merge branch 'master' into jahoti-update
Diffstat (limited to 'html/options.html')
-rw-r--r-- | html/options.html | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/html/options.html b/html/options.html index f2a75e1..2e8317c 100644 --- a/html/options.html +++ b/html/options.html @@ -1,12 +1,16 @@ <!doctype html> <!-- + This file is part of Haketilo. + + Function: Extension's settings page. + Copyright (C) 2021 Wojtek Kosior Redistribution terms are gathered in the `copyright' file. --> <html> <head> <meta charset="utf-8"/> - <title>Hachette options</title> + <title>Haketilo options</title> <link type="text/css" rel="stylesheet" href="reset.css" /> <link type="text/css" rel="stylesheet" href="base.css" /> <link type="text/css" rel="stylesheet" href="table.css" /> @@ -152,6 +156,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 +246,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> @@ -248,6 +271,7 @@ </div> </div> <button id="add_page_but" type="button"> Add page </button> + <br/> <IMPORT html/default_blocking_policy.html /> </div> <div id="bags" class="tab"> |