From 5bf66662a9bdd62c5bccab15e607cd95cfb8fcab Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Mon, 27 Jul 2020 10:05:23 +0200 Subject: Removed wordpress and phpmyadmin, my server doesn't handle it well and it brings shame on my familly --- .../twentysixteen/js/keyboard-image-navigation.js | 26 ---------------------- 1 file changed, 26 deletions(-) delete mode 100644 srcs/wordpress/wp-content/themes/twentysixteen/js/keyboard-image-navigation.js (limited to 'srcs/wordpress/wp-content/themes/twentysixteen/js/keyboard-image-navigation.js') diff --git a/srcs/wordpress/wp-content/themes/twentysixteen/js/keyboard-image-navigation.js b/srcs/wordpress/wp-content/themes/twentysixteen/js/keyboard-image-navigation.js deleted file mode 100644 index b10927c..0000000 --- a/srcs/wordpress/wp-content/themes/twentysixteen/js/keyboard-image-navigation.js +++ /dev/null @@ -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 ); -- cgit