Skip to content

Latest commit

 

History

History
171 lines (157 loc) · 6.04 KB

jobs-board.md

File metadata and controls

171 lines (157 loc) · 6.04 KB
layout title subtitle
landing-banner
Jobs Board
Are you interested in gaining real-world experience to apply knowledge learnt in your degree and fast forward your career? Keep an eye out for internship and graduate opportunities that are constantly updated on this page!
Search



Tags

{% for tag in site.data.job_tags %} {{ tag }}
{% endfor %}
{% capture curr_time %}{{site.time | date: '%s'| minus: 86400}}{% endcapture %} {% assign e = site.data.jobs.Jobs | sort_natural: "end-date" %} {% assign last_element = e.last.end-date | date: "%s" %} {% if e == None or last_element < curr_time %}

We will have more jobs coming soon, stay tuned!

{% else %}
{% assign index = 0 %} {% assign e = site.data.jobs.Jobs | sort_natural: "end-date" %}

{% for job in e %} {% capture end_date %}{{job.end-date | date: '%s'}}{% endcapture %} {% if curr_time < end_date %}
{% if job.name != 404 %}

Closing Date: {{job.end-date | date:"%B %d, %Y" }}


{% if job.description %}

More Information Here!

{% include job-modal-card.html name = job.name description = job.description link = job.link %} {% endif %}

{% endif %}
{% if job.img %}

{% for r in job.tags %} {{ r }} {% endfor %}
{% endif %}
{% endif %} {% endfor %}
{% endif %}


<script src="/assets/js/modals.js"></script> <script> let jobs = document.getElementsByClassName('search') let search_box = document.getElementById('searchBox'); search_box.setAttribute("onkeyup","filter_search()") function filter_search(word) { word = search_box.value; if (word == "") { for (let job of jobs) { job.style.display = ""; } } else { word = word.toLowerCase(); for (let job of jobs) { let str = job.getElementsByClassName('title')[0].innerText; str = str.toLowerCase(); let pos = str.search(word); if (pos == -1) { job.style.display = "none"; } } } } function tags_are_checked(checkboxes, tags) { for (let checkbox of checkboxes) { if (checkbox.checked) { checkbox_text = checkbox.parentElement.innerText; checkbox_text = checkbox_text.substring(1,); if (tags.search(checkbox_text) != -1) { return true; } } } return false; } function no_boxes_checked(checkboxes) { for (let checkbox of checkboxes) { if (checkbox.checked) { return false; } } return true; } let checkboxes = document.getElementsByClassName('job-tag'); for (let checkbox of checkboxes) { checkbox.onclick = function() { // Reset checkboxes if all unticked if (no_boxes_checked(checkboxes)) { for (let job of jobs) { jobs.style.display = ""; } } else { // For each resource card check if tags belong to set of ticked checkboxes for (let job of jobs) { let tags = job.getElementsByClassName('c-footer')[0].innerText; if (tags_are_checked(checkboxes,tags)) { job.style.display = ""; } else { job.style.display = "none"; } } } } } </script>