-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
author jean rodriguez <[email protected]> 1551980917 -0500 committer jean rodriguez <[email protected]> 1552514592 -0400 feedbacks
- Loading branch information
1 parent
fa81bda
commit 02d55f9
Showing
11 changed files
with
101 additions
and
116 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
["CLAY_LOG_PRETTY","LOG","NODE_DEBUG","NODE_ENV","JSONP_CLIENT_ENABLE_LOCAL_SUPPORT","SUPERAGENT_MOCK","CLAY_ACCESS_KEY","ELASTIC_PREFIX","YOUTUBE_API_KEY"] | ||
["ELASTIC_PREFIX","NODE_DEBUG"] |
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 |
---|---|---|
@@ -1,53 +1,53 @@ | ||
{{ set 'uniquePlayerID' (randomString 'youtube-player-') }} | ||
{{#ifAny @root.locals.edit videoValid}} | ||
<div data-uri="{{ default _ref _self }}" | ||
class="youtube{{if @root.locals.edit ' edit-mode'}}{{ if playerBorderTop ' border-top' }} {{ videoSize }} {{ videoType }}" | ||
data-element-id="{{ uniquePlayerID }}" | ||
data-video-id="{{ videoId }}" | ||
data-autoplay-next-video="{{ autoPlayNextVideo }}" | ||
data-autoplay-video="{{ autoPlay }}" | ||
data-playlist="{{ videoPlaylist }}" | ||
data-track-video-type="{{ videoType }}" | ||
data-track-video-location="{{ videoLocation }}" | ||
data-track-video-title="{{ videoTitle }}" | ||
data-track-video-duration="{{ videoDuration }}" | ||
data-track-channel-name="{{ channelName }}" | ||
data-editable="inline" | ||
data-custom-play="{{ customPlay }}" | ||
data-origsrc="https://www.youtube.com/watch?v={{ videoId }}"> | ||
{{#if playerBorderTopCTA }} | ||
<style> | ||
.youtube[data-uri="{{ default _ref _self }}"].border-top:before { | ||
content: '{{ playerBorderTopCTA }}'; | ||
} | ||
</style> | ||
{{/if}} | ||
<div data-uri="{{ default _ref _self }}" | ||
class="youtube{{if @root.locals.edit ' edit-mode'}}{{ if playerBorderTop ' border-top' }} {{ videoSize }} {{ videoType }}" | ||
data-element-id="{{ uniquePlayerID }}" | ||
data-video-id="{{ videoId }}" | ||
data-autoplay-next-video="{{ autoPlayNextVideo }}" | ||
data-autoplay-video="{{ autoPlay }}" | ||
data-playlist="{{ videoPlaylist }}" | ||
data-track-video-type="{{ videoType }}" | ||
data-track-video-location="{{ videoLocation }}" | ||
data-track-video-title="{{ videoTitle }}" | ||
data-track-video-duration="{{ videoDuration }}" | ||
data-track-channel-name="{{ channelName }}" | ||
data-editable="inline" | ||
data-custom-play="{{ customPlay }}" | ||
data-origsrc="https://www.youtube.com/watch?v={{ videoId }}"> | ||
{{#if playerBorderTopCTA }} | ||
<style> | ||
.youtube[data-uri="{{ default _ref _self }}"].border-top:before { | ||
content: '{{ playerBorderTopCTA }}'; | ||
} | ||
</style> | ||
{{/if}} | ||
|
||
<div class="player-wrapper"> | ||
{{#unless @root.locals.edit}} | ||
<div class="player"> | ||
{{!-- The <iframe> (and video player) will replace this <div> tag. --}} | ||
<div id="{{ uniquePlayerID }}"></div> | ||
</div> | ||
{{else}} | ||
{{#unless videoValid}} | ||
<div data-placeholder="videoValid"></div> | ||
<div class="player-wrapper"> | ||
{{#unless @root.locals.edit}} | ||
<div class="player"> | ||
{{!-- The <iframe> (and video player) will replace this <div> tag. --}} | ||
<div id="{{ uniquePlayerID }}"></div> | ||
</div> | ||
{{else}} | ||
{{#if videoThumbnail}} | ||
<img class="youtube-video-preview" src="{{ videoThumbnail }}" alt=""> | ||
{{/if}} | ||
{{#unless videoValid}} | ||
<div data-placeholder="videoValid"></div> | ||
{{else}} | ||
{{#if videoThumbnail}} | ||
<img class="youtube-video-preview" src="{{ videoThumbnail }}" alt=""> | ||
{{/if}} | ||
{{/unless}} | ||
{{/unless}} | ||
{{/unless}} | ||
</div> | ||
</div> | ||
|
||
{{#ifAll playerHeadline (compare videoType 'related')}} | ||
<h2 class="youtube-headline">{{ playerHeadline }}</h2> | ||
{{/ifAll}} | ||
{{#ifAll playerHeadline (compare videoType 'related')}} | ||
<h2 class="youtube-headline">{{ playerHeadline }}</h2> | ||
{{/ifAll}} | ||
|
||
{{#if playerCaption}} | ||
<div class="attribution youtube-caption"> | ||
<span class="caption">{{ playerCaption }}</span> | ||
</div> | ||
{{/if}} | ||
</div> | ||
{{#if playerCaption}} | ||
<div class="attribution youtube-caption"> | ||
<span class="caption">{{ playerCaption }}</span> | ||
</div> | ||
{{/if}} | ||
</div> | ||
{{/ifAny}} |
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
Oops, something went wrong.