Merge pull request #91 from phlacin/automaticDating-livepair

Added Moment.js library and time logic to next Live session
This commit is contained in:
Jason Rueckert
2015-02-12 20:44:27 -08:00
4 changed files with 3071 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,16 @@
/**
* Created by jason on 2/11/15.
*/
function nextSession () {
var next = 'Our next session will be ';
var today = moment().day(moment().day());
if (today > moment().day(2)) {
next += moment().day(9).format('dddd, MMMM Do YYYY') + ' at 9PM EST!';
} else {
next += moment().day('Tuesday').format('dddd, MMMM Do YYYY') + ' at 9PM EST!';
}
return next;
}