diff --git a/.phpenv b/.phpenv index 9162f73..63d6842 100644 --- a/.phpenv +++ b/.phpenv @@ -21,6 +21,7 @@ $LISTING_PROVIDER_LISTINGS="$LISTING_PROVIDER_OUTPUT/listing"; $REPOSITORY_CANONICAL_URL="https://codeberg.org/gravel/sessioncommunities.online"; + $REPOSITORY_CANONICAL_URL_FILES="$REPOSITORY_CANONICAL_URL/src/branch/main"; set_include_path(implode(PATH_SEPARATOR, array( get_include_path(), diff --git a/output/index.css b/output/index.css index 5d4ab6b..b5d1e3c 100644 --- a/output/index.css +++ b/output/index.css @@ -419,12 +419,16 @@ footer p { text-align: center; } -footer nav a { +footer nav :is(a, span) { display: inline-block; padding: .5em; white-space: nowrap; } +#more-sites-info-button { + font-size: 1.25em; +} + /* --- QR code modals --- */ #details-modal { padding: 0; diff --git a/output/main.js b/output/main.js index 0b2fba6..ac477e0 100644 --- a/output/main.js +++ b/output/main.js @@ -77,7 +77,7 @@ function getTimestamp() { } /** - * Processes URL hash and parameter to trigger actions on the page. + * Processes initial URL hash and parameter to trigger actions on the page. */ function reactToURLParameters() { const hash = location.hash; @@ -102,6 +102,20 @@ function reactToURLParameters() { } } +function addInformativeInteractions() { + const moreSitesInfoButton = document.getElementById('more-sites-info-button'); + moreSitesInfoButton?.addEventListener('click', () => { + alert( + `Lokinet Gitea and session.directory compile lists of + Session Closed Groups and Communities, and are linked + in recognition of their importance. + However, sessioncommunities.online already includes Communities + from these sources on this page. + `.replace(/\s+/g, " ").trim() + ); + }); +} + /** * Triggers all actions dependent on page load. */ @@ -119,6 +133,7 @@ function onLoad() { addServerIconInteractions(); preloadImages(); reactToURLParameters(); + addInformativeInteractions(); } /** diff --git a/sites/index.php b/sites/index.php index 36f5f57..01cfa14 100644 --- a/sites/index.php +++ b/sites/index.php @@ -68,6 +68,11 @@ href="#footer" title="Learn more about sessioncommunities.online." >About + More groups