Random Quote Generator Challenge

Hey guys, I finished my random quote challenge and put it on GitHub pages because I couldn’t get it to work on CodePen at all (problem using a background image hosted on various sites - none worked). Here’s the public link and the code is viewable there, too. Thanks.

I can’t even find the Build challenge in the curriculum anymore since the changes.

https://silvanet.github.io/testFamousQuotes/

The project is now here:
https://learn.freecodecamp.org/front-end-libraries/front-end-libraries-projects/build-a-random-quote-machine

Make sure to add the link to the testing library: https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js

Then it should check you passed.

I’m not sure I understand your reply. I clicked on the project link and pasted my GitHub pages solution link, then submitted it.

Do I have to do something with that bundle.js file?

The JS file puts a test checker on your page. You can use to make sure that your site passes all the user stories.

Directions are list on the project page.

For example https://codepen.io/Tirjasdyn/pen/qKmwVV

1 Like

Oh, cool. So, should I just make a page (pen) specifically for that?

I forked it and added Michelle Norton’s name to the title.
But problems. I had already passed the Tribute and Portfolios and this doesn’t pass them.

When I submitted them I got the check OK, successful & go on to the next challenge notification.

This fails all of them.

Do I have to put this code on my pages? I don’t get it.

When you say the js file puts a test checker on my page, there is no js in that example at all. What js file? The bundle.js one?

I’m not getting how to use that. I think I’m not using it right at all.

Code Puts links library’s in the settings. You don’t need to fork my page. That’s just and example to show you how the JS file works once you link it.

You need to link this file: https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js in your own page on GitHub. Like this:

<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

See the FCC project page I linked earlier, directions are at the bottom.
https://learn.freecodecamp.org/front-end-libraries/front-end-libraries-projects/build-a-random-quote-machine/