Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialamadeo brands
15,375 PointsJava script question
I made this script ...
But it tells me that the function is not defined. Any idea any body?
/* Custom Javascript */
console.log('start');
$(window).on("scroll touchmove", function () {
$('#header_nav').toggleClass('tiny', $(document).scrollTop() > 0);
$('#logo').toggleClass('tiny', $(document).scrollTop() > 0);
$('#navbar-nav01').toggleClass('tiny', $(document).scrollTop() > 0);
$('#navbar-small-toggel').toggleClass('tiny', $(document).scrollTop() > 0);
});
console.log('end');
Chyno Deluxe
16,936 PointsChyno Deluxe
16,936 Points//Fixed Code Presentation How to post code