Skip to content

Commit 21b389d

Browse files
committed
Add kai ad
1 parent 4930735 commit 21b389d

1 file changed

Lines changed: 28 additions & 3 deletions

File tree

websiteBuilder/src/main/kotlin/com/linuxcommandlibrary/desktop/WebsiteBuilder.kt

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ fun main() {
9494
folder.mkdir()
9595

9696
websiteBuilder.createCommandsHtmlFile(folder)
97-
9897
websiteBuilder.createBasicsHtmlFile(folder)
98+
99+
return
100+
99101
websiteBuilder.createBasicHtmlFiles(File(folder, "basic"))
100102

101103
websiteBuilder.createTipsHtmlFile(folder)
@@ -1248,8 +1250,31 @@ class WebsiteBuilder {
12481250
if (showAd) {
12491251
div {
12501252
classes = setOf("bottom-panel")
1251-
style = "background-color: unset;"
1252-
products("row")
1253+
style = "background-color: #5e2cbd;"
1254+
a {
1255+
id = "app-link"
1256+
href = "https://github.com/SimonSchubert/Kai"
1257+
img {
1258+
src = "/images/af/kai-1-horizontal.webp"
1259+
height = "160"
1260+
}
1261+
}
1262+
script {
1263+
unsafe {
1264+
raw("""
1265+
(function() {
1266+
var ua = navigator.userAgent || '';
1267+
var link = document.getElementById('app-link');
1268+
if (/android/i.test(ua)) {
1269+
link.href = 'https://play.google.com/store/apps/details?id=com.inspiredandroid.kai';
1270+
} else if (/iPhone|iPad|iPod|Macintosh|Mac OS/i.test(ua)) {
1271+
link.href = 'https://apps.apple.com/us/app/kai-ai/id6758148023';
1272+
}
1273+
})();
1274+
""".trimIndent())
1275+
}
1276+
}
1277+
// products("row")
12531278
}
12541279
}
12551280
footer {

0 commit comments

Comments
 (0)