PageSourceSearch

https://www.pavlice.cz/templates/lt_news/js/scroll.js

js pavlice.cz collected 2026-10-02 21:47:52 UTC 1,685 bytes, 58 lines download raw bytes

1/**
2 * @package Helix Framework
3 * @author JoomShaper http://www.joomshaper.com
4 * @copyright Copyright (c) 2010 - 2013 JoomShaper
5 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
6*/
7
8jQuery(function($){
9    var $body = $('body'),
10    $wrapper = $('.body-innerwrapper'),
11    $toggler = $('#offcanvas-toggler'),
12    $close = $('#sp-main-body'),
13    $offCanvas = $('.offcanvas-menu');
14
15
16    $close.on('click', function(event){
17        offCanvasClose();
18    });
19
20    var offCanvasShow = function(){
21        $body.addClass('offcanvas');
22        $wrapper.on('click',offCanvasClose);
23        $close.on('click',offCanvasClose);
24        $offCanvas.on('click',stopBubble);
25
26    };
27
28    var offCanvasClose = function(){
29        $body.removeClass('offcanvas');
30        $wrapper.off('click',offCanvasClose);
31        $close.off('click',offCanvasClose);
32        $offCanvas.off('click',stopBubble);
33    };
34
35    var stopBubble = function (e) {
36        e.stopPropagation();
37        return true;
38    };
39    
40    $menu_items = $('ul.sp-megamenu-parent > li.sp-menu-item');
41    $('ul.sp-megamenu-parent > li.sp-menu-item a').click(function(event) {
42        var target = $(this).prop('hash');
43        if(target) {
44            event.preventDefault();
45
46            $menu_items.removeClass('active');
47            $(this).parent().addClass('active');
48
49            $('html, body').animate({
50                scrollTop: $(target).offset().top - $('#sp-top-bar').height()
51            }, 500);
52        }
53    });
54    //scrollspy
55    $('[data-spy="scroll"]').each(function () {
56        var $spy = $(this).scrollspy('refresh')
57    });
58});

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.