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

yeet sessions #30

Merged
merged 4 commits into from
Nov 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion config.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@

[pageContext.youtube]
APIKey = "AIzaSyCzI5Gvpq1hPlfjvB81EVc0vLv_11eW7NI"
sessionsPlaylistID = "PLsxUDJzU4VKDudlmlYb-ImFKreFKAfFln"
cinPlaylistID = "PLsxUDJzU4VKAAH1pOogbzJx7pZgd-2zOx"
channelURL = "//youtube.com/ury1350"

Expand Down
30 changes: 0 additions & 30 deletions public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,30 +52,6 @@ function getYoutubeFeed(playlistid, results, htmlid) {
"</div>"
);
}
if (isIndex && htmlid === "#sessions-videos") {
$(htmlid).append(
'<div class="thumbnail-container col-10 col-sm-7 col-md-4 col-lg-3">' +
"<a class=\"ury-card sessions link\" href='/ontap/'>" +
'<div class="ury-card-body">' +
'<div class="ury-card-lg-title">See more...</div>' +
"</div>" +
"</a>" +
"</div>"
);
}
if (isOD && htmlid === "#sessions-videos") {
$(htmlid).append(
'<div class="thumbnail-container col-10 col-sm-7 col-md-4 col-lg-3">' +
'<a class="ury-card sessions link" href="' +
youtubeLink +
'">' +
'<div class="ury-card-body">' +
'<div class="ury-card-lg-title">View more on Youtube...</div>' +
"</div>" +
"</a>" +
"</div>"
);
}
if (isIndex && htmlid === "#cin-videos") {
$(htmlid).append(
'<div class="thumbnail-container col-10 col-sm-7 col-md-4 col-lg-3">' +
Expand Down Expand Up @@ -151,12 +127,6 @@ countdown();

//Youtube slideshow for index page
function onGoogleLoad() {
if (isIndex) {
getYoutubeFeed(youtubeSessionsPlaylistID, 7, "#sessions-videos");
}
if (isOD) {
getYoutubeFeed(youtubeSessionsPlaylistID, 15, "#sessions-videos");
}
if (isIndex) {
getYoutubeFeed(youtubeCINPlaylistID, 7, "#cin-videos");
}
Expand Down
5 changes: 0 additions & 5 deletions sass/base/_backgrounds.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@
background: none !important;
}

.bg-sessions {
background: desaturate($music-purple, 20%);
color: $white;
}

.bg-podcasts {
background: $computing-grey;
color: $white;
Expand Down
4 changes: 0 additions & 4 deletions sass/base/_uryCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ a.ury-card,
}
}

&.sessions {
background: $music-purple;
}

&.cin {
color: $cin-background;
background: $cin-primary;
Expand Down
1 change: 0 additions & 1 deletion structs/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ type Page struct {

type youtube struct {
APIKey string `toml:"apiKey"`
SessionsPlaylistID string `toml:"sessionsPlaylistID"`
CINPlaylistID string `toml:"cinPlaylistID"`
ChannelURL string `toml:"channelURL"`
}
Expand Down
6 changes: 0 additions & 6 deletions views/index.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -127,19 +127,13 @@
</div>
</div>
{{end}}
<div id="index-videos" class="container-fluid container-padded pb-0 bg-sessions">
<h2>Live Music on URY</h2>
<div id="sessions-videos" class="row scroll-horiz pb-3 custom-scrollbar-music thumbnail-slider">
</div>
</div>
{{end}}
{{end}}

{{define "footer-scripts"}}
<!-- Youtube slider script -->
<script>
var youtubeAPIKey = {{.PageContext.Youtube.APIKey}};
var youtubeSessionsPlaylistID = "{{.PageContext.Youtube.SessionsPlaylistID}}";
var youtubeCINPlaylistID = "{{.PageContext.Youtube.CINPlaylistID}}";
var isIndex = true;
var isCIN = {{if .PageContext.CIN}}true{{else}}false{{end}};
Expand Down
23 changes: 0 additions & 23 deletions views/on_demand.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -85,28 +85,5 @@
</div>
</div>
{{end}}
<div id="index-videos" class="container-fluid container-padded bg-sessions">
<div class="row">
<div class="col-12 col-md-8">
<a name="YouTube"></a><h2>Live Music on URY</h2>
</div>
</div>
<div id="sessions-videos" class="row pb-3 thumbnail-grid">
</div>
</div>
{{end}}

{{define "footer-scripts"}}
<!-- Youtube slider script -->
<script>
var youtubeAPIKey = {{.PageContext.Youtube.APIKey}};
var youtubeSessionsPlaylistID = "{{.PageContext.Youtube.SessionsPlaylistID}}";
var youtubeCINPlaylistID = "{{.PageContext.Youtube.CINPlaylistID}}";
var youtubeLink = "{{.PageContext.Youtube.ChannelURL}}";
var isIndex = false;
var isCIN = false;
var isOD = true;
</script>
<script src='{{url "/js/index.js"}}?ver={{ .PageContext.CacheBuster }}'></script>
<script src="https://apis.google.com/js/client.js?onload=onGoogleLoad"></script>
{{end}}
Loading