PageSourceSearch

https://wordhurdle.co/themes/word-hurdle/rs/js/footer.js?v=2

js wordhurdle.co collected 2026-10-03 23:43:41 UTC 4,271 bytes, 125 lines download raw bytes

1$(document).ready(function () {
2    $(".button-mobile-menu").on('click', function (e) {
3        let style = $(".mobile-popup").css('left');
4        if (style == "-220px") {
5            $(".line").addClass('active');
6            $(".mobile-popup").css({left: '0'});
7        } else {
8            $(".line").removeClass('active');
9            $(".mobile-popup").css({left: '-220px'});
10        }
11    });
12    $(".navclose").on('click', function (e) {
13        $(".mobile-popup").css({left: '-220px'});
14        $(".line").removeClass('active');
15    });
16    $("#mobile-search").on('click', function () {
17        $(".form-mobile").slideToggle();
18    })
19    $(window).scroll(function () {
20        if ($(this).scrollTop()) {
21            $('#back-to-top').fadeIn();
22        } else {
23            $('#back-to-top').fadeOut();
24        }
25    });
26    $("#back-to-top").click(function () {
27        $("html, body").animate({scrollTop: 0}, 300);
28    });
29    $("#expand").on('click', function () {
30        $("#iframehtml5").addClass("force_full_screen");
31        $("#_exit_full_screen").removeClass('hidden');
32        requestFullScreen(document.body);
33    });
34    $("#_exit_full_screen").on('click', cancelFullScreen);
35    add_plugin();
36});
37function add_plugin() {
38    let url = "/add-plugin.ajax";
39    if (typeof id_game != 'undefined' && typeof url_game != 'undefined') {
40        $.ajax({
41            type: "POST",
42            url: url,
43            data: {id: id_game, url: url_game},
44            success: function (data) {
45                if (data) {
46                    let html = JSON.parse(data);
47                    if (html.html_rate) {
48                        $("#append-rate").html(html.html_rate);
49                    }
50                    if (html.html_comment) {
51                        $("#append-comment").html(html.html_comment);
52                    }
53                }
54            }
55        });
56    }
57}
58
59function paging(p) {
60    $(".gif").removeClass("hidden");
61    var url = '/paging.ajax';
62    $.ajax({
63        type: "POST",
64        url: url,
65        data: {
66            page: p,
67            keywords: keywords,
68            tags_id: tag_id,
69            category_id: category_id,
70            field_order: field_order,
71            order_type: order_type,
72            is_hot: is_hot,
73            is_new: is_new,
74            limit: limit
75        },
76        success: function (xxxx) {
77            $("html, body").animate({scrollTop: 0}, 300);
78            if (xxxx !== '') {
79                $("#ajax-append").html(xxxx);
80                $(".gif").addClass("hidden");
81            }
82        }
83    });
84}
85function requestFullScreen(element) {
86    // Supports most browsers and their versions.
87    var requestMethod = element.requestFullScreen || element.webkitRequestFullScreen || element.mozRequestFullScreen || element.msRequestFullScreen;
88    if (requestMethod) { // Native full screen.
89        requestMethod.call(element);
90    } else if (typeof window.ActiveXObject !== "undefined") { // Older IE.
91        var wscript = new ActiveXObject("WScript.Shell");
92        if (wscript !== null) {
93            wscript.SendKeys("{F11}");
94        }
95    }
96}
97
98function cancelFullScreen() {
99    $("#_exit_full_screen").addClass('hidden');
100    $("#iframehtml5").removeClass("force_full_screen");
101    var requestMethod = document.cancelFullScreen || document.webkitCancelFullScreen || document.mozCancelFullScreen || document.exitFullScreenBtn;
102    if (requestMethod) { // cancel full screen.
103        requestMethod.call(document);
104    } else if (typeof window.ActiveXObject !== "undefined") { // Older IE.
105        var wscript = new ActiveXObject("WScript.Shell");
106        if (wscript !== null) {
107            wscript.SendKeys("{F11}");
108        }
109    }
110}
111
112if (document.addEventListener) {
113    document.addEventListener('webkitfullscreenchange', exitHandler, false);
114    document.addEventListener('mozfullscreenchange', exitHandler, false);
115    document.addEventListener('fullscreenchange', exitHandler, false);
116    document.addEventListener('MSFullscreenChange', exitHandler, false);
117}
118
119function exitHandler() {
120    if (document.webkitIsFullScreen === false
121            || document.mozFullScreen === false
122            || document.msFullscreenElement === false) {
123        cancelFullScreen();
124    }
125}

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.