Michael Q Larson 2015-02-12 23:06:19 -08:00
commit 2bbb19b6db
4 changed files with 3072 additions and 2 deletions

View File

@ -130,7 +130,7 @@ List of Packages
| passport-linkedin-oauth2 | Sign-in with LinkedIn plugin. |
| passport-oauth | Allows you to set up your own OAuth 1.0a and OAuth 2.0 strategies. |
| request | Simplified HTTP request library. |
| lodash | Handy JavaScript utlities library. |
| lodash | Handy JavaScript utilities library. |
| uglify-js | Dependency for connect-assets library to minify JS. |
| mocha | Test framework. |
| chai | BDD/TDD assertion library. |

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;
}

View File

@ -1,8 +1,12 @@
extends ../layout-wide
block content
.text-center
h1 Live Pair Programming
h2 Our next session will be February 3rd, 2015 at 9 p.m. EST!
h2#next-session
h2 Watch the live stream below or on our  
a(href="http://twitch.tv/freecodecamp", target='_blank') Twitch.tv channel
| .
@ -46,3 +50,7 @@ block content
br
br
br
script(src="/js/lib/moment/moment.js")
script(src="/js/lib/moment/nextTuesday.js")
script.
$('#next-session').text(nextSession());