change bonfire path to playground and update links, and also add a should example test to playground

pull/51/head
Michael Q Larson 2015-01-24 14:42:34 -08:00
parent c4bd0e4dc3
commit 54c3305281
5 changed files with 8 additions and 6 deletions

2
app.js
View File

@ -255,7 +255,7 @@ app.get(
);
app.all('/account', passportConf.isAuthenticated);
app.get('/account/api', userController.getAccountAngular);
app.get('/bonfire', bonfireController.index);
app.get('/playground', bonfireController.index);
app.get(
'/bonfires/:bonfireNumber',
bonfireController.returnIndividualBonfire

View File

@ -35,6 +35,8 @@ var nonChallengeValue = '/*Welcome to Bonfire, Free Code Camp\'s future CoderByt
'}\n' +
'expect(test()).to.be.a("array");\n\n' +
'assert.deepEqual(test(), [1,4,9]);\n\n' +
'var foo = test();\n' +
'foo.should.be.a("array");\n\n' +
'test();';
var codeOutput = CodeMirror.fromTextArea(document.getElementById("codeOutput"), {
@ -139,8 +141,8 @@ var scrapeTests = function(userJavaScript) {
while (match != null) {
var replacement = '//' + counter + testSalt;
userJavaScript = userJavaScript.substring(0, match.index)
+ replacement
+ userJavaScript.substring(match.index + match[0].length);
+ replacement
+ userJavaScript.substring(match.index + match[0].length);
if (!userTests) {
userTests= [];

View File

@ -17,7 +17,7 @@ block content
.row
#mainEditorPanel.col-sm-12.col-md-7.col-xs-12
.panel.panel-primary.panel-bonfire
.panel-heading.text-center Bonfire Playground
.panel-heading.text-center Playground
.panel.panel-body
form.code
.form-group.codeMirrorView

View File

@ -17,4 +17,4 @@
|  
a.ion-locked(title="Free Code Camp's Privacy Policy", href="/privacy")
|  
a.ion-code-working(title="Bonfire Coding Playground", href="/bonfire")
a.ion-code-working(title="Bonfire Coding Playground", href="/playground")

View File

@ -29,7 +29,7 @@ nav.navbar.navbar-default.navbar-fixed-top.nav-height
li
a(href='http://forum.freecodecamp.com' target='_blank') Forum
li
a(href='/bonfire') Bonfire
a(href='/bonfires') Bonfires
if !user
li      
li