PHP 8.1.33
Preview: keyboard-image-navigation.js Size: 487 B
/home/jambtst2015/public_html/ida.org.ng/wp-content/themes/twentyfifteen/js/keyboard-image-navigation.js

/**
 * Twenty Fifteen keyboard support for image navigation.
 */

( function( $ ) {
	$( document ).on( 'keydown.twentyfifteen', function( e ) {
		var url = false;

		// Left arrow key code.
		if ( e.which === 37 ) {
			url = $( '.nav-previous a' ).attr( 'href' );

		// Right arrow key code.
		} else if ( e.which === 39 ) {
			url = $( '.nav-next a' ).attr( 'href' );
		}

		if ( url && ( ! $( 'textarea, input' ).is( ':focus' ) ) ) {
			window.location = url;
		}
	} );
} )( jQuery );

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
123 B lrw-r--r-- 2024-11-22 17:53:10
Edit Download
2.85 KB lrw-r--r-- 2024-11-22 17:53:10
Edit Download
832 B lrw-r--r-- 2024-11-22 17:53:10
Edit Download
4.37 KB lrw-r--r-- 2024-11-22 17:53:10
Edit Download
2.38 KB lrw-r--r-- 2024-11-22 17:53:10
Edit Download
487 B lrw-r--r-- 2024-11-22 17:53:10
Edit Download
686 B lrw-r--r-- 2024-11-22 17:53:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).