PageSourceSearch

https://licor.me/js/index.js

js licor.me collected 2026-09-28 07:14:04 UTC 1,715 bytes, 56 lines download raw bytes

1/**
2 * Main JS file for Casper behaviours
3 */
4
5/* globals jQuery, document */
6(function ($, undefined) {
7    "use strict";
8
9    var $document = $(document);
10
11    $document.ready(function () {
12
13        var $postContent = $(".post-content");
14        $postContent.fitVids();
15
16        $(".scroll-down").arctic_scroll();
17
18        $(".menu-button[href='#'], .nav-cover, .nav-close").on("click", function(e){
19            e.preventDefault();
20            $("body").toggleClass("nav-opened nav-closed");
21        });
22
23    });
24
25    // Arctic Scroll by Paul Adam Davis
26    // https://github.com/PaulAdamDavis/Arctic-Scroll
27    $.fn.arctic_scroll = function (options) {
28
29        var defaults = {
30            elem: $(this),
31            speed: 500
32        },
33
34        allOptions = $.extend(defaults, options);
35
36        allOptions.elem.click(function (event) {
37            event.preventDefault();
38            var $this = $(this),
39                $htmlBody = $('html, body'),
40                offset = ($this.attr('data-offset')) ? $this.attr('data-offset') : false,
41                position = ($this.attr('data-position')) ? $this.attr('data-position') : false,
42                toMove;
43
44            if (offset) {
45                toMove = parseInt(offset);
46                $htmlBody.stop(true, false).animate({scrollTop: ($(this.hash).offset().top + toMove) }, allOptions.speed);
47            } else if (position) {
48                toMove = parseInt(position);
49                $htmlBody.stop(true, false).animate({scrollTop: toMove }, allOptions.speed);
50            } else {
51                $htmlBody.stop(true, false).animate({scrollTop: ($(this.hash).offset().top) }, allOptions.speed);
52            }
53        });
54
55    };
56})(jQuery);

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.