PageSourceSearch

https://keniaoutdoor.com/modules/fieldpopupnewsletter/js/init.js

js keniaoutdoor.com collected 2026-09-29 00:12:50 UTC 2,207 bytes, 55 lines download raw bytes

1$(document).ready(function () {
2    if ($.cookie("fieldpopupnewsletter") != "true" && $('body').outerWidth() > 767) {
3        $("#moda_popupnewsletter").modal({show: true});
4        $(".send-reqest").click(function () {
5            var email = $("#newsletter-input-popup").val();
6            $.ajax({
7                type: "POST",
8                headers: {"cache-control": "no-cache"},
9                async: false,
10                url: field_path,
11                data: "name=marek&email=" + email,
12                dataType: "jsonp",
13                jsonp: 'callback',
14                success: function (data) {
15                    if (data)
16                        $(".send-response").html(data);
17                }
18            });
19        });
20        $('#newsletter-input-popup').keypress(function (event) {
21            var keycode = (event.keyCode ? event.keyCode : event.which);
22            if (keycode == '13') {
23                var email = $("#newsletter-input-popup").val();
24                $.ajax({
25                    type: "POST",
26                    headers: {"cache-control": "no-cache"},
27                    async: false,
28                    url: field_path,
29                    data: "name=marek&email=" + email,
30                    dataType: "jsonp",
31                    jsonp: 'callback',
32                    success: function (data) {
33                        if (data)
34                            $(".send-response").html(data);
35                    }
36                });
37                event.preventDefault();
38            }
39        });
40        $("#newsletter_popup_dont_show_again").prop("checked") == false;
41    }
42
43
44    var domain_name = baseUri.replace(baseUri.substring(0, baseUri.indexOf("/") + 2), "");
45    domain_name = domain_name.substring(0, domain_name.indexOf("/"));
46
47    $('#newsletter_popup_dont_show_again').change(function () {
48        if ($(this).is(':checked')) {
49            $.cookie("fieldpopupnewsletter", "true", {'expires': 7, 'domain': domain_name, 'path': '/'});
50        } else {
51            $.cookie("fieldpopupnewsletter", "false", {'expires': -1, 'domain': domain_name, 'path': '/'});
52        }
53    });
54
55});

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.