Build a Tribute Page - hamburger menu for code testing does not appear

Build a Tribute Page - hamburger menu for code testing does not appear
0.0 0

#1

Tell us what’s happening:

I have completed my tribute page, but no hamburger menu appears, as it does on the upper left in the Borlaug example.

The hamburger menu brings up the test-suite selector and allows tests to be run, so without this, I cannot run tests – which I would like to do before submitting the page.

How can I get this menu to appear?

Thanks…

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/responsive-web-design-projects/build-a-tribute-page/


#2

You have to add :

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

in your html file , in my case it’s always the first line of my html, I don’t know if it changes anything to put it at the end.


#3

Thanks. That worked.

However, the Borlaug example does not contain this line, and it still exhibits the hamburger menu and can run tests. How come?


#4

In code pen, go to your project, and click on settings. Go to javascript. You can add https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js to the form at the bottom of the window.

Code pen emulates everything above the body tag for you so you don’t actually need them. You can just set it up in the settings of your pen.


#5

Thank you. That script addition works, too, just as long as you don’t have @DwightMint’s code line in your html. :slight_smile:

I think I’ll stick with the settings solution, since the test infrastructure is not really part of the page itself and therefore is a bit out of place in the html.

Thanks for all your help,
-P.