Project

General

Profile

1
/* Copyright (C) YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */
2

    
3
jQuery(function($) {
4

    
5
    var config = $('html').data('config') || {};
6

    
7
    // Social buttons
8
    $('article[data-permalink]').socialButtons(config);
9

    
10
    // fit footer
11
    (function(main, meta, fn){
12

    
13
        if (!main.length) return;
14

    
15
        fn = function() {
16

    
17
            main.css('min-height','');
18

    
19
            meta = document.body.getBoundingClientRect();
20

    
21
            if (meta.height <= window.innerHeight) {
22
                main.css('min-height', (main.outerHeight() + (window.innerHeight - meta.height))+'px');
23
            }
24

    
25
            return fn;
26
        };
27

    
28
        UIkit.$win.on('load resize', fn());
29

    
30
    })($('#tm-middle'));
31

    
32
});
(2-2/4)