diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2023-01-05 21:20:19 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2023-01-19 20:34:48 +0000 |
| commit | 860d79c874db624f94b0210d6ed6de1055712fe2 (patch) | |
| tree | 5626937decaed94ee1e72f67642546a7755b94cf /kaios/apppage.pl | |
| parent | b0203e8f72df74783a5e216aa7cd1a8f307a4d41 (diff) | |
| download | puzzles-860d79c874db624f94b0210d6ed6de1055712fe2.zip puzzles-860d79c874db624f94b0210d6ed6de1055712fe2.tar.gz puzzles-860d79c874db624f94b0210d6ed6de1055712fe2.tar.bz2 puzzles-860d79c874db624f94b0210d6ed6de1055712fe2.tar.xz | |
kaios: Add hooks for the KaiAds API
The Kai Store makes display of advertisements provided by the KaiAds API
mandatory. I don't want such adverts to be inconvenient for the users,
so I've just gone for adding a menu item that will display one. This is
probably a little too crude, but it's good for testing things.
The actual KaiAds API code is not free software, so it's not included
here. My intention is to add it by hand to the Zip files for Kai Store
uploads. Without it, the advertising code does nothing.
Diffstat (limited to 'kaios/apppage.pl')
| -rwxr-xr-x | kaios/apppage.pl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kaios/apppage.pl b/kaios/apppage.pl index 8f72ee6..251ab2f 100755 --- a/kaios/apppage.pl +++ b/kaios/apppage.pl @@ -13,7 +13,10 @@ print <<EOF; <meta http-equiv="Content-Type" content="text/html; charset=ASCII" /> <meta name="theme-color" content="rgb(50,50,50)" /> <title>${displayname}</title> +<!-- The KaiAds scripts are only present in Kai Store versions. --> +<script src="kaiads.v5.min.js"></script> <script defer type="text/javascript" src="${name}.js"></script> +<script defer type="text/javascript" src="kaiads-glue.js"></script> <!-- Override some defaults for small screens --> <script id="environment" type="application/json"> { "PATTERN_DEFAULT": "10x10", |