1$(window).on('load',function(){ 2 //æ±äººä¸è¦§ãã¼ã¸ 3 $(".mod-jobResultBox__body-In:not(:has(img))").wrap('<div class="image_none">'); 4 $(".job-photo-wrap:not(:has(img))").remove(); 5 6 //é»è©±å¿åâTELå¿å 7 $('.mod-jobDetailBox .btn-group .btn-group__center .btn-group__left.mod-btn7, .mod-jobResultBox-wrap .mod-jobResultBox .btn-group > .btn-group__center .mod-btn7.btn-result_tel').contents().filter(function() { 8 return this.nodeType == 3 9 }).each(function(){ 10 this.textContent = this.textContent.replace('é»è©±','TEL'); 11 }); 12 13 //ã¹ããä¸é¨åºå®ããã¹ã追å 14 $('<p class="catch_txt only-sp">å·¥å ´JOBããã®ãå ¥è·ã§<em>ãããªããç¥ãé</em>ããï¼</p>').prependTo('.mod-jobDetailBox .mod-jobDetailBox__container.detailContents__btn__02'); 15 16 //å¿åãã¼ã¸ä¼å¡ã®æ¹ã¯ãã¡ã 17 //$('#apply #mypage-login-line .title-header').insertBefore('#apply #mypage-login-line .widget-inner'); 18 $("#apply #mypage-login-line .title-header").on("click", function() { 19 $(this).next().slideToggle(); 20 $(this).toggleClass("ac"); 21 }); 22}); 23 24//============================= 25// æ±äººä¸è¦§ 26//============================= 27document.addEventListener("DOMContentLoaded", () => { 28 $(".mod-jobResultBox").each(function () { 29 const $jobResultBox = $(this); // .mod-jobResultBox 30 31 // ã¿ã¤ãã«ã¿ã°ã®ç§»å 32 //const $modH1Title = $jobResultBox.find(".mod-jobResultBox__header .mod-h1"); 33 //const $jobResultBody = $jobResultBox.find(".mod-jobResultBox__body"); 34 35 //if ($modH1Title.length > 0 && $jobResultBody.length > 0) { 36 //$jobResultBody.prepend($modH1Title); 37 //} 38 39 // ãã¢ãã¼ã«ãã¤ã³ããã®æ½åºã¨ãªã¹ãã®è¿½å 40 let featureHtml = ""; 41 const $modTable2 = $jobResultBox.find(".job-items .mod-table2"); 42 43 $modTable2.find("th").each(function () { 44 const $targetTh = $(this); // å¦çä¸ã® th 45 const thText = $targetTh.text().trim(); 46 47 if (thText.startsWith("ã¢ãã¼ã«ãã¤ã³ã")) { 48 const $targetTd = $targetTh.next("td"); // thã®é£ã«ãã td 49 const content = $targetTd.html() ? $targetTd.html().trim() : ""; 50 51 featureHtml += `<li>${content}</li>`; 52 53 $targetTh.closest("tr").hide(); 54 } 55 }); 56 57 if (featureHtml !== "") { 58 const $jobItemsWrap = $jobResultBox.find(".job-items-wrap"); 59 if ($jobItemsWrap.length > 0) { 60 $jobItemsWrap.append(`<ul class="job_features">${featureHtml}</ul>`); 61 } 62 } 63 }); 64}); 65 66//============================= 67// æ±äººè©³ç´°ãã¼ã¸ 68//============================= 69$(window).on("load", function () { 70 function initJobDetailPage() { 71 if (!$("body#detail").length) return; // bodyã«id="detail"ãããå ´åã®ã¿å®è¡ 72 73 //============================= 74 // åéè¦é ãããªã¹ãçæ 75 //============================= 76 const $table = $("table#w0"); 77 let html = ""; 78 79 const fields = [ 80 { name: "給ä¸", class: "salary" }, 81 { name: "å®è³ªçµ¦ä¸", class: "totalsalary" }, 82 { name: "æåä¾", class: "income" }, 83 { name: "å¤åã·ãã", class: "workshift" }, 84 { name: "伿¥", class: "dayoff" }, 85 { name: "å¤åå°", class: "workplace" }, 86 { name: "æå¯ãé§ ", class: "station" }, 87 ]; 88 89 fields.forEach(field => { 90 const $th = $table.find("th").filter(function() { 91 return $(this).text().trim() === field.name; 92 }).first(); 93 94 if ($th.length > 0) { 95 const $td = $th.next("td"); 96 const content = $td.html() ? $td.html().trim() : ""; 97 98 html += ` 99 <li class="${field.class}"> 100 <dl> 101 <dt>${field.name}</dt> 102 <dd>${content}</dd> 103 </dl> 104 </li> 105 `; 106 } 107 }); 108 109 if (html !== "") { 110 const $BoxPrimary = $("#detail section.excerptBox-primary .mod-excerptBox__body .mod-excerptBox__excerpt"); 111 $BoxPrimary.append(`<ul id="job_summary">${html}</ul>`); 112 } 113 114 //============================= 115 // ã¢ãã¼ã«ãã¤ã³ãã®ãªã¹ãçæ 116 //============================= 117 let featureHtml = ""; 118 119 $table.find("th").each(function() { 120 const $th = $(this); 121 const thText = $th.text().trim(); 122 123 //ãã¢ãã¼ã«ãã¤ã³ããã§å§ã¾ãé ç®ã®æ½åº 124 if (thText.startsWith("ã¢ãã¼ã«ãã¤ã³ã")) { 125 const $td = $th.next("td"); 126 const content = $td.html() ? $td.html().trim() : ""; 127 128 featureHtml += `<li>${content}</li>`; 129 $th.closest("tr").hide(); // 該å½ã®trãé表示 130 } 131 }); 132 133 if (featureHtml !== "") { 134 const $targetContainer = $(".mod-jobDetailBox__container.detailContents__main"); 135 $targetContainer.append(`<ul class="job_features">${featureHtml}</ul>`); 136 } 137 138 // ãä»äºãã³ãã¼ã®ã³ãã¼æ¿å ¥ 139 const $jobTitle = $(".mod-jobDetailBox .mod-jobDetailBox__iconBox .title"); 140 const $jobNumTarget = $(".flow-card .flow-list .flow-step-text .job_num"); 141 142 if ($jobTitle.length && $jobNumTarget.length) { 143 const titleText = $jobTitle.text().trim(); 144 $jobNumTarget.text(titleText); 145 } 146 147 } 148 initJobDetailPage(); 149});
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.