File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ;
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 ;
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>" ;
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 >
Original file line number Diff line number Diff line change 1+ export interface AdConfig {
2+
3+ }
Original file line number Diff line number Diff line change 3434 />
3535</svelte:head >
3636
37- {#if isAHost }
37+ {#if isAHost || devMode }
3838 <div class =" container" >
3939 <div class =" background" ></div >
4040 <Navigation />
You can’t perform that action at this time.
0 commit comments