PageSourceSearch

https://e123.hk/modules/custom/e123_global_js_css/assets/global/js/auth.js?v=3&v=1

js e123.hk collected 2026-09-24 10:00:29 UTC 1,041 bytes, 32 lines download raw bytes

1jQuery(function($) {
2    var x_csrf_token = "";
3
4    if (($(".e123_login_test").length > 0)) {
5        $.ajax({
6            url: "/session/token?_format=json",
7            cache: false,
8            method: "GET",
9            headers: {"Accept": "application/json","Content-Type": "application/json"},
10            success: function(data, status, xhr) {
11                x_csrf_token = data;
12            },
13            error: function(data) {
14                console.log("REST API (GET) run via cookie failed. ");
15            },
16        })
17    }
18
19
20    if (($(".to-olink-logout-page").length) > 0) {
21        setTimeout(() => {
22            $(".to-olink-logout-page").each(function () {
23                // let olink_domain = $(this).attr("olink-base-url");
24                let olink_domain = $("body").attr("olink-base-url");
25    
26                if ((olink_domain != "")) {
27                    window.location.replace(olink_domain + "/zh-hant/user/logout")
28                }
29            })
30        }, 500)
31    }
32});

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.