PageSourceSearch

https://www.ozmall.co.jp/Scripts/js/point-present-pc.js?v=202305150000

js ozmall.co.jp collected 2026-10-02 02:21:09 UTC 3,608 bytes, 104 lines download raw bytes

1//【定数】ポイント付与処理実行モード_初期表示時
2var RUN_MODE_ONLOAD = "RUN_MODE_ONLOAD";
3//【定数】ポイント付与処理実行モード_ルーレットクリック時
4var RUN_MODE_CLICK = "RUN_MODE_CLICK";
5//【変数】guid
6var guid = "";
7//【変数】hashUid
8var hashUid = "";
9//【変数】requestUrl
10var requestUrl = "";
11
12//ポイントルーレットCMS対応
13jQuery('.point_ico').bind('click', function () {
14    callApplyPoint_ajax(RUN_MODE_CLICK);
15});
16
17//ポイントルーレット表示判定(処理速度重視の為インライン実行タイミング)
18applyPoint_OnLoad();
19
20//ポイントルーレット.閉じるボタンクリック処理を定義
21jQuery('.closeBtn, .closeBtn02').click(function () {
22    jQuery("div.DPWrapper").remove();
23    jQuery('div.dpBox').css('display', 'none');
24});
25
26//ポイントルーレット表示判定呼び出し処理
27function applyPoint_OnLoad() {
28    //URLよりURLパラメータを取得
29    var url = location.href;
30    var urlParams = url.split("?");
31    if (2 <= urlParams.length) {
32        //guidとuidを取得
33        var params = urlParams[1].split("&");
34        for (var i = 0; i < params.length; i++) {
35            var keyValue = params[i].split("=");
36            var key = keyValue[0];
37            if ("guid" == key) {
38                guid = keyValue[1];
39            } else if ("uid" == key) {
40                hashUid = keyValue[1];
41            }
42        }
43
44        //guidとuidが共に取得出来た場合のみ実行
45        if (guid != "" && hashUid != "") {
46            requestUrl = urlParams[0];
47            callApplyPoint_ajax(RUN_MODE_ONLOAD);
48        }
49    }
50}
51
52//ポイントルーレット呼び出し処理
53function callApplyPoint_ajax(runMode) {
54    jQuery.ajax({
55        type: "GET",
56        url: document.getElementById("point-apply-domain").value + "/common_inc/inc/ApplyPointPresent.aspx",
57        cache: false,
58        data:
59        {
60            guid: guid,
61            hashUid: hashUid,
62            requestUrl: requestUrl,
63            runMode: runMode
64        },
65        dataType: "text",
66        success: function (response) {
67            var json = jQuery.parseJSON(response);
68            dispResult(json.status, json.point);
69        },
70        error: function (err) {
71            dispResult("ng", 0);
72        }
73    });
74}
75
76//ポイントルーレット処理実行結果表示処理
77function dispResult(status, point) {
78    if (status == "ok") {
79        jQuery("#placeStart").css("display", "none");
80        jQuery("#placeWinning").css("display", "block");
81        jQuery("#winningImg").attr({
82            "src": "/Content/images/dailypresent/tit_point_" + point + ".png",
83            "alt": "おめでとうございます" + point + "ポイントGET",
84            "width": "405",
85            "height": "76"
86        });
87    }
88    else if (status == "ng") {
89        jQuery("#placeStart").css("display", "none");
90        jQuery("#placeError").css("display", "block");
91        jQuery("#errorMsg").html("エラーが発生しました。<br>再度お試しください。");
92    }
93    else if (status == "expire") {
94        jQuery("#placeStart").css("display", "none");
95        jQuery("#placeExpire").css("display", "block");
96    }
97    else if (status == "repeated") {
98        jQuery("#placeStart").css("display", "none");
99        jQuery("#placeDone").css("display", "block");
100    }
101    else if (status == "start") {
102        jQuery("#placeStart").css("display", "block");
103    }
104}   

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.