PageSourceSearch

https://www.ieyasu.co/wp-content/themes/lp_hrmos/js/functions.js?ver=2014-03-18

js ieyasu.co collected 2026-10-01 13:12:52 UTC 2,540 bytes, 102 lines download raw bytes

1//フッター固定コンテンツ
2$(function(){
3	const ft_fixedpop = $('#ft_fixedpop');    
4	$(window).scroll(function(){
5    if($(this).scrollTop() > 300) {
6      ft_fixedpop.addClass('show');
7    } else {
8      ft_fixedpop.removeClass('show');
9    }
10  });
11});
12
13/**
14 * Functionality specific to Twenty Thirteen.
15 *
16 * Provides helper functions to enhance the theme experience.
17 */
18
19( function( $ ) {
20	var body    = $( 'body' ),
21	    _window = $( window );
22
23	/**
24	 * Adds a top margin to the footer if the sidebar widget area is higher
25	 * than the rest of the page, to help the footer always visually clear
26	 * the sidebar.
27	 */
28	$( function() {
29		if ( body.is( '.sidebar' ) ) {
30			var sidebar   = $( '#secondary .widget-area' ),
31			    secondary = ( 0 === sidebar.length ) ? -40 : sidebar.height(),
32			    margin    = $( '#tertiary .widget-area' ).height() - $( '#content' ).height() - secondary;
33
34			if ( margin > 0 && _window.innerWidth() > 999 ) {
35				$( '#colophon' ).css( 'margin-top', margin + 'px' );
36			}
37		}
38	} );
39
40	/**
41	 * Enables menu toggle for small screens.
42	 */
43	( function() {
44		var nav = $( '#site-navigation' ), button, menu;
45		if ( ! nav ) {
46			return;
47		}
48
49		button = nav.find( '.menu-toggle' );
50		if ( ! button ) {
51			return;
52		}
53
54		// Hide button if menu is missing or empty.
55		menu = nav.find( '.nav-menu' );
56		if ( ! menu || ! menu.children().length ) {
57			button.hide();
58			return;
59		}
60
61		button.on( 'click.twentythirteen', function() {
62			nav.toggleClass( 'toggled-on' );
63		} );
64
65		// Better focus for hidden submenu items for accessibility.
66		menu.find( 'a' ).on( 'focus.twentythirteen blur.twentythirteen', function() {
67			$( this ).parents( '.menu-item, .page_item' ).toggleClass( 'focus' );
68		} );
69	} )();
70
71	/**
72	 * Makes "skip to content" link work correctly in IE9 and Chrome for better
73	 * accessibility.
74	 *
75	 * @link http://www.nczonline.net/blog/2013/01/15/fixing-skip-to-content-links/
76	 */
77	_window.on( 'hashchange.twentythirteen', function() {
78		var element = document.getElementById( location.hash.substring( 1 ) );
79
80		if ( element ) {
81			if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) {
82				element.tabIndex = -1;
83			}
84
85			element.focus();
86		}
87	} );
88
89	/**
90	 * Arranges footer widgets vertically.
91	 */
92	if ( $.isFunction( $.fn.masonry ) ) {
93		var columnWidth = body.is( '.sidebar' ) ? 228 : 245;
94
95		$( '#secondary .widget-area' ).masonry( {
96			itemSelector: '.widget',
97			columnWidth: columnWidth,
98			gutterWidth: 20,
99			isRTL: body.is( '.rtl' )
100		} );
101	}
102} )( jQuery );

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.