Skip to content

Indicate type of upcoming meeting (SIP or SPP) #1114

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

Merged
merged 1 commit into from
Aug 1, 2018
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
8 changes: 5 additions & 3 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,18 @@

// if there indeed are upcoming meetings, display the next one
if (data.items.length > 0) {

// YouTube video ID for the next upcoming SIP meeting
// YouTube video ID for the next upcoming SIP/SPP meeting
var videoId = data.items[0].id.videoId;

$.getJSON(vidQuery + videoId, function(vidData) {
if (vidData.items.length > 0) {
var result = vidData.items[0].liveStreamingDetails.scheduledStartTime;
var startTime = moment(result).format("dddd, MMMM Do YYYY, ha");

var meetingTitle = moment(result).format("MMMM YYYY") + " SIP Meeting";
var sipOrSpp = "SIP";
if (data.items[0].snippet.title.indexOf("SPP") !== -1) sipOrSpp = "SPP";

var meetingTitle = moment(result).format("MMMM YYYY") + " " + sipOrSpp + " Meeting";
var href = "https://www.youtube.com/watch?v=" + videoId;
var a = document.createElement('a');
$(a).attr('href', href).text(meetingTitle);
Expand Down
2 changes: 1 addition & 1 deletion _layouts/sips.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h5 class="contents" style="line-height: 1.1; margin-bottom: 18px;">Scala Improv
<div style="text-align: center; margin-bottom: 24px;">
<a href="{{ site.baseurl }}/sips/all.html" class="button">View all SIPs</a>
</div>
<h5 class="contents" style="margin-bottom: 0;">SIP Meetings</h5>
<h5 class="contents" style="margin-bottom: 0;">SIP/SPP Meetings</h5>
<div id="sip-meetings">
<div id="upcoming-meeting">
<h6>Next meeting:</h6>
Expand Down