Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
move client only farther out
Browse files Browse the repository at this point in the history
  • Loading branch information
walsh9 committed Apr 21, 2022
1 parent e00f8f9 commit c5e01c6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
14 changes: 6 additions & 8 deletions components/GothamistPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
v-show="!playerDismissed"
class="persistent-player-wrapper"
>
<client-only>
<collapsible-message
prefix="player-welcome"
@collapse="handleWelcomeMessageCollapsed"
>
You can now listen to WNYC on Gothamist! Let us know what you think of this experimental feature <a href="https://surveys.hotjar.com/e0b0fda5-4c70-43b4-bea5-32bca9fd25f8" target="_blank" rel="noopener noreferrer">here</a>.
</collapsible-message>
</client-only>
<collapsible-message
prefix="player-welcome"
@collapse="handleWelcomeMessageCollapsed"
>
You can now listen to WNYC on Gothamist! Let us know what you think of this experimental feature <a href="https://surveys.hotjar.com/e0b0fda5-4c70-43b4-bea5-32bca9fd25f8" target="_blank" rel="noopener noreferrer">here</a>.
</collapsible-message>
<div
class="player-row u-color-group-dark"
>
Expand Down
24 changes: 13 additions & 11 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,19 @@
</main>
<gothamist-footer v-if="!isGallery" />
<!-- audio player -->
<transition name="fade">
<gothamist-player
v-if="$features.enabled['experiment-audio-player']"
class="gothamist-player-wrapper"
@welcome-message-dismissed="gaEvent('Livestream', 'Welcome Message Dismissed')"
@player-dismissed="gaEvent('Livestream', 'Player Dismissed')"
@play-clicked="gaEvent('Livestream', 'Livestream Started')"
@pause-clicked="gaEvent('Livestream', 'Livestream Paused')"
@resume-clicked="gaEvent('Livestream', 'Livestream Resumed')"
/>
</transition>
<client-only>
<transition name="fade">
<gothamist-player
v-if="$features.enabled['experiment-audio-player']"
class="gothamist-player-wrapper"
@welcome-message-dismissed="gaEvent('Livestream', 'Welcome Message Dismissed')"
@player-dismissed="gaEvent('Livestream', 'Player Dismissed')"
@play-clicked="gaEvent('Livestream', 'Livestream Started')"
@pause-clicked="gaEvent('Livestream', 'Livestream Paused')"
@resume-clicked="gaEvent('Livestream', 'Livestream Resumed')"
/>
</transition>
</client-only>
<!-- audio player -->
</div>
</template>
Expand Down

0 comments on commit c5e01c6

Please sign in to comment.