PageSourceSearch

https://www.franklincanyongolf.com/templates/yoo_avanti/js/theme.js

js franklincanyongolf.com collected 2026-10-04 09:54:58 UTC 1,336 bytes, 49 lines download raw bytes

1/* Copyright (C) YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */
2
3jQuery(function($) {
4
5    // Options
6    var config = $('html').data('config') || {},
7        navbar = $('.tm-navbar');
8
9    // Centered dropdown
10    navbar.find('.uk-dropdown').addClass('uk-dropdown-center');
11
12    // Trigger focus on search input
13    $(".tm-search-button").on('click', UIkit.Utils.debounce(function () {
14        this.parentNode.querySelector('.uk-search-field').focus();
15    }, 300));
16
17    // Social buttons
18    $('article[data-permalink]').socialButtons(config);
19
20    // Delete grid-divider border on first item in row
21    $('.uk-grid.tm-grid-divider').each(function() {
22        var $this = $(this),
23            items = $this.children().filter(':visible'), pos;
24
25        if (items.length > 0) {
26            pos_cache = items.first().position().left;
27
28            UIkit.$win.on('load resize', UIkit.Utils.debounce((function(fn) {
29
30                fn = function () {
31
32                    items.each(function() {
33
34                        pos = $(this).position();
35
36                        $(this)[pos.left == pos_cache ? 'addClass':'removeClass']('uk-row-first');
37                    });
38
39                    return fn;
40                }
41
42                return fn();
43
44            })(), 80));
45        }
46
47    });
48
49});

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.