1// hTOP(à) yado_top 2var isYadoTop = function (pathname) { 3 return ( 4 /^\/?$/.test(pathname) || 5 /^\/smart\/?$/.test(pathname) || 6 /^\/jalan\/doc\/top\/yoyaku_top.html$/.test(pathname) 7 ); 8}; 9 10// õÊê(åGA) yado_search_result_large_area 11var isSearchResultLargeArea = function (pathname) { 12 return ( 13 /^\/[0-9]{6}\/LRG_[0-9]{6}\/(page[0-9]+.html)?$/.test(pathname) || 14 /^\/uw\/common\/actualUrlRewrite1400LRG.do$/.test(pathname) 15 ); 16}; 17 18// õÊê(¬GA) yado_search_result_small_area 19var isSearchResultSmallArea = function (pathname) { 20 return ( 21 /^\/[0-9]{6}\/LRG_[0-9]{6}\/SML_[0-9]{6}\/(page[0-9]+.html)?$/.test( 22 pathname 23 ) || /^\/uw\/common\/actualUrlRewrite1400SML.do$/.test(pathname) 24 ); 25}; 26 27// õÊê(wEó`E¼) yado_search_result_other 28var isSearchResultOther = function (pathname) { 29 return ( 30 /^\/[0-9]{6}\/AIR_[0-9]+\/(page[0-9]+.html)?$/.test(pathname) || 31 /^\/[0-9]{6}\/CTY_[0-9]+\/(page[0-9]+.html)?$/.test(pathname) || 32 /^\/[0-9]{6}\/STA_[0-9]{6}\/(page[0-9]+.html)?$/.test(pathname) || 33 ( 34 /^\/uw\/common\/actualUrlRewrite1400[A-Z]*.do$/.test(pathname) && 35 !/^\/uw\/common\/actualUrlRewrite1400(LRG|SML).do$/.test(pathname) 36 ) || 37 /^\/uw\/uwp1400\/uww1400.do$/.test(pathname) 38 ); 39}; 40 41// hÚ×(à) yado_detail 42var isYadoDetail = function (pathname) { 43 return ( 44 /^\/uw\/common\/actualUrlRewrite3001.do$/.test(pathname) || 45 /^\/uw\/uwp3000\/uww3001.do$/.test(pathname) || 46 /^\/us\/usp3000\/usw3001.do$/.test(pathname) || 47 /^\/yad[0-9]+\/$/.test(pathname) 48 ); 49}; 50 51// vê(à) yado_plan_list 52var isPlanList = function (pathname) { 53 return ( 54 /^\/uw\/common\/actualUrlRewrite3101.do$/.test(pathname) || 55 /^\/us\/usp3100\/usw3101.do$/.test(pathname) || 56 /^\/uw\/uwp3100\/uww3101.do$/.test(pathname) || 57 /^\/yad[0-9]+\/plan\/(page[0-9]+.html)?$/.test(pathname) 58 ); 59}; 60 61// vÚ×(à) yado_plan_detail 62var isPlanDetail = function (pathname) { 63 return ( 64 /^\/uw\/uwp3200\/uww3201init.do$/.test(pathname) || 65 /^\/us\/usp3200\/usw3201init.do$/.test(pathname) 66 ); 67}; 68 69// ÀèvÚ×(à) yado_limited_plan_detail 70var isLimitedPlanDetail = function (pathname) { 71 return /^\/uw\/uwp3200\/uww3204.do$/.test(pathname); 72}; 73 74// TOP( n) chakuchi_top 75var isChakuchiTop = function (pathname) { 76 return /^\/activity\/$/.test(pathname); 77}; 78 79// FWX|bgê( n) chakuchi_fw_spot_list 80var isFwSpotList = function (pathname) { 81 return ( 82 /^\/activity\/fw_search\/(page_[0-9]+\/)?$/.test(pathname) || 83 /^\/ou\/oup1600\/ouw1611.do$/.test(pathname) 84 ); 85}; 86 87// X|bgê( n) chakuchi_spot_list 88var isChakuchiSpotList = function (pathname) { 89 return ( 90 /^\/ou\/oup1600\/ouw1601.do$/.test(pathname) || 91 /^\/activity\/g[12]_[^/]+\/(page_[0-9]+\/)?$/.test(pathname) || 92 /^\/activity\/[0-9]{6}\/(page_[0-9]+\/)?$/.test(pathname) || 93 /^\/activity\/maj_[0-9]{9}\/(page_[0-9]+\/)?$/.test(pathname) || 94 /^\/activity\/cit_[0-9]{9}\/(page_[0-9]+\/)?$/.test(pathname) || 95 /^\/activity\/tow_[0-9]{9}\/(page_[0-9]+\/)?$/.test(pathname) || 96 /^\/activity\/sta_[0-9]{6}\/(page_[0-9]+\/)?$/.test(pathname) || 97 /^\/activity\/air_[0-9]{15}\/(page_[0-9]+\/)?$/.test(pathname) || 98 /^\/activity\/search\/(page_[0-9]+\/)?$/.test(pathname) 99 ); 100}; 101 102// X|bgÚ×( n) chakuchi_spot_detail 103var isChakuchiSpotDetail = function (pathname) { 104 return ( 105 /^\/kankou\/[^/]+\/$/.test(pathname) || 106 /^\/ou\/oup2200\/ouw2201.do$/.test(pathname) 107 ) 108 ; 109}; 110 111// vê( n) chakuchi_plan_list 112var isChakuchiPlanList = function (pathname) { 113 return ( 114 /^\/kankou\/[^/]+\/activity_plan\/(page_[0-9]+\/)?$/.test(pathname) || 115 /^\/ou\/oup2200\/ouw2210.do$/.test(pathname) 116 ); 117}; 118 119// vÚ×( n) chakuchi_plan_detail 120var isChakuchiPlanDetail = function (pathname) { 121 return ( 122 /^\/kankou\/[^/]+\/activity\/[^/]+\/$/.test(pathname) || 123 /^\/ou\/oup2200\/ouw2211.do$/.test(pathname) 124 ); 125}; 126 127// \ñàeüÍ( n) chakuchi_reservation_input 128var isChakuchiReservationInput = function (pathname) { 129 return ( 130 /^\/ou\/oup8100\/ouw8101init.do$/.test(pathname) || 131 /^\/ou\/oup8100\/ouw8101next.do$/.test(pathname) || 132 /^\/ou\/oup8100\/ouw8102init.do$/.test(pathname) || 133 /^\/ou\/oup8100\/ouw8105init.do$/.test(pathname) 134 ); 135}; 136 137// \ñàemFæÊ( n) chakuchi_reservation_confirm 138var isChakuchiReservationConfirm = function (pathname) { 139 return ( 140 /^\/ou\/oup8100\/ouw8102next.do$/.test(pathname) || 141 /^\/ou\/oup8100\/ouw8103init.do$/.test(pathname) || 142 /^\/ou\/oup8100\/ouw8105next.do$/.test(pathname) 143 ); 144}; 145 146// \ñ®¹æÊ( n) chakuchi_reservation_completion 147var isChakuchiReservationCompletion = function (pathname) { 148 return ( 149 /^\/ou\/oup8100\/ouw8104init.do$/.test(pathname) 150 ); 151}; 152 153// \ñàeüÍ reservation_input 154var isReservationInput = function (pathname) { 155 return ( 156 /^\/uw\/uwp5000\/uww5001init.do$/.test(pathname) || 157 /^\/uw\/uwp5000\/uww5001initD.do$/.test(pathname) || 158 /^\/uw\/uwp5000\/uww5001initR.do$/.test(pathname) || 159 /^\/uw\/uwp5000\/uww5001next.do$/.test(pathname) 160 ); 161}; 162 163// \ñàemFæÊ reservation_middle_confirm 164var isReservationMiddleConfirm = function (pathname) { 165 return ( 166 /^\/uw\/uwp5000\/uww5004.do$/.test(pathname) 167 ); 168}; 169 170// \ñÅImF reservation_confirm 171var isReservationConfirm = function (pathname) { 172 return ( 173 /^\/uw\/uwp5000\/uww5003next.do$/.test(pathname) || 174 /^\/uw\/uwp5000\/uww5006next.do$/.test(pathname) || 175 /^\/uw\/uwp5000\/uww5019next.do$/.test(pathname) 176 ); 177}; 178 179// OC login 180var isLogin = function (pathname) { 181 return ( 182 /^\/ji\/pc\/jit1001.do$/.test(pathname) || 183 /^\/ji\/pc\/jiw1011.do$/.test(pathname) || 184 /^\/ji\/pc\/jit6001Login.do$/.test(pathname) 185 ); 186}; 187 188// OAEg logout 189var isLogout = function (pathname) { 190 return /^\/ji\/pc\/jit6001LoginBack.do$/.test(pathname); 191}; 192 193// DPõÊê dp_search_result 194var isDpSearchResult = function (pathname) { 195 return ( 196 /^\/dp\/jal\/uj\/ujp1400\/ujw1400.do$/.test(pathname) || 197 /^\/dp\/ana\/ua\/uap1400\/uaw1400.do$/.test(pathname) 198 ); 199}; 200 201var pageMatchers = { 202 yado_top: isYadoTop, 203 yado_search_result_large_area: isSearchResultLargeArea, 204 yado_search_result_small_area: isSearchResultSmallArea, 205 yado_search_result_other: isSearchResultOther, 206 yado_detail: isYadoDetail, 207 yado_plan_list: isPlanList,
208 yado_plan_detail: isPlanDetail, 209 yado_plan_detail_limited: isLimitedPlanDetail, 210 chakuchi_top: isChakuchiTop, 211 chakuchi_fw_spot_list: isFwSpotList, 212 chakuchi_spot_list: isChakuchiSpotList, 213 chakuchi_spot_detail: isChakuchiSpotDetail, 214 chakuchi_plan_list: isChakuchiPlanList, 215 chakuchi_plan_detail: isChakuchiPlanDetail, 216 chakuchi_reservation_input: isChakuchiReservationInput, 217 chakuchi_reservation_confirm: isChakuchiReservationConfirm, 218 chakuchi_reservation_completion: isChakuchiReservationCompletion, 219 reservation_input: isReservationInput, 220 reservation_middle_confirm: isReservationMiddleConfirm, 221 reservation_confirm: isReservationConfirm, 222 login: isLogin, 223 logout: isLogout, 224 dp_search_result: isDpSearchResult, 225}; 226 227var decidePageType = function (pathname) { 228 var pathnameWithoutMultiSlash = pathname.replace(/\/+/g, "/"); 229 var pageType = Object.keys(pageMatchers).filter(function (key) { 230 var matcher = pageMatchers[key]; 231 return matcher(pathnameWithoutMultiSlash) === true; 232 })[0]; 233 234 if (pageType === "reservation_input" && window.is_uw_uwp5000_uww5050) { 235 pageType = "reservation_input_new"; 236 } 237 if ((pageType === "chakuchi_reservation_input" 238 || pageType === "chakuchi_reservation_confirm" 239 || pageType === "chakuchi_reservation_completion" 240 ) && window.is_ou_oup8100_new) { 241 pageType = pageType + "_new"; 242 } 243 244 return pageType || "None"; 245}; 246 247(function (h, o, u, n, d) { 248 h = h[d] = h[d] || { q: [], onReady: function (c) { h.q.push(c) } }; 249 d = o.createElement(u); 250 d.async = 1; 251 d.src = n; 252 n = o.getElementsByTagName(u)[0]; 253 n.parentNode.insertBefore(d, n); 254})(window, document, 'script', 'https://www.datadoghq-browser-agent.com/datadog-logs-v4.js', 'DD_LOGS'); 255 256DD_LOGS.onReady(function () { 257 var pageType = decidePageType(location.pathname); 258 var env = location.host === 'www.jalan.net' ? 'prd' : location.host.match(/www.(.*?)\.jalan\.net$/) && location.host.match(/www.(.*?)\.jalan\.net$/)[1] || 'etc'; 259 DD_LOGS.init({ 260 clientToken: 'pub995c7df4980ccf13a1967d4ce82fdb63', 261 site: 'datadoghq.com', 262 env: env, 263 version: window.AB_TEST2 || window.AB_TEST3 || '', 264 service: pageType, 265 forwardErrorsToLogs: true, 266 sampleRate: 100, 267 }); 268 269 // send imp log 270 DD_LOGS.logger.info("imp", { 271 service: pageType, 272 version: window.AB_TEST2 || window.AB_TEST3 || "", 273 env: env, 274 }); 275});
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.