javascript - Editing navigation of this website -


http://www.madeinebor.com/themes/sliddr/index.htm#/logo

as see website works pressing space bar , other keys, how can change clicking. when ever user click in empty area, navigate next step. or if thats not possible making box in side user click on box navigate?

here navigation part of code:

// prevent default keydown action when 1 of supported key pressed.     document.addeventlistener("keydown", function ( event ) {         if ( event.keycode === 9 || ( event.keycode >= 32 && event.keycode <= 34 ) || (event.keycode >= 37 && event.keycode <= 40) ) {             event.preventdefault();         }     }, false); 

and

document.addeventlistener("keyup", function ( event ) {         if ( event.keycode === 9 || ( event.keycode >= 32 && event.keycode <= 34 ) || (event.keycode >= 37 && event.keycode <= 40) ) {             switch( event.keycode ) {                 case 33: // pg                 case 37: // left                 case 38: //                          api.prev();                          break;                 case 9:  // tab                 case 32: // space                 case 34: // pg down                 case 39: // right                 case 40: // down                          api.next();                          break;             }              event.preventdefault();         }     }, false); 


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -