|
65 | 65 |
|
66 | 66 | ``` |
67 | 67 |
|
| 68 | +``` js |
| 69 | + scriptJob.text = JSON.stringify({ |
| 70 | + "@context": "https://schema.org/", |
| 71 | + "@type": "JobPosting", |
| 72 | + "title": job?.title, |
| 73 | + "description": plainDescription, |
| 74 | + "datePosted": job?.date_posted, |
| 75 | + "validThrough": job?.valid_through, |
| 76 | + "employmentType": job?.employment_type, |
| 77 | + "hiringOrganization": { |
| 78 | + "@type": "Organization", |
| 79 | + "name": job?.hiring_organization?.name, |
| 80 | + "sameAs": job?.hiring_organization?.same_as, |
| 81 | + "logo": job?.hiring_organization?.logo |
| 82 | + }, |
| 83 | + "jobLocation": { |
| 84 | + "@type": "Place", |
| 85 | + "address": { |
| 86 | + "@type": "PostalAddress", |
| 87 | + "streetAddress": job?.job_location?.address?.street_address, |
| 88 | + "addressLocality": job?.job_location?.address?.address_locality, |
| 89 | + "addressRegion": job?.job_location?.address?.address_region, |
| 90 | + "postalCode": job?.job_location?.address?.postal_code, |
| 91 | + "addressCountry": job?.job_location?.address?.address_country |
| 92 | + } |
| 93 | + }, |
| 94 | + "baseSalary": { |
| 95 | + "@type": "MonetaryAmount", |
| 96 | + "currency": job?.base_salary?.currency, |
| 97 | + "value": { |
| 98 | + "@type": "QuantitativeValue", |
| 99 | + "minValue": job?.base_salary?.value?.min_value, |
| 100 | + "maxValue": job?.base_salary?.value?.max_value, |
| 101 | + "unitText": job?.base_salary?.value?.unit_text |
| 102 | + } |
| 103 | + } |
| 104 | + }); |
| 105 | + document.head.appendChild(scriptJob); |
| 106 | +``` |
| 107 | +
|
68 | 108 | **If you ever encountered any website have this structure, exit out immediately.** |
0 commit comments