-
Notifications
You must be signed in to change notification settings - Fork 7
Feat/wunderkind smart tag #184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 5 commits
e62fe16
c609095
7b111af
a0f382f
cad28f1
e32b378
e747a1a
af6a222
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| <script lang="ts"> | ||
| import { onMount } from 'svelte'; | ||
|
|
||
| onMount(() => { | ||
| // Check user login status | ||
| let isLoggedIn = localStorage.getItem('ArcId.USER_PROFILE') !== null; | ||
| if (!isLoggedIn) { | ||
| const script = document.createElement('script'); | ||
| script.textContent = `p | ||
| freestar.config.enabled_slots.push({ | ||
| placementName: 'reuters_1x1_bouncex', | ||
| slotId: 'reuters_1x1_bouncex', | ||
| }); | ||
| `; | ||
| script.setAttribute('data-cfasync', 'false'); | ||
| script.type = 'text/javascript'; | ||
| document.head.appendChild(script); | ||
| } | ||
| }); | ||
| </script> | ||
|
|
||
| <div id="reuters_1x1_bouncex"></div> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you explain if this div displays an ad, how that behaves and how this ad unit interplays with our existing InlineAd component, if at all? E.g., should we prefer this ad unit and fallback to an InlineAd if the user is not logged in? Something else? |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the
phere intentional?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, apologies, that was a mistype. I will rectify that.