mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
Merge pull request #126 from tresabhi/main
This commit is contained in:
8 files changed
+35
-32
No files matched your search
@@ -0,0 +1,21 @@
|
||||
'use client';
|
||||
|
||||
import { ComponentProps, useEffect } from 'react';
|
||||
|
||||
export enum AdType {
|
||||
TankopediaHorizontal800 = 738182777,
|
||||
}
|
||||
|
||||
interface AdProps extends ComponentProps<'div'> {
|
||||
type: AdType;
|
||||
}
|
||||
|
||||
export function Ad({ type, ...props }: AdProps) {
|
||||
useEffect(() => {
|
||||
(window as any).msAdsQueue.push(function () {
|
||||
(window as any).mmnow.render({ adUnitId: type, elementId: type });
|
||||
});
|
||||
});
|
||||
|
||||
return <div id={`${type}`} {...props} />;
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
export function AdHorizontal() {
|
||||
return (
|
||||
<>
|
||||
<script
|
||||
async
|
||||
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1289406790225052"
|
||||
crossOrigin="anonymous"
|
||||
/>
|
||||
<ins
|
||||
className="adsbygoogle"
|
||||
style={{ display: 'block' }}
|
||||
data-ad-client="ca-pub-1289406790225052"
|
||||
data-ad-slot="2391822409"
|
||||
data-ad-format="auto"
|
||||
data-full-width-responsive="true"
|
||||
/>
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `(adsbygoogle = window.adsbygoogle || []).push({});`,
|
||||
}}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -36,7 +36,7 @@ export function Party3() {
|
||||
{/* pub center */}
|
||||
<script
|
||||
async
|
||||
src="https://adsdk.microsoft.com/pubcenter/sdk.js?siteId=364600&publisherId=253617120"
|
||||
src="https://adsdk.microsoft.com/mmnow/sdk.js?siteId=364645&publisherId=253617120"
|
||||
crossOrigin="anonymous"
|
||||
/>
|
||||
</>
|
||||
|
||||
Reference in new issue
Block a user