PageSourceSearch

https://www.brasskangaroo.com/blog/wp-content/themes/latest/js/latest-custom.js?ver=1.0

js brasskangaroo.com collected 2026-10-07 03:41:35 UTC 1,718 bytes, 67 lines download raw bytes

1/**
2 * Latest Custom JS
3 *
4 * @package Latest
5 *
6 * Distributed under the MIT license - http://opensource.org/licenses/MIT
7 */
8jQuery(document).ready(function($){
9    // Defining a function to set size for page title padding if we have a very large primary menu
10    function fullscreen(){
11
12        var topbarheight = $('#top-bar').outerHeight();
13        topbarheight = parseInt(topbarheight);
14
15        if ( topbarheight > 0 ) {
16            jQuery('.toggle-nav').css({
17                'top' : topbarheight + 'px'
18            });
19            jQuery('.site-search').css({
20                'top' : topbarheight + 'px'
21            });
22        }
23
24        if ( ! $('#primary-menu').length ) {
25            jQuery('.toggle-nav').css({
26                'display' : 'none'
27            });
28        }
29
30    }
31  
32    fullscreen();
33
34    // Run the function in case of window resize
35    jQuery(window).resize(function() {
36        fullscreen();         
37    });
38
39});
40
41
42jQuery(function($){
43
44    // Mobile Menu
45    $('#primary-menu .menu-item-has-children').prepend('<span class="sub-trigger"></span>');
46
47    $( '.toggle-nav' ).click( function() {
48        $( '#page' ).toggleClass( 'is-visible' );
49        $( '#masthead' ).toggleClass( 'is-visible' );
50        $( this ).toggleClass( 'is-visible' );
51    });
52    $( '.sub-trigger' ).click( function() {
53        $( this ).toggleClass( 'is-open' );
54        $( this ).siblings( '.sub-menu' ).toggle( 300 );
55    });
56
57});
58
59jQuery(document).ready( function($) {
60    $('#masonry-loop').imagesLoaded(function () {
61        $('#masonry-loop').masonry({
62            itemSelector: '.masonry-entry',
63            gutter: 0,
64            transitionDuration: 0,
65        }).masonry('reloadItems');
66    });
67});

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.