improve the live code view

This commit is contained in:
Michael Q Larson
2015-01-22 16:52:43 -08:00
parent 129000a986
commit 95f5581d19
2 changed files with 27 additions and 12 deletions

3
app.js
View File

@ -131,6 +131,7 @@ var trusted = [
'http://localhost:3000', 'http://localhost:3000',
'*.ionicframework.com', '*.ionicframework.com',
'https://syndication.twitter.com', 'https://syndication.twitter.com',
'*.youtube.com',
]; ];
debug(trusted); debug(trusted);
@ -151,7 +152,6 @@ app.use(helmet.contentSecurityPolicy({
'data:', 'data:',
'*.licdn.com', '*.licdn.com',
'*.gravatar.com', '*.gravatar.com',
'*.youtube.com',
'*.akamaihd.net', '*.akamaihd.net',
'graph.facebook.com', 'graph.facebook.com',
'*.githubusercontent.com', '*.githubusercontent.com',
@ -168,7 +168,6 @@ app.use(helmet.contentSecurityPolicy({
'*.vimeo.com', '*.vimeo.com',
'*.twitter.com', '*.twitter.com',
'*.rafflecopter.com', '*.rafflecopter.com',
'*.youtube.com'
].concat(trusted), ].concat(trusted),
reportOnly: false, // set to true if you only want to report errors reportOnly: false, // set to true if you only want to report errors
setAllHeaders: false, // set to true if you want to set all headers setAllHeaders: false, // set to true if you want to set all headers

View File

@ -30,10 +30,14 @@ html(ng-app='profileValidation', lang='en')
a(href="http://twitch.tv/freecodecamp", target='_blank') Twitch.tv channel a(href="http://twitch.tv/freecodecamp", target='_blank') Twitch.tv channel
| . | .
.row .row
.col-xs-8 .col-md-8.col-xs-12
.embed-responsive.embed-responsive-16by9 .embed-responsive.embed-responsive-16by9
iframe(src='http://www.twitch.tv/freecodecamp/embed', frameborder='0', scrolling='no') iframe(src='http://www.twitch.tv/freecodecamp/embed', frameborder='0', scrolling='no')
.col-xs-4 .col-md-4.col-xs-12
.visible-sm.visible-xs
.embed-responsive.embed-responsive-16by9
iframe(src='http://www.twitch.tv/freecodecamp/chat?popout=', frameborder='0', scrolling='no')
.visible-md.visible-lg
.embed-responsive.embed-responsive-twitch-chat .embed-responsive.embed-responsive-twitch-chat
iframe(src='http://www.twitch.tv/freecodecamp/chat?popout=', frameborder='0', scrolling='no') iframe(src='http://www.twitch.tv/freecodecamp/chat?popout=', frameborder='0', scrolling='no')
@ -44,13 +48,25 @@ html(ng-app='profileValidation', lang='en')
.landing-panel-body.text-center .landing-panel-body.text-center
.col-xs-12 .col-xs-12
.embed-responsive.embed-responsive-16by9.big-break .embed-responsive.embed-responsive-16by9.big-break
iframe.embed-responsive-item(src='//www.youtube.com/embed/cBtysq16kqo') iframe.embed-responsive-item(src='//www.youtube.com/embed/_BErpDdmBOw')
h3 link:   h3.wrappable link:  
a(href="http://www.youtube.com/watch/cBtysq16kqo") http://www.youtube.com/watch/cBtysq16kqo a(href="http://www.youtube.com/watch/_BErpDdmBOw") http://www.youtube.com/watch/_BErpDdmBOw
.embed-responsive.embed-responsive-16by9.big-break .embed-responsive.embed-responsive-16by9.big-break
iframe.embed-responsive-item(src='//www.youtube.com/embed/19pP2pvZuBs') iframe.embed-responsive-item(src='//www.youtube.com/embed/Fn9HMn79KH0')
h3 link:   h3.wrappable link:  
a(href="http://www.youtube.com/watch/19pP2pvZuBs") http://www.youtube.com/watch/19pP2pvZuBs a(href="http://www.youtube.com/watch/Fn9HMn79KH0") http://www.youtube.com/watch/Fn9HMn79KH0
.embed-responsive.embed-responsive-16by9.big-break
iframe.embed-responsive-item(src='//www.youtube.com/embed/S7iRBZJwOAs')
h3.wrappable link:  
a(href="http://www.youtube.com/watch/S7iRBZJwOAs") http://www.youtube.com/watch/S7iRBZJwOAs
.embed-responsive.embed-responsive-16by9.big-break
iframe.embed-responsive-item(src='//www.youtube.com/embed/BHNRg39ZblE')
h3.wrappable link:  
a(href="http://www.youtube.com/watch/BHNRg39ZblE") http://www.youtube.com/watch/BHNRg39ZblE
.embed-responsive.embed-responsive-16by9.big-break
iframe.embed-responsive-item(src='//www.youtube.com/embed/YDfkHlDmehA')
h3.wrappable link:  
a(href="http://www.youtube.com/watch/YDfkHlDmehA") http://www.youtube.com/watch/YDfkHlDmehA
h3 Got 3 minutes? Learn to code with us! h3 Got 3 minutes? Learn to code with us!
a.btn.btn-cta.signup-btn.btn-primary(href="/login") Start learning to code (it's free) a.btn.btn-cta.signup-btn.btn-primary(href="/login") Start learning to code (it's free)
br br