PageSourceSearch

https://www.reelshort.com/fandom/wp-content/themes/fountain-blog/js/custom-script.js?ver=20151215

js reelshort.com collected 2026-10-01 12:30:10 UTC 2,006 bytes, 60 lines download raw bytes

1jQuery(document).ready(function($) {
2
3	// Navigation
4
5	$('#masthead').find( '.menu-item-has-children > a, .page_item_has_children > a' ).after( '<button class="submenu-button"></button>' );
6
7	$('.submenu-button').click( function() {
8		$(this).parent().find('.sub-menu').first().slideToggle();
9	});
10
11	$('.main-navigation-toggle').click( function() {
12		$(this).toggleClass('menu-opened');
13		$('.nav-menu').slideToggle();
14	});
15
16	if( $(window).width() < 1024 ) {
17        $('.nav-menu').find("li").last().bind( 'keydown', function(e) {
18            if( !e.shiftKey && e.which === 9 ) {
19                e.preventDefault();
20                $('.site-header').find('.main-navigation-toggle').focus();
21            }
22        });
23    }
24    else {
25        $('.nav-menu').find("li").unbind('keydown');
26    }
27
28    $(window).resize(function() {
29        if( $(window).width() < 1024 ) {
30            $('.nav-menu').find("li").last().bind( 'keydown', function(e) {
31                if( !e.shiftKey && e.which === 9 ) {
32                    e.preventDefault();
33                    $('.site-header').find('.main-navigation-toggle').focus();
34                }
35            });
36        }
37        else {
38            $('.nav-menu').find("li").unbind('keydown');
39        }
40    });
41
42    $('.main-navigation-toggle').on('keydown', function (e) {
43        var tabKey    = e.keyCode === 9;
44        var shiftKey  = e.shiftKey;
45
46        if( $('.main-navigation-toggle').hasClass('menu-opened') ) {
47            if ( shiftKey && tabKey ) {
48                e.preventDefault();
49                $('.nav-menu').find("li:last-child > a").focus();
50                $('.nav-menu').find("li").last().bind( 'keydown', function(e) {
51                    if( !e.shiftKey && e.which === 9 ) {
52                        e.preventDefault();
53                        $('.site-header').find('.main-navigation-toggle').focus();
54                    }
55                });
56            }
57        }
58    });
59
60});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.