-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
140 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { CommonProps } from "utils/common.ts"; | ||
import { useEffect } from "preact/hooks"; | ||
|
||
// deno-lint-ignore no-empty-interface | ||
interface DisplayAdProps extends CommonProps { | ||
|
||
} | ||
|
||
export default function DisplayAd(props: DisplayAdProps) { | ||
|
||
useEffect(() => { | ||
// deno-lint-ignore no-explicit-any | ||
const adsbygoogle = (window as unknown as any).adsbygoogle || []; | ||
adsbygoogle.push({}); | ||
}); | ||
|
||
return props.adsense && ( | ||
<ins class="adsbygoogle" | ||
style="display:block" | ||
data-ad-client="ca-pub-9224018205432249" | ||
data-ad-slot="7417217449" | ||
data-ad-format="auto" | ||
data-full-width-responsive="true"></ins> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { CommonProps } from "utils/common.ts"; | ||
import { useEffect } from "preact/hooks"; | ||
|
||
// deno-lint-ignore no-empty-interface | ||
interface FixedAdProps extends CommonProps { | ||
|
||
} | ||
|
||
export default function FixedAd(props: FixedAdProps) { | ||
|
||
useEffect(() => { | ||
// deno-lint-ignore no-explicit-any | ||
const adsbygoogle = (window as unknown as any).adsbygoogle || []; | ||
adsbygoogle.push({}); | ||
}); | ||
|
||
return props.adsense && ( | ||
<ins class="adsbygoogle" | ||
style="display:inline-block;width:728px;height:90px" | ||
data-ad-client="ca-pub-9224018205432249" | ||
data-ad-slot="8951211842"></ins> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { CommonProps } from "utils/common.ts"; | ||
import { useEffect } from "preact/hooks"; | ||
|
||
interface MultiPlexAdProps extends CommonProps { | ||
cols: number; | ||
} | ||
|
||
export default function MultiPlexAd(props: MultiPlexAdProps) { | ||
|
||
useEffect(() => { | ||
// deno-lint-ignore no-explicit-any | ||
const adsbygoogle = (window as unknown as any).adsbygoogle || []; | ||
adsbygoogle.push({}); | ||
}); | ||
|
||
return props.adsense && ( | ||
<div class={`col-lg-${props.cols} m-0 p-0`}> | ||
<div class="mw-full m-0 p-0 mr-20 mt-20"> | ||
<div class="card p-0 m-0 text-center"> | ||
<ins class="adsbygoogle" | ||
style="display:block" | ||
data-ad-format="autorelaxed" | ||
data-ad-client="ca-pub-9224018205432249" | ||
data-ad-slot="9853677086"></ins> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,4 +78,9 @@ | |
background: #333435; | ||
border-radius: 4px; | ||
padding:3px; | ||
} | ||
|
||
/* Ads */ | ||
.display-height { | ||
max-height: 70px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters