[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Gavin D. Smith |
Date: |
Wed, 30 Nov 2022 13:36:35 -0500 (EST) |
branch: old/qt-info
commit cc5a6980cc7014594ef560ac9f7d609589cb6b84
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Tue Apr 9 19:40:36 2019 +0100
* js/info.js (add_icons): Take a document argument. Add CSS
(not currently injected into iframes).
---
ChangeLog | 5 +++++
js/info.js | 9 ++++++---
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 7b0e066232..74efbb487d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-04-09 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * js/info.js (add_icons): Take a document argument. Add CSS
+ (not currently injected into iframes).
+
2019-04-09 Gavin Smith <gavinsmith0123@gmail.com>
Preparation for integration with a new help browser with Qt.
diff --git a/js/info.js b/js/info.js
index 0885120b40..25cc2af28c 100644
--- a/js/info.js
+++ b/js/info.js
@@ -1005,7 +1005,7 @@
on_load ()
{
fix_links (document.links);
- add_icons ();
+ add_icons (document);
document.body.classList.add ("mainbar");
/* Move contents of <body> into a a fresh <div> to let the components
@@ -1366,7 +1366,7 @@
store.dispatch (actions.cache_index_links (index_links));
}
- add_icons ();
+ add_icons (w.document);
/* Call user hook. */
if (config.hooks.on_iframe_load)
@@ -1835,13 +1835,16 @@
navigation_links.dict = { n: "next", p: "prev", u: "up" };
function
- add_icons ()
+ add_icons (document)
{
var div = document.createElement ("div");
div.setAttribute ("id", "icon-bar");
+ div.setAttribute ("style", "float: right");
var span = document.createElement ("span");
span.innerHTML = "?";
span.classList.add ("icon");
+ span.setAttribute ("style", "color: darkgrey;font-size: x-large;");
+ // todo: need .icon:hover and .icon:focus as well - see info.css
span.addEventListener ("click", function () {
store.dispatch (actions.show_help ());
}, false);
- [no subject], (continued)
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject],
Gavin D. Smith <=
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30
- [no subject], Gavin D. Smith, 2022/11/30