Fixed an error found in QA where in-page anchors would work as expected in Chrome, but in FireFox would load another instance of Learn in the iframe. If the user goes back to the challenge, though, the in-page anchors work as expected. Readded <base> and had it point to href='' to get in-page anchors working in both Chrome and FF.
Added a script tag to the header of the page in src/head/index.js via src/head/mathjax.js. Modified Side-Panel.js so that mathematical functions are rendered properly in the Rosetta Code problems. Had to use the CDN because I couldn't get the NPM package working, and a local package like the one used in Arcade Mode would be ignored if put into the public folder. We could probably use that local package if there's a better place to store it.
Since MathJax is set up currently to interpret anything between $...$ or $$...$$ as a math function, we will need to check some of the other problems that use those symbols on the same line.
* Reworked the way that the editor and output are rendered when the browser window / panes are resized horizontally. Moved the ReflexContainer elements into the editors variable to get vertical resizing working. Also, removed the margin-bottom property from the .editor class in classic.css and set overflow to hidden in .react-monaco-editor-container. By doing this it prevents the browser scrollbars from appearing and removes the white space at the bottom of the editor / output panes when scrolling all the way down past the code.
Took the challenge guide from the main repo and reworked it for the Curriculum repo. Moved the
CONTRIBUTING.md file to the root directory. Added an image directory and sample image to more
clearly show how to open a PR and point it to the correct branch, like in the guide in the
main repo.
ISSUES CLOSED: #61
The original test was too rigid, and many users were forced to use one solution, usually map, to
complete the challenge. The test is changed here to allow for multiple solutions to the problem,
including the use of either single or double quotes when naming a class.
BREAKING CHANGE:
None
Added `className='btn-link-social'` to the Update my settings button
element in Profile.jsx so that it's the same width as the other ones on
the settings page.
Closes#17230
Here are a list of style changes made for problems 1-16:
* 2: Centered text
* 6: Centered text and `<sup>` tags
* 8: Centered text
* 9: Centered text, `<var>`, and `<sup>` tags
* 11: Centered text and spacing between number grid and next paragraph
* 12: Tab spacing (padding-left: 4em)
* 14: Centered text, `<var>` tags, and tab spacing (padding-left: 4em)
* 16: `<sup>` tags
BREAKING CHANGE: None
Here are a list of style changes made for problems 1-16:
* 2: Centered text
* 6: Centered text and `<sup>` tags
* 8: Centered text
* 9: Centered text, `<var>`, and `<sup>` tags
* 11: Centered text and spacing between number grid and next paragraph
* 12: Tab spacing (padding-left: 4em)
* 14: Centered text, `<var>` tags, and tab spacing (padding-left: 4em)
* 16: `<sup>` tags
BREAKING CHANGE: None
Here's a list of style changes made for problems 17-26:
*17: Bold tags
*18: Bold tags
*19: ul and li tags for leap year information
*20: var tags and line break
*21: var tags
*22: added code tag
*23: var tags
*24: centered text and var tag
*25: sup tags, tab-like spacing, and CSS grid for spacing
*26: sub, sup, and var tags, and CSS grid for spacing
BREAKING CHANGE: None
Here's a list of style changes made for problems 17-26:
*17: Bold tags
*18: Bold tags
*19: ul and li tags for leap year information
*20: var tags and line break
*21: var tags
*22: added code tag
*23: var tags
*24: centered text and var tag
*25: sup tags, tab-like spacing, and CSS grid for spacing
*26: sub, sup, and var tags, and CSS grid for spacing
BREAKING CHANGE: None
Edited the description to more closely match the spacing and line breaks
from projecteuler.net. Added more tests, updated the challenge seed,
and added a solution from user @elliotjz contributed to the fCC
Arcade Mode.
BREAKING CHANGE: None
Edited the description to more closely match the spacing and line breaks
from projecteuler.net. Added more tests, updated the challenge seed,
and added a solution from user @elliotjz contributed to the fCC
Arcade Mode.
BREAKING CHANGE: None
Changed the name of the function in the challengeSeed from euler49 to the
challenge name. Also added a solution that @elliotjz contributed to the
fCC Arcade Mode.
BREAKING CHANGE: None
Changed the name of the function in the challengeSeed from euler49 to the
challenge name. Also added a solution that @elliotjz contributed to the
fCC Arcade Mode.
BREAKING CHANGE: None
Added `<sup>` tags to the description to make it more like the one on
projecteuler.net. Also added additional tests and a solution.
Here's a solution for QA:
```
```
BREAKING CHANGE: None
Added `<sup>` tags to the description to make it more like the one on
projecteuler.net. Also added additional tests and a solution.
Here's a solution for QA:
```
```
BREAKING CHANGE: None
Updated the problem description with an inline CSS grid, <sup>, and
<var> tags. Also added a solution that user @elliotjz contributed
to the fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description with an inline CSS grid, <sup>, and
<var> tags. Also added a solution that user @elliotjz contributed
to the fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description with <sup> and <var> tags, and centered
some text. Also, added a solution that user @elliotjz contributed to the
fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description with <sup> and <var> tags, and centered
some text. Also, added a solution that user @elliotjz contributed to the
fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description to more closely match the one on the Project Euler page. Also added more tests along with a solution that user @elliotjz contributed to the fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description to more closely match the one on the Project Euler page. Also added more tests along with a solution that user @elliotjz contributed to the fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description with `<val>` tags and improved the
formatting. Also added a solution that user @elliotjz contributed to
the fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description with `<val>` tags and improved the
formatting. Also added a solution that user @elliotjz contributed to
the fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description with <sup> and <sub> tags. Also added a
solution that user @elliotjz contributed to the fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description with <sup> and <sub> tags. Also added a
solution that user @elliotjz contributed to the fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description with <i> tags. Removed a couple of tests
because they seemed too restrictive for the different approaches users
might take when solving this problem. Also added a solution
that user @elliotjz contributed to the fCC Arcade Mode.
BREAKING CHANGE: None
Updated the problem description with <i> tags. Removed a couple of tests
because they seemed too restrictive for the different approaches users
might take when solving this problem. Also added a solution
that user @elliotjz contributed to the fCC Arcade Mode.
BREAKING CHANGE: None
Originally the test would check for the index of a title in an array of
unique challenge titles. However, the index of the title within the
array isn't important for this test, so I simplified the code using
@Bouncey's suggestion in PR #17035.
Also changed grammar for the error that's thrown when a challenge
title isn't a valid string.
BREAKING CHANGE: None
Originally the test would check for the index of a title in an array of
unique challenge titles. However, the index of the title within the
array isn't important for this test, so I simplified the code using
@Bouncey's suggestion in PR #17035.
Also changed grammar for the error that's thrown when a challenge
title isn't a valid string.
BREAKING CHANGE: None
Due to the recent problem with two challenges having the same title, I
added a check for unique titles to the test suite so that hopefully
won't happen again.
Addresses a comment in issue #16906, which was recently closed.
BREAKING CHANGE: None
Closes#16906
Due to the recent problem with two challenges having the same title, I
added a check for unique titles to the test suite so that hopefully
won't happen again.
Addresses a comment in issue #16906, which was recently closed.
BREAKING CHANGE: None
Closes#16906
Added a feature where a motivational quote is randomly selected from a
static list and displayed whenever the user closes all the panes on the
page. Also added a quotes.js file with an array of quote objects and a
function that returns a random quote object when called.
Edit: Forgot to add double quotes to the quote blocks after moving from
test strings to random quote objects from the quotes.js file. Added
them here as HTML encoded left and right double quotes.
Made changes @Bouncey requested.
Made further changes @Bouncey requested. Also added a componentDidUpdate
method to both ensure the quote is only changed when panes open and close,
and also to make sure the new quote is not the same as the one that
was last displayed.
Removed the fCC logo as it was redundant and clashed with the night mode.
Simplified the layout so the quote block is in the middle of the page and
changed the width so that it's more readable. Also added styling to change
the quote text color in night mode.
BREAKING CHANGE: None
Closes#16382
Changed the description to more closely match the one on the Project
Euler page. Also added another test and solution.
Edit: Moved the numTriangle array to the head array to prevent lag.
Edit 2: Forgot to remove numTriangle from the solutions array. Should pass the test now.
BREAKING CHANGE: None
Changed the description to more closely match the one on the Project
Euler page. Also added another test and solution.
Edit: Moved the numTriangle array to the head array to prevent lag.
Edit 2: Forgot to remove numTriangle from the solutions array. Should pass the test now.
BREAKING CHANGE: None
With the recent Reactifying of the profile page, I noticed that some of
the calendar heatmap legend text was missing. This fix changes the text
from the current ['less', '', '', 'more'] back to ['0 items', '1 item',
'2 items', '3 or more items'].
BREAKING CHANGE: None
Added a head section and moved the large names array to it to prevent
the page from lagging. Also removed multiple calls to the challenge
funtion in the challenge seed.
BREAKING CHANGE: None
Added a head section and moved the large names array to it to prevent
the page from lagging. Also removed multiple calls to the challenge
funtion in the challenge seed.
BREAKING CHANGE: None
Removed multiple calls to the challenge function in Project Euler
problems 11 and 14. Also adjusted the spacing of the tests array for
problem 23 to make it consistent with the rest of the file.
BREAKING CHANGE: None
Removed multiple calls to the challenge function in Project Euler
problems 11 and 14. Also adjusted the spacing of the tests array for
problem 23 to make it consistent with the rest of the file.
BREAKING CHANGE: None
Edited the description so the exponents are displayed properly, and
added more tests and a solution.
Amend: Edited the seed so that the challenge function in the seed is called only once.
BREAKING CHANGE: None
Edited the description so the exponents are displayed properly, and
added more tests and a solution.
Amend: Edited the seed so that the challenge function in the seed is called only once.
BREAKING CHANGE: None
Added more tests, a solution, and an image to make the description more
clear. The image is from Project Euler but is rehosted on imgur.
Amend: Edited the seed so that the challenge function in the seed is called only once.
BREAKING CHANGE: None
Added more tests, a solution, and an image to make the description more
clear. The image is from Project Euler but is rehosted on imgur.
Amend: Edited the seed so that the challenge function in the seed is called only once.
BREAKING CHANGE: None
Added a head property to the challenge object and moved the large fiftyDigitNums array to it, preventing the browser from having to re-render it with every keystroke and causing lag. Also fixed a problem where the testNums and fiftyDigitNums arrays were not declared with const properly in my original PR.
BREAKING CHANGE: None
Added a head property to the challenge object and moved the large fiftyDigitNums array to it, preventing the browser from having to re-render it with every keystroke and causing lag. Also fixed a problem where the testNums and fiftyDigitNums arrays were not declared with const properly in my original PR.
BREAKING CHANGE: None
Added tests and a working solution for Project Euler problem 11. Also added some styling to the problem's description to highlight four numbers in red to be more in-line with the description on the projecteuler.net.
Added tests and a working solution for Project Euler problem 11. Also added some styling to the problem's description to highlight four numbers in red to be more in-line with the description on the projecteuler.net.
Noticed that problem 22 was missing from the seed file and decided to
add it along with some additional tests. However, I didn't include a
solution because I would have had to repeat the entire names array in
the solution string.
BREAKING CHANGE: None
Noticed that problem 22 was missing from the seed file and decided to
add it along with some additional tests. However, I didn't include a
solution because I would have had to repeat the entire names array in
the solution string.
BREAKING CHANGE: None
Edited the description and tests so that freeCodeCamp users learn to
write functions that return a similar data structure type each time.
BREAKING CHANGE: None.
Closes#16083
Edited the description and tests so that freeCodeCamp users learn to
write functions that return a similar data structure type each time.
BREAKING CHANGE: None.
Closes#16083
Edited the file so that the loopProtect code, which is in the head of
the iframe on www.freecodecamp.org, is in the same script tag as the
base challenge content that get's rendered to the page. While the
loopProtect code is not rendered to the page like the rest of the
challenge code, it's within the same scope and seems to function
normally.
BREAKING CHANGE: None that I know of, but will keep checking.
Closes#16260
Originally the challenge's example code was a little unclear about what
the * character does. Also, the challenge could be solved without using
the * character.
BREAKING CHANGE: None
Closes#16119
Originally the challenge's example code was a little unclear about what
the * character does. Also, the challenge could be solved without using
the * character.
BREAKING CHANGE: None
Closes#16119
The default text of the legend is confusing given the low range of
values used. Cal-heatmap expects higher legend values, such as [10, 20,
30, 40], rather than [1, 2, 3]. This change will hopefully make the
mouseover text for the legend a little less confusing.
BREAKING CHANGE: None
Closes#16124