Skip to content

Commit 28d7bde

Browse files
committed
add monetag verification
1 parent 164ce6d commit 28d7bde

4 files changed

Lines changed: 22 additions & 3 deletions

File tree

src/app.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
<link rel="icon" href="%sveltekit.assets%/ccported_logo.webp" />
1818
<meta name="viewport" content="width=device-width, initial-scale=1" />
1919
<link rel="stylesheet" href="%sveltekit.assets%/main.css" />
20-
20+
<!-- monetag verification -->
21+
<meta name="monetag" content="d8b4782b70ad231400413e55fe7352fd">
2122
<!-- exoclick verification -->
2223
<meta name="6a97888e-site-verification" content="90256ef2817c47f4922d837cdf49fedc">
2324

src/lib/components/CardGrid.svelte

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<script lang="ts">
2-
import { decamelize, detectAdBlockEnabled, openGame } from "$lib/helpers.js";
2+
import {
3+
decamelize,
4+
detectAdBlockEnabled,
5+
openGame,
6+
} from "$lib/helpers.js";
37
import { SessionState, State } from "$lib/state.js";
48
import type { Game } from "$lib/types/game.js";
59
import { onMount } from "svelte";
@@ -169,6 +173,7 @@
169173
}
170174
171175
const searchRegex = /[a-z0-9]/i;
176+
let adBlock = $state(false);
172177
onMount(async () => {
173178
document.addEventListener("keydown", (e) => {
174179
if (!searchInput) return;
@@ -218,6 +223,7 @@
218223
219224
await detectAdBlockEnabled();
220225
console.log("AdBlock Enabled:", SessionState.adBlockEnabled);
226+
adBlock = SessionState.adBlockEnabled;
221227
adsEnabled = SessionState.adsEnabled;
222228
if (adsEnabled) {
223229
const host = browser ? window.location.hostname : "<SSR_HOST>";
@@ -398,6 +404,15 @@
398404
<Ad slotId={adSlots.grid} />
399405
</div>
400406
{/if}
407+
{#if !adBlock && !adsEnabled}
408+
{#if (i + 1) % 10 === 0}
409+
<div class="inxxx agrid grid">
410+
<div style="text-align: center; font-size: 0.9rem; color: #555;width:100%;height:100%;display: flex;flex-direction: column;justify-content: center;align-items: center;">
411+
<p>Contact <a href="mailto:ccported@ccported.click">ccported@ccported.click</a> to advertise in this slot</p>
412+
</div>
413+
</div>
414+
{/if}
415+
{/if}
401416
{/each}
402417
</div>
403418
</div>

src/lib/types/ad.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export interface AdConfig {
2+
3+
}

src/routes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
/>
3535
</svelte:head>
3636

37-
{#if isAHost}
37+
{#if isAHost || devMode}
3838
<div class="container">
3939
<div class="background"></div>
4040
<Navigation />

0 commit comments

Comments
 (0)