diff --git a/src/components/Ad.svelte b/src/components/Ad.svelte new file mode 100644 index 00000000..e6bc4095 --- /dev/null +++ b/src/components/Ad.svelte @@ -0,0 +1,10 @@ + + +
diff --git a/src/routes/_layout.svelte b/src/routes/_layout.svelte index a2497cef..08ef6ae7 100644 --- a/src/routes/_layout.svelte +++ b/src/routes/_layout.svelte @@ -22,7 +22,7 @@ export let segment; - const { preloading } = stores(); + const { preloading, page } = stores(); const delayedPreloading = derived(preloading, (currentPreloading, set) => { setTimeout(() => set(currentPreloading), 250); }); @@ -30,6 +30,10 @@ // check local storage save on load onMount(async () => { await checkLocalSave(); + + page.subscribe(() => { + if (window.reloadAdSlots) window.reloadAdSlots(); + }); }); @@ -53,7 +57,7 @@ {#if $preloading && $delayedPreloading}
{/if} -
+

{$t('footer.affliate')}
{$t('footer.copyright')} @@ -66,10 +70,18 @@

{$t('footer.community')} @@ -104,6 +116,12 @@ class="text-gray-400 mt-4 md:mt-0 md:ml-4 flex flex-col justify-center h-full md:pl-4 md:border-l border-gray-600" > Privacy Policy + + Cookie Settings +
+
Github diff --git a/src/routes/privacy-policy.svelte b/src/routes/privacy-policy.svelte index 09e94fd9..af39f501 100644 --- a/src/routes/privacy-policy.svelte +++ b/src/routes/privacy-policy.svelte @@ -6,7 +6,7 @@ Privacy Policy - Paimon.moe -
+

{$t('privacypolicy.title')}

{$t('privacypolicy.subtitle')}

@@ -46,5 +46,14 @@ {$t(`privacypolicy.notCollect.3`)}

+

Advertisements

+ We use third party advertisements to support our site. Some of these advertisers may be served from our third party advertiser. + You can view their + privacy policy + and + cookie policy + here. You can manage your cookies + + here
diff --git a/src/routes/wish/index.svelte b/src/routes/wish/index.svelte index 6f405702..efd95c42 100644 --- a/src/routes/wish/index.svelte +++ b/src/routes/wish/index.svelte @@ -15,6 +15,7 @@ import MonthlyGraph from './_monthlyGraph.svelte'; import HowToModal from './_helpModal.svelte'; import SettingModal from './_settingModal.svelte'; + import Ad from '../../components/Ad.svelte'; const { open: openModal, close: closeModal } = getContext('simple-modal'); @@ -137,23 +138,28 @@ content="Genshin Impact Wish Counter to track your pity counter and track when you get the character or weapon. You can also automatically import the logs and backup it from PC, Android, iOS, PlayStation then save it more than 6 months." /> -
-
-

{$t('wish.title')}

- - {#if settings.manualInput} - - {/if} - +
+
+
+

{$t('wish.title')}

+
+ + {#if settings.manualInput} + + {/if} + +
+
+