PageSourceSearch

https://license.gooutdoorsiowa.com/Scripts/TranslatedSessionTransfer.js

js gooutdoorsiowa.com collected 2026-09-24 11:19:55 UTC 5,359 bytes, 110 lines download raw bytes

1$(document).ready(function () {
2    if (getCookie('TransferCookie') != "" && getCookie('TransferCookie') != null && getCookie('OriginUrlCookie') != "" && getCookie('OriginUrlCookie') != null) {
3        $('#SpanishTransferModal').modal('show');
4
5        var TransferCookie = getCookie('TransferCookie');
6        var OriginUrlCookie = getCookie('OriginUrlCookie');
7        var OriginPathCookie = "";
8
9        OriginPathCookie = OriginUrlCookie.split(".com/");
10        OriginPathCookie = OriginPathCookie[1];
11
12        var url = '/default.aspx/TransferSpanishCookies'
13
14        if (typeof CreateModuleURL === "function") {
15            url = CreateModuleURL(url);
16        }
17        else {
18            url = current_module_url + url;
19        }
20
21        $.ajax({
22            type: "POST",
23            url: url,
24            data: JSON.stringify({ "TransferCookie": TransferCookie, "OriginUrlCookie": OriginUrlCookie }),
25            contentType: "application/json; charset=utf-8",
26            dataType: "json",
27            success: function () {
28                //<!--mp_trans_disable_start-->
29                //delete js cookies on success to ensure user isn't caught in a loop
30                var date = new Date(98, 0);
31                if (stateName == "GeorgiaPower") {
32                    document.cookie = "TransferCookie=; expires=" + date + "; domain=gplakes.com; path=/";
33                    document.cookie = "OriginUrlCookie=; expires=" + date + "; domain=gplakes.com; path=/";
34                }
35                else {
36                    document.cookie = "TransferCookie=; expires=" + date + "; domain=gooutdoors" + stateName + ".com; path=/";
37                    document.cookie = "OriginUrlCookie=; expires=" + date + "; domain=gooutdoors" + stateName + ".com; path=/";
38                }
39
40                if (OriginPathCookie != "" && OriginPathCookie != null && OriginPathCookie != "undefined") {
41                    if (english) {
42                        var OriginPathSubStrings = OriginPathCookie.split("/");
43                        
44                        const directories = ["Licensing", "Vessel", "default.aspx"];
45
46                        if (!directories.includes(OriginPathSubStrings[0])) {
47                            OriginPathCookie = OriginPathCookie.substring(OriginPathCookie.indexOf("/") + 1);
48                        }
49                        OriginPathCookie = "/" + OriginPathCookie;
50
51                        if (typeof CreateModuleURL === "function") {
52                            window.location.href = CreateModuleURL(OriginPathCookie);
53                        }
54                        else {
55                            window.location.href = OriginPathCookie;
56                        }
57                    }
58                    else {
59                        OriginPathCookie = "/" + OriginPathCookie;
60
61                        if (typeof CreateModuleURL === "function") {
62                            window.location.href = CreateModuleURL(OriginPathCookie);
63                        }
64                        else {
65                            window.location.href = "/" + directory + OriginPathCookie;
66                        }
67                    }
68                }
69                else {
70                    if (english) {
71                        if (typeof CreateModuleURL === "function") {
72                            window.location.href = CreateModuleURL("/default.aspx");
73                        }
74                        else {
75                            window.location.href = "../default.aspx";
76                        }
77                    }
78                    else {
79                        if (typeof CreateModuleURL === "function") {
80                            window.location.href = CreateModuleURL("/default.aspx");
81                        }
82                        else {
83                            window.location.href = "../" + directory + "/default.aspx";
84                        }
85                    }
86                }
87                $('#SpanishTransferModal').modal('hide');
88                //<!--mp_trans_disable_end-->
89            },
90            error: function () {
91                $('#LangModalTitle').html("Error Transferring Translated Session");
92                $('#LangModalBody').html("An error has occured transferring the session. Please log-in agian.");
93                setTimeout(
94                    function () {
95                        $('#SpanishTransferModal').modal('hide');
96                    }, 7000);
97                //delete js cookies so they don't call again on reload, even if ajax was unsuccessful
98                var date = new Date(98, 0);
99                if (stateName == "GeorgiaPower") {
100                    document.cookie = "TransferCookie=; expires=" + date + "; domain=gplakes.com; path=/";
101                    document.cookie = "OriginUrlCookie=; expires=" + date + "; domain=gplakes.com; path=/";
102                }
103                else {
104                    document.cookie = "TransferCookie=; expires=" + date + "; domain=gooutdoors" + stateName + ".com; path=/";
105                    document.cookie = "OriginUrlCookie=; expires=" + date + "; domain=gooutdoors" + stateName + ".com; path=/";
106                }
107            }
108        });
109    }
110});

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.