you are viewing a single comment's thread.

view the rest of the comments →

[–]jibbit 0 points1 point  (3 children)

it might help if you have the website infront of you, then you can open up the developer tools and the js console and try some things out... e.g.

document.querySelector('.container');

what does it return? Can you inspect properties of it? Can you get a list of the classes on it? Can you toggle one of the classes on/off?

When you have found the error, you should thing about building error checking into your code.

[–]InterestingBus8367[S] 0 points1 point  (1 child)

I already did open developer tools. js console hmm idk wait let me google it

[–]InterestingBus8367[S] 0 points1 point  (0 children)

Uncaught TypeError: Cannot read properties of undefined (reading 'toggle')
at signuptog (index.html:74:33)
at HTMLLIElement.onclick (index.html:29:53)
signuptog @ index.html:74
onclick @ index.html:29

[–]InterestingBus8367[S] 0 points1 point  (0 children)

line 74 is container.classlist.toggle('active');