More JSON data

This commit is contained in:
Thomas Smith 2022-10-18 18:30:17 -04:00
parent d944dccf90
commit 529e7a240b
2 changed files with 13 additions and 4 deletions

View file

@ -52,8 +52,19 @@
</button>
</h2>
<div id="collapseTwo" class="accordion-collapse collapse" aria-labelledby="headingTwo" data-bs-parent="#accordionExample">
<div class="accordion-body">
<strong>This is the second item's accordion body.</strong> It is hidden by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go within the <code>.accordion-body</code>, though the transition does limit overflow.
<div class="accordion-body two-boxes">
<div class="one-box-down">
<p>Employment type: <span id="typeTwo"></span></p>
<p>Department: <span id="deptTwo"></span></p>
<p>Location: <span id="locTwo"></span></p>
</div>
<hr class="one-box-down">
<div class="one-box-down" id="descTwo"></div>
<div>
<a href="" id="linkTwo">
<button class="detail-btn-large"><i class="icon-enter-arrow"></i>VIEW ALL DETAILS</button>
</a>
</div>
</div>
</div>
</div>

View file

@ -183,10 +183,8 @@ integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+
//Job Description Two
document.getElementById('typeTwo').innerHTML = out[1].type.name;
document.getElementById('deptTwo').innerHTML = out[1].department;
out[1].location.is_remote === true ? document.getElementById('locTwo').innerHTML = 'Remote' : document.getElementById('locTwo').innerHTML = out[1].location.name;
document.getElementById('jobTwo').innerHTML = out[1].name;
document.getElementById('descTwo').innerHTML = out[1].description;
document.getElementById('linkTwo').href = out[1].url;
})
.catch(err => { throw err });