1$(function () { 2 3 const userBox = $('#userBox'); 4 const loginBox = $('#loginBox'); 5 const checkRelative = $('#checkRelative'); 6 7 const requestUrl = (checkRelative.attr('isRelativeUrl')) 8 ? '/login/check/ajax/' 9 : 'https://news.infoseek.co.jp/login/check/ajax/'; 10 11 function loginCheck() { 12 $.ajax({ 13 url: requestUrl, 14 method: 'GET', 15 xhrFields: { 16 withCredentials: true 17 }, 18 }).done(function (result) { 19 // 1 === user is log in 20 // 2 === user is log out 21 // 3 === user session was revoked 22 23 // 3ãè¿ã£ã¦æ¥ãå ´åOmniãã°ã¢ã¦ãURLã«é·ç§»ããã 24 if (result[0] === '3') { 25 location.href = result[1]; 26 } 27 28 if (result[0] === '1') { 29 userBox.show(); 30 } else { 31 loginBox.show(); 32 } 33 }).fail(function () { 34 loginBox.show(); 35 }) 36 } 37 38 loginCheck(); 39});
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.