change bonfire path to playground and update links, and also add a should example test to playground
This commit is contained in:
2
app.js
2
app.js
@ -255,7 +255,7 @@ app.get(
|
|||||||
);
|
);
|
||||||
app.all('/account', passportConf.isAuthenticated);
|
app.all('/account', passportConf.isAuthenticated);
|
||||||
app.get('/account/api', userController.getAccountAngular);
|
app.get('/account/api', userController.getAccountAngular);
|
||||||
app.get('/bonfire', bonfireController.index);
|
app.get('/playground', bonfireController.index);
|
||||||
app.get(
|
app.get(
|
||||||
'/bonfires/:bonfireNumber',
|
'/bonfires/:bonfireNumber',
|
||||||
bonfireController.returnIndividualBonfire
|
bonfireController.returnIndividualBonfire
|
||||||
|
@ -35,6 +35,8 @@ var nonChallengeValue = '/*Welcome to Bonfire, Free Code Camp\'s future CoderByt
|
|||||||
'}\n' +
|
'}\n' +
|
||||||
'expect(test()).to.be.a("array");\n\n' +
|
'expect(test()).to.be.a("array");\n\n' +
|
||||||
'assert.deepEqual(test(), [1,4,9]);\n\n' +
|
'assert.deepEqual(test(), [1,4,9]);\n\n' +
|
||||||
|
'var foo = test();\n' +
|
||||||
|
'foo.should.be.a("array");\n\n' +
|
||||||
'test();';
|
'test();';
|
||||||
|
|
||||||
var codeOutput = CodeMirror.fromTextArea(document.getElementById("codeOutput"), {
|
var codeOutput = CodeMirror.fromTextArea(document.getElementById("codeOutput"), {
|
||||||
@ -139,8 +141,8 @@ var scrapeTests = function(userJavaScript) {
|
|||||||
while (match != null) {
|
while (match != null) {
|
||||||
var replacement = '//' + counter + testSalt;
|
var replacement = '//' + counter + testSalt;
|
||||||
userJavaScript = userJavaScript.substring(0, match.index)
|
userJavaScript = userJavaScript.substring(0, match.index)
|
||||||
+ replacement
|
+ replacement
|
||||||
+ userJavaScript.substring(match.index + match[0].length);
|
+ userJavaScript.substring(match.index + match[0].length);
|
||||||
|
|
||||||
if (!userTests) {
|
if (!userTests) {
|
||||||
userTests= [];
|
userTests= [];
|
||||||
|
@ -17,7 +17,7 @@ block content
|
|||||||
.row
|
.row
|
||||||
#mainEditorPanel.col-sm-12.col-md-7.col-xs-12
|
#mainEditorPanel.col-sm-12.col-md-7.col-xs-12
|
||||||
.panel.panel-primary.panel-bonfire
|
.panel.panel-primary.panel-bonfire
|
||||||
.panel-heading.text-center Bonfire Playground
|
.panel-heading.text-center Playground
|
||||||
.panel.panel-body
|
.panel.panel-body
|
||||||
form.code
|
form.code
|
||||||
.form-group.codeMirrorView
|
.form-group.codeMirrorView
|
||||||
|
@ -17,4 +17,4 @@
|
|||||||
|
|
|
|
||||||
a.ion-locked(title="Free Code Camp's Privacy Policy", href="/privacy")
|
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")
|
@ -29,7 +29,7 @@ nav.navbar.navbar-default.navbar-fixed-top.nav-height
|
|||||||
li
|
li
|
||||||
a(href='http://forum.freecodecamp.com' target='_blank') Forum
|
a(href='http://forum.freecodecamp.com' target='_blank') Forum
|
||||||
li
|
li
|
||||||
a(href='/bonfire') Bonfire
|
a(href='/bonfires') Bonfires
|
||||||
if !user
|
if !user
|
||||||
li
|
li
|
||||||
li
|
li
|
||||||
|
Reference in New Issue
Block a user