Compare commits

20 Commits
Author SHA1 Message Date
me b78eb3f0f4 apps, fix title and reword description for Sunset Alarm. 2026-11-04 13:07:39 -07:00
me 77d96bdfd9 apps, update Obtainium instructions. 2026-11-04 12:51:53 -07:00
me 851171609b apps, go back to using src URI for obtainium since it's just showing the text on Android FF. 2026-11-04 12:45:51 -07:00
me a45a0a6368 Add README's for the new folders. 2026-11-04 12:44:56 -07:00
me 032e551858 favicon, add var to favicon.io links and add sizes="any" to svg. 2026-11-02 14:47:43 -07:00
me a3192ec559 favicon, comment redundant entries. 2026-11-02 09:05:02 -07:00
me 826daabc72 main, add timestamps to the log. 2026-11-02 08:52:04 -07:00
me 53bb02063a banner, use asset images. 2026-11-02 08:13:47 -07:00
me 10bb283a44 favicon, add new favicons and manifests. 2026-11-02 08:13:31 -07:00
me eda39d07ba assets, add favicons and manifests from same websites used for blog site, this time based on peace icon. 2026-11-02 08:13:10 -07:00
me 845d7ecdcb art, add images frequently used as icons. 2026-11-02 08:12:12 -07:00
me 027a7875d8 main, implement an 'assets' folder for files needed at the website's root, allows having a local favicon and images. 2026-11-02 08:11:35 -07:00
me 47a022161c apps, point hypergames image to dev branch since main may not be done for a while. 2026-11-01 11:07:33 -07:00
me 31d9a8b706 apps, update TicTacToe and HyperGames to be new standard. 2026-11-01 10:28:32 -07:00
me d424a4c7c3 apps, update T45MR to new standard. 2026-11-01 08:34:25 -07:00
me e44e8a6d18 apps, update Expense Tracker to use the new standard. 2026-11-01 07:45:13 -07:00
me 3f0fff42d4 header, move favicons to their own file before adding better support. 2026-10-29 21:53:34 -07:00
me 25ff248b92 main, begin to minify HTML. 2026-10-29 21:53:08 -07:00
me ed934ea5d9 banner, hide the underlines. 2026-10-05 15:51:34 -07:00
me f7dd491553 font, fix whitespace. 2026-10-05 15:40:42 -07:00
26 changed files with 220 additions and 85 deletions

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
# Art
Support directory to store images which are used inderectly for the site.
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

+4
View File
@@ -0,0 +1,4 @@
# Assets
Similar to `static/` on a Hugo website, these files are served at the website's
root as-is. Useful for favicon type content. Can have folders if desired.
Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 662 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="1000" height="1000"><metadata><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"><rdf:Description><dc:creator>RealFaviconGenerator</dc:creator><dc:source>https://realfavicongenerator.net</dc:source></rdf:Description></rdf:RDF></metadata><g clip-path="url(#SvgjsClipPath1046)"><rect width="1000" height="1000" fill="#ffffff"></rect><g transform="matrix(3.3333333333333335,0,0,3.3333333333333335,0,0)"><svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="300" viewBox="0 0 300 300"><image width="300" height="300" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAABhWlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw1AUhU9TpVIqInYQcchQpYMFURFHrUIRKoRaoVUHk5f+QZOGpMXFUXAtOPizWHVwcdbVwVUQBH9AXF2cFF2kxPuSQosYH1zex3nvHO67Dx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XP4Uz0bKKrP4J7dHP40XGMm7xy6GsA7I6ykgvavh8L9rCQrEae0jh4I15pJXAzgnRHW2m5Y1W42aB8bDXcK1fiCiJv+D3aTO2w2hJ+fCa8pl6osJ4SVxE4MUcie26eLSZght898CO/ajg5OCKuz2+xEe5RbKWQXJolCeJN5VjQB3+lIlWW9sNp29dC2zmzQXhgJj+JSbiVMM7hnN/1HzE7C1zdA2zo3qizrhdXZbXaMYbIYHnKqSXaRFF/2hWvQZGuYbXOjyrJaWKarK7WCIq2toStVltXCMl1dqRUUaW4NXaiyrBWW6epKraBIe2voQpVlrbDaX4aWFWoFhVpDk61hy4rw2pOwnoDFW3vItpurrtQKCrWGd6usbLu90+9zvu3hW+ve1asfwts7YcVqM73gyf8ODxIc79UVMhv/9DvY8ma8r3Hsc/j3t/RZz/4THN75Abz0upmf4pe+Co/7OfoTVVgVfTkmHxrMD0a9oC4MYWtvGK7R/KCZ17v7kKGE9Viym2Bp1sxY+2QRBs/D4B5dFML23jBcqyYS+PmZ8BrMbpKwHkvberPVVb9uCwpH6O8zW2W1rZewHi2rXRibZVB1JVRlPZy7Mw4S1kMxOcug6kqoyno0Fs442COsxVsxNsug6kqoyqqsygpnHCSsBzAZtqu6EqqyHo+F4bs9wjIVtqu6EqqyKsey8N0OYS3eCstbzbSDqq6EqqwnawuXt1rTFtohrOwmWNSk6koIG6usRU3WtIV2CMtUO1gYgcGzWuzCE2mdNfOQoUVtYfLLine truncated

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.
Binary file not shown.
+21
View File
@@ -0,0 +1,21 @@
{
"name": "Hyperling.com",
"short_name": "Hyperling",
"icons": [
{
"src": "/web-app-manifest-192x192.png?v=20261102",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/web-app-manifest-512x512.png?v=20261102",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

+137 -60
View File
@@ -14,6 +14,8 @@ const execSync = require('child_process').execSync;
const fs = require('fs');
const { minify } = require('html-minifier-terser');
//// Global Variables ////
const DEBUG = false;
@@ -24,12 +26,16 @@ let pages = [];
const pages_dir = "./pages/";
const file_types = ["php", "sh"];
let assets = [];
const asset_dir = "./assets/";
const asset_types = ['png', 'svg', 'ico', 'webmanifest', 'jpg'];
let ports = [];
// Check parameters for numeric port numbers.
process.argv.forEach(function (val, index, array) {
console.log("Parameter", index + ':', val, !isNaN(val));
console.log(now() + ": Parameter", index + ':', val, !isNaN(val));
if (!isNaN(val)) {
console.log("Adding Port", val)
console.log(now() + ": Adding Port", val)
ports.push(val);
}
});
@@ -44,25 +50,76 @@ const stringsToRemove = [
//// Functions ////
// Compact HTML and remove unnecessary content like comments and whitespace.
// May help with performance for slower connections. Also more professional.
async function mini(html) {
//console.log(`html=${html}`);
const minified = await minify(html, {
collapseWhitespace: true,
removeComments: true,
minifyJS: true,
minifyCSS: true
});
//console.log(`minified=${minified}`);
return minified.toString();
}
// Check extension and guess a MIME type.
function getMIME(extension) {
let mime;
switch (extension) {
case "apk":
mime = "application/vnd.android.package-archive";
break;
case "jpg":
case "jpeg":
mime = "image/jpeg";
break;
case "png":
mime = "image/png";
break;
case "html":
mime = "text/html";
break;
case "zip":
mime = "application/zip";
break;
case "md":
case "txt":
case "csv":
mime = "text/*";
break;
default:
mime = "application/" + extension;
break;
}
return mime;
}
// Print datetime for logging.
function now() {
return new Date().toISOString();
}
/* Code exists inside a main function so that we may use async/await.
*/
async function main() {
console.log("...Starting Main...");
console.log(now() + ": ...Starting Main...");
// Getting dates in Node.js is awful, just use Linux.
const start_datetime = "" + await execSync('date "+%Y-%m-%dT%H:%M:%S%:z"');
const start_datetime_trimmed = start_datetime.trim();
console.log("Set app to return HTML documents.");
console.log(now() + ": Set app to return HTML documents.");
app.use(function (req, res, next) {
res.contentType('text/html');
next();
});
/* Loop through all file in the pages subdirectory and add the allowed
/* Loop through all files in the pages subdirectory and add the allowed
// file types into the pages array for automatic router creation.
*/
console.log("...Starting Main...");
console.log(now() + ": ...Starting Pages...");
let ls = await fs.promises.readdir(pages_dir);
if (DEBUG) console.log("DEBUG: Results of ls, ", ls);
for (let file of ls) {
@@ -72,14 +129,35 @@ async function main() {
if (file_types.includes(file_type)) {
if (DEBUG) console.log("DEBUG: Hooray!", file, "is being added.");
pages[file_name] = pages_dir + file;
console.log(" * Added page", file);
console.log(now() + ": * Added page", file);
} else {
if (DEBUG) console.log("DEBUG: ", file, "is not an approved type, skipping.");
}
}
console.log(" * Pages loaded: ", pages);
console.log(now() + ": * Pages loaded: ", pages);
//return; // Stop execution FORTESTING
/* Loop through the assets folder and grab favicons, manifests, etc. and
// allow them to be accessed via the root of the website, such as a favicon
// at 'https://hyperling.com/favicon.ico'. May help with SEO!
*/
console.log(now() + ": ...Starting Assets...");
let ls_assets = await fs.promises.readdir(asset_dir);
if (DEBUG) console.log("DEBUG: Results of ls_assets, ", ls_assets);
for (let file of ls_assets) {
let file_test = file.split(".");
//let file_name = file_test[0]; // not needed (yet)
let file_type = file_test[file_test.length - 1];
if (asset_types.includes(file_type)) {
if (DEBUG) console.log("DEBUG: Hooray!", file, "is being added.");
assets[file] = asset_dir + file;
console.log(now() + ": * Added asset", file);
} else {
if (DEBUG) console.log("DEBUG: ", file, "is not an approved type, skipping.");
}
}
console.log(now() + ": * Assets loaded: ", assets);
/* Create both an XML and HTML sitemap based on these entries. XML is used for
// bots like SEO scrapers. HTML will be for human users looking for a list of
// all pages. Some are not in the menu. Generated an example XML sitemap at
@@ -140,7 +218,7 @@ async function main() {
Sitemap: https://hyperling.com/sitemap.xml
`;
console.log("...Adding Routes...");
console.log(now() + ": ...Adding Routes...");
let router = express.Router();
/* AUTOMATIC METHOD BASED ON OBJECT/ARRAY OF WEB SCRIPTS
@@ -148,19 +226,20 @@ async function main() {
*/
// TBD/TODO would be great to log this as "DATE: ADDRESS hit ROUTER requesting RESOURCE"
for (let key in pages) {
console.log(" * Creating router for", key);
router.get("/" + key, function (req,res) {
console.log(key, "fulfilling request to", req.socket.remoteAddress, "asking for", req.url);
console.log(now() + ": * Creating router for", key);
router.get("/" + key, async function (req,res) {
console.log(now() + ":", key, "fulfilling request to", req.socket.remoteAddress, "asking for", req.url);
let html = "" + execSync(pages[key]);
stringsToRemove.forEach(string => {
html = html.replace(string, "");
});
html = await mini(html);
res.send(html);
});
/* Append the page to the sitemap variables.
*/
console.log(" * * Adding to sitemap.xml");
console.log(now() + ": * * Adding to sitemap.xml");
sitemap_xml = sitemap_xml + `
<url>
<loc>https://hyperling.com/`+key+`/</loc>
@@ -168,7 +247,7 @@ async function main() {
<priority>0.80</priority>
</url>
`;
console.log(" * * Adding to sitemap.html");
console.log(now() + ": * * Adding to sitemap.html");
sitemap_html = sitemap_html + `
<li>
<b>`+key+`</b>
@@ -187,69 +266,66 @@ async function main() {
</ul></body></html>
`;
console.log(now() + ": * Creating routers for assets");
for (let key in assets) {
console.log(now() + ": * * Adding /" + key);
router.get('/' + key, function (req, res) {
console.log(now() + ": asset response to", req.socket.remoteAddress, "asking for", req.url)
// Build variables.
const file = "./assets/" + req.path;
const extensions = req.path.split(".");
const extension = extensions[extensions.length-1];
let mime = getMIME(extension);
// Return the file
res.contentType(mime);
let f = fs.createReadStream(file)
.on("error", function(e) {
res.contentType("text/plain");
res.send(404, "Asset Not Found");
})
.pipe(res)
;
});
}
// Provide sitemap.xml file for "SEO".
// TBD/TODO would be great to log this as "DATE: ADDRESS hit ROUTER requesting RESOURCE"
console.log(" * Creating router for sitemap.xml");
console.log(now() + ": * Creating router for sitemap.xml");
router.get('/sitemap.xml', function (req, res) {
console.log("sitemap.xml being provided to", req.socket.remoteAddress)
console.log(now() + ": sitemap.xml being provided to", req.socket.remoteAddress)
res.contentType('text/xml');
res.send(sitemap_xml);
});
// Provide human-usable sitemap links.
// TBD/TODO would be great to log this as "DATE: ADDRESS hit ROUTER requesting RESOURCE"
console.log(" * Creating router for sitemap*");
router.get('/sitemap*', function (req, res) {
console.log("sitemap.html being provided to", req.socket.remoteAddress)
res.send(sitemap_html);
console.log(now() + ": * Creating router for sitemap*");
router.get('/sitemap*', async function (req, res) {
console.log(now() + ": sitemap.html being provided to", req.socket.remoteAddress)
html = await mini(sitemap_html);
res.send(mini(html));
});
// Provide a robots.txt for where search engines should find things.
console.log(" * Creating router for robots.txt");
console.log(now() + ": * Creating router for robots.txt");
router.get('/robots.txt', function (req, res) {
console.log("robots.txt being provided to", req.socket.remoteAddress)
console.log(now() + ": robots.txt being provided to", req.socket.remoteAddress)
res.send(robots_txt);
});
// Return a resource from the files folder.
// TBD/TODO would be great to log this as "DATE: ADDRESS hit ROUTER requesting RESOURCE"
console.log(" * Creating router for files");
console.log(now() + ": * Creating router for files");
router.get('/files*', function (req, res) {
console.log("file response to", req.socket.remoteAddress, "asking for", req.url)
console.log(now() + ": file response to", req.socket.remoteAddress, "asking for", req.url)
// Build variables.
const file = "." + req.path;
const extensions = req.path.split(".");
const extension = extensions[extensions.length-1];
// Check extension and guess a MIME type.
let mime;
switch (extension) {
case "apk":
mime = "application/vnd.android.package-archive";
break;
case "jpg":
case "jpeg":
mime = "image/jpeg";
break;
case "png":
mime = "image/png";
break;
case "html":
mime = "text/html";
break;
case "zip":
mime = "application/zip";
break;
case "md":
case "txt":
case "csv":
mime = "text/*";
break;
default:
mime = "application/" + extension;
break;
}
let mime = getMIME(extension);
// Return the file
res.contentType(mime);
@@ -263,28 +339,29 @@ async function main() {
});
// Originally a test, now a catch-all redirection to Home!
console.log(" * Creating router for redirection");
router.get('/*', function (req, res) {
console.log(now() + ": * Creating router for redirection");
router.get('/*', async function (req, res) {
// WARNING: These are huge so only look when you need to.
//console.log(req);
//console.log(res);
console.log("*wildcard* replying to", req.socket.remoteAddress, "asking for", req.url)
console.log(now() + ": *wildcard* replying to", req.socket.remoteAddress, "asking for", req.url)
let html = "" + execSync("./pages/home.php");
stringsToRemove.forEach(string => {
html = html.replace(string, "");
});
html = await mini(html);
res.send(html);
});
app.use('', router);
console.log("...Adding Ports...");
console.log(now() + ": ...Adding Ports...");
ports.forEach(port => {
app.listen(port);
console.log(" * Now listening on port " + port + ".");
console.log(" * URL: http://localhost:" + port);
console.log(now() + ": * Now listening on port " + port + ".");
console.log(now() + ": * URL: http://localhost:" + port);
});
console.log("Done! Now we wait...");
console.log(now() + ": Done! Now we wait...");
}
//// Program Execution ////
+2 -1
View File
@@ -1,6 +1,7 @@
{
"dependencies": {
"express": ">=4.18.1 < 5.0.0"
"express": ">=4.18.1 < 5.0.0",
"html-minifier-terser": "^7.2.0"
},
"scripts": {
"start": "./run.sh"
+21 -15
View File
@@ -38,7 +38,7 @@
convenient group:
</p>
<ul class="indent"><li>
<a href="https://git.hyperling.com/me/env-obtainium-hyperling/raw/branch/prod/obtainium-export.json"
<a href="https://git.hyperling.com/me/env-obtainium-hyperling/src/branch/prod/obtainium-export.json"
target="_blank" rel="noopener noreferrer"
>
[obtainium-export.json] | Hyperling's Apps
@@ -57,15 +57,13 @@
section below, here is how to show the correct version numbers:
</p>
<ul>
<li>Enable <i>"Sort by only the last segment of the link"</i>.</li>
<li>
Set the <i>"Version string extraction RegEx"</i> field to:
<code>[0-9\.]+[0-9]+</code>
<code>\d+\.\d+\.\d+</code>
</li>
</ul>
<p>
Otherwise, using <i>"Take first link"</i> ensures you get the
proper update but will show pseudo versions.
That should be all that's needed as of November 2026.
</p>
</div>
@@ -133,12 +131,12 @@
src="https://git.hyperling.com/me/flutter-sunset-alarm/raw/branch/main/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png"
>
<figcaption>
Sunset Timer
Sunset Alarm
</figcaption>
</figure>
</a>
<p>
Set an alarm to go off X minutes before sunset. (Linux & Android)
Set an alarm time based on sunset. (Linux & Android)
</p>
<p>
[<a href="https://git.hyperling.com/me/flutter-sunset-alarm/releases/download/latest/sunset_alarm-arm64-v8a-release.apk/"
@@ -155,7 +153,7 @@
target="_blank" rel="noopener noreferrer">
<figure>
<img class="app-icon" loading="lazy" alt="<<expense.png>>"
src="/files/media/icons/expense.png"
src="https://git.hyperling.com/me/flutter-expense-tracker/raw/branch/main/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png"
>
<figcaption>
Recurring Expense Tracker
@@ -168,10 +166,12 @@
(Linux & Android)
</p>
<p>
[<a href="https://git.hyperling.com/me/flutter-expense-tracker/releases/download/latest/ExpenseTracker.apk"
target="_blank" rel="noopener noreferrer">APK</a>]
[<a href="https://git.hyperling.com/me/flutter-expense-tracker/"
target="_blank" rel="noopener noreferrer">Source Code</a>]
[<a href="https://git.hyperling.com/me/flutter-expense-tracker/releases"
target="_blank" rel="noopener noreferrer">APKs / Obtainium URL</a>]
target="_blank" rel="noopener noreferrer">Obtainium URL</a>]
</p>
</div>
@@ -237,7 +237,7 @@
target="_blank" rel="noopener noreferrer">
<figure>
<img class="app-icon" loading="lazy" alt="<<t45mr.png>>"
src="/files/media/icons/t45mr.png"
src="https://git.hyperling.com/me/android-45-minute-rule/raw/branch/main/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png"
>
<figcaption>
45 Minute Rule
@@ -250,10 +250,12 @@
<p>
<!--[<a href="https://play.google.com/store/apps/details?id=com.hyperling.apps.the45minuterule"
target="_blank" rel="noopener noreferrer">Play Store</a>]-->
[<a href="https://git.hyperling.com/me/android-45-minute-rule/releases/download/latest/The45MinuteRule.apk"
target="_blank" rel="noopener noreferrer">APK</a>]
[<a href="https://git.hyperling.com/me/android-45-minute-rule/"
target="_blank" rel="noopener noreferrer">Source Code</a>]
[<a href="https://git.hyperling.com/me/android-45-minute-rule/releases"
target="_blank" rel="noopener noreferrer">APKs / Obtainium URL</a>]
target="_blank" rel="noopener noreferrer">Obtainium URL</a>]
</p>
</div>
@@ -262,7 +264,7 @@
target="_blank" rel="noopener noreferrer">
<figure>
<img class="app-icon" loading="lazy" alt="<<tictactoe.png>>"
src="/files/media/icons/tictactoe.png"
src="https://git.hyperling.com/me/android-tictactoe/raw/branch/main/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png"
>
<figcaption>
Tic-Tac-Toe
@@ -274,10 +276,12 @@
Written to practice Kotlin/Compose.
</p>
<p>
[<a href="https://git.hyperling.com/me/android-tictactoe/releases/download/latest/TicTacToe.apk"
target="_blank" rel="noopener noreferrer">APK</a>]
[<a href="https://git.hyperling.com/me/android-tictactoe/"
target="_blank" rel="noopener noreferrer">Source Code</a>]
[<a href="https://git.hyperling.com/me/android-tictactoe/releases"
target="_blank" rel="noopener noreferrer">APKs / Obtainium URL</a>]
target="_blank" rel="noopener noreferrer">Obtainium URL</a>]
</p>
</div>
@@ -287,7 +291,7 @@
>
<figure>
<img class="app-icon" loading="lazy" alt="<<hypergames.png>>"
src="/files/media/icons/hypergames.png"
src="https://git.hyperling.com/me/android-hypergames/raw/branch/dev/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png"
>
<figcaption>
HyperGames
@@ -301,10 +305,12 @@
<p>
<!--[<a href="https://play.google.com/store/apps/details?id=apps.hyperling.com.platformer"
target="_blank" rel="noopener noreferrer">Play Store</a>]-->
[<a href="https://git.hyperling.com/me/android-hypergames/releases/download/latest/HyperGames.apk"
target="_blank" rel="noopener noreferrer">APK</a>]
[<a href="https://git.hyperling.com/me/android-hypergames/"
target="_blank" rel="noopener noreferrer">Source Code</a>]
[<a href="https://git.hyperling.com/me/android-hypergames/releases"
target="_blank" rel="noopener noreferrer">APKs / Obtainium URL</a>]
target="_blank" rel="noopener noreferrer">Obtainium URL</a>]
</p>
</div>
+6 -2
View File
@@ -29,8 +29,12 @@
height: 237px; /* 69*3[banner stripes] + 15*2[padding top+bot] */
}
.banner-image01 {
background-image: url("/files/media/icons/home.jpg");
background-image: url("/banner-image01.jpg");
}
.banner-image02 {
background-image: url("/files/media/icons/contact.jpg");
background-image: url("/banner-image02.jpg");
}
.banner-anchor {
text-decoration: none;
}
+1 -1
View File
@@ -8,7 +8,7 @@
$banner_width_desktop = $show_pics ? 6 : 12;
$banner_width_mobile = $show_pics ? 8 : 12;
?>
<a href='/'>
<a class="banner-anchor" href='/'>
<div class="row banner-desktop">
<?php if ($show_pics) echo '
<div class="col-3 header center banner-image banner-image01"></div>
+21
View File
@@ -0,0 +1,21 @@
<!-- Old, no longer needed
<link rel="icon" sizes="32x32" href="/favicon.ico">
<link rel="icon" sizes="192x192" href="/favicon.ico">
-->
<!-- https://favicon.io, added the ?v=20261102 manually. -->
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=20261102">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=20261102">
<!-- Not needed, covered in the realfavicongenerator section.
<link rel="manifest" href="/site.webmanifest">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
-->
<!-- https://realfavicongenerator.net , added the sizes=any manually. -->
<link rel="icon" type="image/png" href="/favicon-96x96.png?v=20261102" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg?v=20261102" sizes="any" />
<link rel="shortcut icon" href="/favicon.ico?v=20261102" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=20261102" />
<meta name="apple-mobile-web-app-title" content="Hyperling" />
<link rel="manifest" href="/site.webmanifest?v=20261102" />
+3 -6
View File
@@ -10,12 +10,9 @@
<html lang="en">
<head>
<title>Hyperling<?php echo($GLOBALS["HEADER_TITLE"]); ?></title>
<link rel="icon" sizes="32x32"
href="/files/media/icons/favicon.ico"
>
<link rel="icon" sizes="192x192"
href="/files/media/icons/favicon.ico"
>
<?php
include "favicon.php";
?>
<!-- CSS -->
<style>
<?php include "main.css"; ?>