JSFiddle - React, Tailwind, and code Playground

by Shah Danial

HTML

<div itemprop="description" class="job_listing-description job-overview col-md-12 col-sm-12">
                    <h2 class="widget-title widget-title--job_listing-top job-overview-title">Overview</h2>
                    <p>Berikut adalah jawatan kosong terkini di Jabatan Hutan Negeri Sarawak Ogos 2016. Warganegara Malaysia yang berumur tidak kurang dari 18 tahun pada tarikh iklan jawatan kosong Jabatan Hutan Negeri Sarawak adalah dipelawa untuk memohon jawatan sebagaimana di bawah:</p>
<ol>
<li>Penolong Pemelihara Hutan G27</li>
</ol>
<h2>Tentang&nbsp;Jabatan Hutan Negeri Sarawak</h2>
<p><a href="http://goo.gl/PEZBTF">(Jabatan Hutan Negeri Sarawak)</a> Forest Department has been entrusted by the State to ensure the successful implementation of the Sarawak Heart of Borneo (HoB) Intitiative. The HoB is a      transboundary collaboration project between Malaysia, Indonesia and Brunei to conserve and manage the tropical forests that traverse these three countries. We had the honour of hosting the working visit of the Chief Minister of Sarawak YAB Pehin Sri Haji Abdul Taib Mahmud to the Orangutan High Conservation Value Forest (HCVF), Ulu Menyang, Batang, Lubok Antu on the 7 October.   The visit reflected the State’s commitment towards Sustainable Development and Conservation within HoB Sarawak.</p>
<h2>Syarat Permohonan</h2>
<p>Syarat permohonan jawatan kosong di Jabatan Hutan Negeri Sarawak boleh dimuat turun <a href="http://goo.gl/7w4UIt">di sini</a>.<br>
Tarikh tutup permohonan adalah pada <strong>15 Ogos 2016</strong>.<br>
Hanya calon yang layak selepas tapisan sahaja akan dipanggil untuk ditemuduga.</p>
                </div>
                <aside class="adsense">
<h1>
HAHAHAHA
</h1>
</aside>

CSS

.adsense {color:red;}

JavaScript

// WORDPRESS MIDDLE ADS

var 
 content = $('.job_listing-description.job-overview >*').length,
 count = parseInt(content/2),
 hook = $('.adsense'),
 manual = $('.job_listing-description.job-overview #middle');

 if($(manual).length == 1) {
 
 $(manual).replaceWith(hook);
 
 }else{
 if(window.location.hostname == 'fiddle.jshell.net'){ 
 $( ".adsense" ).css( "margin", "35px 0" ).insertAfter( '.job_listing-description.job-overview >*:eq('+count+')' );
  alert('yes '+window.location.hostname)
 }
 
 }
 
 alert(window.location.hostname)