PageSourceSearch

https://univ-danubius.ro/plugins/system/qlsmoothscroll/js/qlsmoothscroll.js

js univ-danubius.ro collected 2026-10-02 03:21:21 UTC 1,038 bytes, 27 lines download raw bytes

1/**
2 * @package		plg_system_qlsmoothscroll
3 * @copyright	Copyright (C) 2015 ql.de All rights reserved.
4 * @author 		Mareike Riegel [email protected]
5 * @license		GNU General Public License version 2 or later; see LICENSE.txt
6 */
7jQuery(function($)
8{
9    $(document).ready(function ()
10    {
11        $('a.smoothscroll[href*=#]').click(function ()
12        {
13            if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname)
14            {
15                var $target = $(this.hash);
16                $target = $target.length && $target || $('[id=' + this.hash.slice(1) + ']');
17                if ($target.length)
18                {
19                    var qlTargetOffset = $target.offset().top;
20                    if (0 != qlSiteOffset)qlTargetOffset = qlTargetOffset - qlSiteOffset;
21                    $('html,body').animate({scrollTop: qlTargetOffset}, 1000);
22                    return false;
23                }
24            }
25        });
26    });
27});

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.