Merge branch 'master' of https://github.com/FreeCodeCamp/freecodecamp
This commit is contained in:
@@ -130,7 +130,7 @@ List of Packages
|
|||||||
| passport-linkedin-oauth2 | Sign-in with LinkedIn plugin. |
|
| 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. |
|
| passport-oauth | Allows you to set up your own OAuth 1.0a and OAuth 2.0 strategies. |
|
||||||
| request | Simplified HTTP request library. |
|
| 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. |
|
| uglify-js | Dependency for connect-assets library to minify JS. |
|
||||||
| mocha | Test framework. |
|
| mocha | Test framework. |
|
||||||
| chai | BDD/TDD assertion library. |
|
| chai | BDD/TDD assertion library. |
|
||||||
|
3046
public/js/lib/moment/moment.js
Normal file
3046
public/js/lib/moment/moment.js
Normal file
File diff suppressed because it is too large
Load Diff
16
public/js/lib/moment/nextTuesday.js
Normal file
16
public/js/lib/moment/nextTuesday.js
Normal 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;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@@ -1,8 +1,12 @@
|
|||||||
extends ../layout-wide
|
extends ../layout-wide
|
||||||
block content
|
block content
|
||||||
|
|
||||||
.text-center
|
.text-center
|
||||||
h1 Live Pair Programming
|
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
|
h2 Watch the live stream below or on our
|
||||||
a(href="http://twitch.tv/freecodecamp", target='_blank') Twitch.tv channel
|
a(href="http://twitch.tv/freecodecamp", target='_blank') Twitch.tv channel
|
||||||
| .
|
| .
|
||||||
@@ -46,3 +50,7 @@ block content
|
|||||||
br
|
br
|
||||||
br
|
br
|
||||||
br
|
br
|
||||||
|
script(src="/js/lib/moment/moment.js")
|
||||||
|
script(src="/js/lib/moment/nextTuesday.js")
|
||||||
|
script.
|
||||||
|
$('#next-session').text(nextSession());
|
||||||
|
Reference in New Issue
Block a user