links iterated through on the page. TODO formatting and adding more data.
parent
0bf68fea5f
commit
dbc57dd0cb
|
@ -112,6 +112,7 @@ exports.returnIndividualBonfire = function(req, res, next) {
|
||||||
compliment: resources.randomCompliment(),
|
compliment: resources.randomCompliment(),
|
||||||
bonfires: bonfire,
|
bonfires: bonfire,
|
||||||
bonfireHash: bonfire._id,
|
bonfireHash: bonfire._id,
|
||||||
|
MDNkeys: bonfire.MDNlinks,
|
||||||
MDNlinks: getMDNlinks(bonfire.MDNlinks)
|
MDNlinks: getMDNlinks(bonfire.MDNlinks)
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -2,21 +2,23 @@
|
||||||
|
|
||||||
/* These links are for Bonfires. Each key/value pair is used to render a Bonfire with approrpiate links.
|
/* These links are for Bonfires. Each key/value pair is used to render a Bonfire with approrpiate links.
|
||||||
Making an effort to keep methods in alphabetical order will help others behind you.
|
Making an effort to keep methods in alphabetical order will help others behind you.
|
||||||
|
|
||||||
|
The text of the key is what the link text will be, e.g. <a href="https://developer ...">Global Array Object</a>
|
||||||
|
|
||||||
*/
|
*/
|
||||||
var links =
|
var links =
|
||||||
{
|
{
|
||||||
// ========= GLOBAL OBJECTS
|
// ========= GLOBAL OBJECTS
|
||||||
"Array-global" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array",
|
"Global Array Object" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array",
|
||||||
"Object-global" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object",
|
"Global Object" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object",
|
||||||
"String-global" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String",
|
"Global String Object" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String",
|
||||||
|
|
||||||
// ======== STRING METHODS
|
// ======== STRING METHODS
|
||||||
"string-split" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split",
|
"String.split()" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split",
|
||||||
|
|
||||||
// ======== ARRAY METHODS
|
// ======== ARRAY METHODS
|
||||||
"array-join" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join",
|
"Array.join()" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join",
|
||||||
"array-reverse": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse"
|
"Array.reverse()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse"
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = links;
|
module.exports = links;
|
||||||
|
|
|
@ -66,8 +66,8 @@ block content
|
||||||
.bonfire-instructions
|
.bonfire-instructions
|
||||||
p= brief
|
p= brief
|
||||||
#brief-instructions
|
#brief-instructions
|
||||||
#more-info.btn.btn-primary.btn-block.btn-primary-ghost
|
#more-info.btn.btn-primary.btn-block.btn-primary-ghost
|
||||||
span.ion-arrow-down-b
|
span.ion-arrow-down-b
|
||||||
| More information
|
| More information
|
||||||
#long-instructions.row.hide
|
#long-instructions.row.hide
|
||||||
.col-xs-12
|
.col-xs-12
|
||||||
|
@ -76,6 +76,7 @@ block content
|
||||||
#less-info.btn.btn-primary.btn-block.btn-primary-ghost
|
#less-info.btn.btn-primary.btn-block.btn-primary-ghost
|
||||||
span.ion-arrow-up-b
|
span.ion-arrow-up-b
|
||||||
| Less information
|
| Less information
|
||||||
|
|
||||||
#submitButton.btn.btn-primary.btn-big.btn-block Run code (ctrl + enter)
|
#submitButton.btn.btn-primary.btn-big.btn-block Run code (ctrl + enter)
|
||||||
br
|
br
|
||||||
form.code
|
form.code
|
||||||
|
@ -92,7 +93,7 @@ block content
|
||||||
var started = Math.floor(Date.now() / 1000);
|
var started = Math.floor(Date.now() / 1000);
|
||||||
var _ = R;
|
var _ = R;
|
||||||
var dashed = !{JSON.stringify(dashedName)};
|
var dashed = !{JSON.stringify(dashedName)};
|
||||||
var MDNlinks = !{JSON.stringify(MDNlinks)};
|
|
||||||
.col-xs-12.col-sm-12.col-md-8
|
.col-xs-12.col-sm-12.col-md-8
|
||||||
#mainEditorPanel
|
#mainEditorPanel
|
||||||
form.code
|
form.code
|
||||||
|
|
Loading…
Reference in New Issue