Skip to content

Instantly share code, notes, and snippets.

@bdlowery
Last active August 2, 2025 03:52
Show Gist options
  • Save bdlowery/a3ecbb11b550058ff8d4be3e98433c8f to your computer and use it in GitHub Desktop.
Save bdlowery/a3ecbb11b550058ff8d4be3e98433c8f to your computer and use it in GitHub Desktop.
<script>
fetch('https://www.trustandsafetyjobs.com/jobs.xml')
.then(response => response.text())
.then(xml => {
var parser = new DOMParser();
var xmlDoc = parser.parseFromString(xml, 'text/xml');
var jobs = xmlDoc.getElementsByTagName('job');
document.getElementById('total-jobs').innerHTML =
'🔥 There are currently <span style="color: #58b398;">' + jobs.length + ' live</span> jobs.';
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment