51
How to redirect to another URL:
The simplest way to redirect to another URL is to use an HTML <meta> tag with the http-equiv parameter set to “refresh”. The content attribute sets the delay before the browser redirects the user to the new web page. To redirect immediately, set this parameter to “0” seconds for the content attribute.
<meta http-equiv="Refresh" content="0; url='https://www.domain.tld'" />
53
This adds a SpeedCheck widget to your website.
You can adjust the css as you see fit.
How it is set now, allows it to show decently, like on the site here, in a 250px block.
Where want the SpeedCheck to show:
<div id="sc-container">
<div id="sc-branding" class="sc-bb">
<a target="_blank" href="https://www.speedcheck.org/">
<img src="https://cdn.speedcheck.org/branding/speedcheck-logo-18.png" alt="Speedcheck"/>
</a>
</div>
</div>
<script src="https://cdn.speedcheck.org/basic/scbjs.min.js" async></script>
CSS File:
#sc-container {
margin: 0 auto;
width: 200px!important;
max-width: 200px!important;
height: 300px!important;
}
#sc-start-button, #sc-details-button {
cursor: pointer;
max-width: 200px!important;
}
#sc-results {
width: auto!important;
max-width: 200px!important;
}
54
/* hide mobile version by default */
.logo .mobile {
display: none;
}
/* when screen is less than 500px wide
show mobile version and hide desktop */
@media (max-width: 500px) {
.logo .mobile {
display: block;
}
.logo .desktop {
display: none;
}
}
<div class="logo">
<img src="/images/logo_desktop.png" class="desktop" />
<img src="/images/logo_mobile.png" class="mobile" />
</div>
55
This is a great way to make your website open in it's own window instead of opening up as a tab in Chrome for Android.
Another good thing about it, is that you can save the apk for it via your device's app drawer, and share the app.
Make site a PWA
Make a file in site root: manifest.json:
{
"background_color": "navy",
"description": "Site Description",
"display": "standalone",
"icons": [
{
"src": "images/app_logo.png",
"sizes": "200x200",
"type": "image/png"
}
],
"name": "Site name",
"short_name": "App Name",
"start_url": "https://www.domain.tld/"
}
Add to main index page: (Inside the <head> tag.)
<link rel="manifest" href="https://www.domain.tld/manifest.json" />
56
[attach id=484]FB_IMG_1678715345119.jpg[/attach]
[attach id=486]FB_IMG_1678495703375.jpg[/attach]
[attach id=488]FB_IMG_1665709925328.jpg[/attach]
[attach id=490]FB_IMG_1665614191694.jpg[/attach]
58
[attach id=478]BL_03-11-2023.png[/attach]