Skip to content
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
Indicate type of upcoming meeting (SIP or SPP), fixes #917
  • Loading branch information
Philippus committed Jul 31, 2018
commit 32b1f219497fd30c8aff1c70a6e077b42495d8c1
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