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.