OSDN Git Service

2 years agoAdapt index.html to serve arbitrarily specified content.
Keith Marshall [Mon, 2 Nov 2020 21:41:07 +0000 (21:41 +0000)]
Adapt index.html to serve arbitrarily specified content.

* index.html (onload): Delegate content retrieval to...
(load_page): ...this new javascript function, passing URL.
(page-title, page-subtitle): Rename place-holders, using...
(as-page-title, as-page-subtitle): ...these alternative names.

* site.js (load_page): New function; it consolidates...
(new_page, load_page_overlay, load_page_content): ...these, but
excluding "page-title" and "page-subtitle" assignment; do this...
(load_content): ...here, using repeated invocations of...
(update_page_content_header): ...this new function; it propagates any
"page-title" and "page-subtitle" values from the loaded page fragment,
to their corresponding "index.html" place-holders, calling...
(no_break): ...this new function, to substitute non-breaking hyphens
in place of any included ASCII hyphen characters.

* header.html (navbar): Use fully qualified "href" URL links on all
tabs, replacing "onclick" actions.

* about.html fdl.html terms.html (page-title, page-subtitle): Assign
them to hidden <dt> elements, (in <dl style="display: none"> blocks),
whence they may be propagated, via javascript executed on loading of
the page fragment, to their visible "index.html" place-holders.

* terms.html: Additionally, use a fully qualified "href" link, for
reference to "fdl.html".

* missing.html (page-title): Add hidden <dt> entry.

* site.css (dl.masthead): Define new style, to conceal the <dl>
assignments for "page-title", and "page-subtitle"; adjust top margin
spacing for any immediately following paragraph.

2 years agoMove charset assignment to valid file offset.
Keith Marshall [Tue, 27 Oct 2020 21:07:50 +0000 (21:07 +0000)]
Move charset assignment to valid file offset.

* index.html (charset): The HTML5 specification requires this
meta-data attribute to be assigned within the first 1024 bytes of
the page data; move it above the licensing terms, to keep it so.

2 years agoAdd a site-specific favicon file.
Keith Marshall [Sun, 25 Oct 2020 19:39:49 +0000 (19:39 +0000)]
Add a site-specific favicon file.

* favicon.ico: New file; it is derived from the MSYS icon.

2 years agoAdd generic page overlay to report missing content.
Keith Marshall [Fri, 9 Oct 2020 14:12:25 +0000 (15:12 +0100)]
Add generic page overlay to report missing content.

* missing.html: New file.
* site.js (load_content) [status 404]: Use it.
(load_page_content): Initially, clear previous content.

* header.html (Downloads, Documentation, Contact Us): Add "onclick"
tab references; defer provision of content, raising 404 status.

2 years agoAdd "licensing terms" overlay pages.
Keith Marshall [Wed, 7 Oct 2020 19:15:44 +0000 (20:15 +0100)]
Add "licensing terms" overlay pages.

* terms.html fdl.html: New files.
* header.html (Licensing tab): Add "terms.html" overlay reference.
* site.css (h3-numbered): New "div" class; specify formatting.
* site.js (load_page_overlay): New function; implement it.

2 years agoInitial commit.
Keith Marshall [Tue, 6 Oct 2020 21:01:06 +0000 (22:01 +0100)]
Initial commit.

* index.html header.html about.html: New files.
* site.css site.js logo.png: Likewise.