JQuery Events Used for Navbar?

3 replies · opened Mar 5, 2018

Ttpayne03Mar 5, 2018

Hi,

Sorry I am not experienced web designer (I am good C and C++ programmer though). I am learning more modern design with Bootstrap & JQuery.

I understand javascript syntax, but do not know all JQuery events and how to debug the events.

For example, what function is used to change NavBar class on scrolldown on index.html?

What file is that function in? I am working on learning how to debug JQuery in Chrome browser, is there a better tool that captures JQUery events so I could determine what function does what?

Ttpayne03Mar 5, 2018

Also, what does SEMICOLON.header accomplish?

I don't understand what that array of functions accomplishes?

Ttpayne03Mar 5, 2018

headerSchemeChanger: function( activeSlide, onWinLoad ){};

Is the scrolling logic handled by Revolution Slider? I am not familiar with that script (or much JQUERY!)?

Does JQuery handle some of other scrolling logic natively?

I am just trying to understand what is reading the page inputs to activate the JQUERY.

SSemicolon WebSTAFFMar 8, 2018

Hello,

  1. The Functions: SEMICOLON.header.stickyMenuClass() and SEMICOLON.header.removeStickyness() handles the Class change of the Headers on sticky scroll.

  2. SEMICOLON.header is used to group all the JS Functions related to the Header.

  3. The Function: SEMICOLON.slider.headerSchemeChanger(activeSlide, onWinLoad) is used only to Handle the Light/Dark Header Styles (Transparent/Semi-Transparent) for the Canvas Swiper and Revolution Sliders.

The Window Scroll logic is handled by the jQuery natively and can be found at the bottom of the js/functions.js File:

$window.on( 'scroll', function(){

	...

});

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard