Move all files to taking-flight-with-tailwind-css/demo/wordcamp-bristol-2019/
This commit is contained in:
parent
80c38777dc
commit
7cc2622551
1874 changed files with 0 additions and 0 deletions
|
|
@ -1,26 +0,0 @@
|
|||
/**
|
||||
* Twenty Sixteen keyboard support for image navigation.
|
||||
*/
|
||||
|
||||
( function( $ ) {
|
||||
$( document ).on( 'keydown.twentysixteen', function( e ) {
|
||||
var url = false;
|
||||
|
||||
// Left arrow key code.
|
||||
if ( 37 === e.which ) {
|
||||
url = $( '.nav-previous a' ).attr( 'href' );
|
||||
|
||||
// Right arrow key code.
|
||||
} else if ( 39 === e.which ) {
|
||||
url = $( '.nav-next a' ).attr( 'href' );
|
||||
|
||||
// Other key code.
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( url && ! $( 'textarea, input' ).is( ':focus' ) ) {
|
||||
window.location = url;
|
||||
}
|
||||
} );
|
||||
} )( jQuery );
|
||||
Loading…
Add table
Add a link
Reference in a new issue