OSDN Git Service

Execute embedded scripts on overlay-page load.
authorKeith Marshall <keith@users.osdn.me>
Sat, 11 Sep 2021 23:19:40 +0000 (00:19 +0100)
committerKeith Marshall <keith@users.osdn.me>
Sat, 11 Sep 2021 23:19:40 +0000 (00:19 +0100)
commitaa687c72a815bb0c10a1f2040e4a53e4395d3605
tree06686bd90d4f360262d03bb9018f8eacc9101da9
parent659fb0b8deabc58ceed320e2503907a59bdb8e82
Execute embedded scripts on overlay-page load.

* site.js (no_break, update_page_content_header): Delete them.
(set_page): New page-load helper function; it supports page title and
subtitle updates, when called from embedded scripts on overlay-pages.
(load_page) [status == 200]: Scan for, and execute embedded scripts.

* index.html [masthead] (h1, h2): Change identifiers from...
(as-page-title, as-page-subtitle): ...these respectively, to...
(page-title, page-subtitle): ...these; add hidden placeholder content.

* about.html contact.html fdl.html mailing.html missing.html
* terms.html [masthead] (dl): Delete hidden element; replace it with
script, to assign effective HTML content to each of...
(page-title, page-subtitle): ...these.

* fdl.html mailing.html (ol, ul): Do not override CSS styles.

* site.css [masthead]: Do not assume that final element is...
(dl): ...this; define style for immediately following paragraph, on
the basis that the final masthead element may be anything.
about.html
contact.html
fdl.html
index.html
mailing.html
missing.html
site.css
site.js
terms.html