PageSourceSearch

https://virginmobile.pl/static/js/common/block/Faq.js

js virginmobile.pl collected 2026-09-24 23:38:12 UTC 1,478 bytes, 44 lines download raw bytes

1wecode.namespace("wecode.virgin.block");
2
3wecode.virgin.block.Faq = new wecode.Class
4({
5    extends: wecode.Service,
6
7    init: function (app)
8    {
9        this.parent(app);
10        this.__build();
11    },
12
13    __build: function ()
14    {
15        if(jQuery("li.accordion.visible").length)
16        {
17            jQuery("body,html")
18                .animate({
19                    "scrollTop": jQuery("li.accordion.visible").offset().top - 150
20                });
21        }
22        jQuery("section.faq.expandable li[data-question-slug] h2 a, section.faq.expandable li[data-question-slug] div.heading2 a").on("click", jQuery.proxy(this.__handleChangeQuestion, this));
23    },
24
25    __handleChangeQuestion: function(e)
26    {
27        e.preventDefault();
28        if(jQuery(e.target).parents("li").first().hasClass("visible"))
29            jQuery(e.target).parents("li").first().removeClass("visible");
30        else
31        {
32            jQuery("li.visible").removeClass("visible");
33            jQuery(e.target).parents("li").first().addClass("visible");
34            history.pushState({state: jQuery(e.target).parents("li").first().data("question-slug")}, jQuery(e.target).text(), jQuery(e.target).attr("href"));
35
36            jQuery("html, body").animate({scrollTop: jQuery("li.visible").offset().top - 100}, function()
37            {
38                setTimeout( function() {
39                    jQuery(window).trigger("resize");
40                }, 500);
41            });
42        }
43    }
44});

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.