fixup
This commit is contained in:
		
							parent
							
								
									03acce7724
								
							
						
					
					
						commit
						0e4ea35029
					
				
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							|  | @ -0,0 +1,22 @@ | |||
| (function($) { | ||||
| 
 | ||||
|     $('.skip-to-content').click(function (e){ | ||||
|         skipTo(); | ||||
|         e.preventDefault(); | ||||
|     }); | ||||
|     $(".skip-to-content").keyup(function (e){ | ||||
|         if(e.which == '13'){ | ||||
|             skipTo(); | ||||
|             e.preventDefault(); | ||||
|         } | ||||
|     }); | ||||
| })(jQuery); | ||||
| 
 | ||||
| 
 | ||||
| function skipTo(){ | ||||
|     $('main').attr("tabindex",0).focus(); | ||||
|     $('html,body').animate({ | ||||
|         scrollTop: ($('main').offset().top) | ||||
|     }); | ||||
| }; | ||||
| 
 | ||||
		Loading…
	
		Reference in New Issue