PageSourceSearch

https://odesitclub.org/templates/yoo_venice/js/theme.js

js odesitclub.org collected 2026-10-02 23:56:32 UTC 1,931 bytes, 64 lines download raw bytes

1/* Copyright (C) YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */
2
3jQuery(function($) {
4
5    var config = $('html').data('config') || {};
6
7    // Social buttons
8    $('article[data-permalink]').socialButtons(config);
9
10    var navbar    = $('.tm-navbar'),
11        menuItems = navbar.find('.uk-navbar-nav > li'),
12        logo      = $('a.tm-logo'),
13        wrapper   = $('.tm-wrapper'),
14        middle    = $('.tm-block-middle');
15
16    if (menuItems.length && logo.length && config.centerlogo) {
17
18        menuItems.eq(Math.floor(menuItems.length/2) - 1).after('<li class="tm-sticky-logo" data-uk-dropdown><a>...</a></li>').next().html(logo.clone());
19    }
20
21    $.UIkit.$win.on('load resize', function() {
22        var contentHeight = navbar.outerHeight() + wrapper.outerHeight();
23
24        if (contentHeight < $.UIkit.$win.height()) {
25
26            middle.css('min-height', middle.outerHeight());
27
28            $.UIkit.$win.bind('resize', (function(){
29                var setHeight = function() {
30                    middle.outerHeight(parseInt(middle.css('min-height')) + ($.UIkit.$win.height() - contentHeight));
31
32                    return setHeight;
33                };
34
35                return setHeight();
36            })());
37        }
38    });
39
40
41    if (config.fixednav) {
42
43        $.UIkit.sticky($('.tm-navbar'), (function(){
44
45            var fullscreen = $('.tm-fullscreen'),
46                cfg        = {top: 0,media: 960};
47
48            if (fullscreen.length) {
49                navbar.addClass('tm-navbar-fullscreen');
50                cfg.top = fullscreen.innerHeight() * -1;
51                cfg.animation = 'uk-animation-slide-top';
52                cfg.clsactive ='uk-active uk-navbar-attached';
53            }
54            else {
55                navbar.addClass('uk-navbar-attached');
56                cfg.clsactive = 'uk-active';
57            }
58
59            return cfg;
60
61        })());
62    }
63
64});

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.