Last active
March 24, 2018 06:35
-
-
Save iraycd/68575f7b46dd82dc576a8f3577c70b0e to your computer and use it in GitHub Desktop.
How angel.co custom jobs embed work
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script data-startup="jhink" src="https://angel.co/javascripts/embed_jobs.js" id="angellist_embed" async></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.angellist_jobs { | |
max-width: 800px; | |
-webkit-font-smoothing: antialiased; } | |
.angellist_jobs-job { | |
margin-bottom: 16px; } | |
.angellist_jobs-job:last-child { | |
margin-bottom: 0; } | |
.angellist_jobs-top { | |
overflow: hidden; } | |
.angellist_jobs-title { | |
font-size: 16px; | |
font-weight: bold; | |
line-height: 24px; | |
text-decoration: inherit; } | |
.angellist_jobs-title-link, | |
.angellist_jobs-title-link:hover, | |
.angellist_jobs-title-link:visited, | |
.angellist_jobs-title-link:active { | |
color: #333333; | |
font-weight: 400; } | |
.angellist_jobs-tags { | |
color: #999999; | |
font-size: 14px; | |
text-decoration: none; } | |
.angellist_jobs-startup-title { | |
font-size: 1.2em; | |
font-weight: bold; | |
line-height: 24px; | |
margin-bottom: 16px; } | |
</style> | |
<div class='angellist_jobs'> | |
<div class='angellist_jobs-job'> | |
<div class='angellist_jobs-top'> | |
<div class='angellist_jobs-title'> | |
<a target="_blank" rel="" class="angellist_jobs-title-link" href="https://angel.co/jhink/jobs/102948-senior-django">Senior Django</a> | |
</div> | |
</div> | |
<div class='angellist_jobs-tags'> | |
₹50K – ₹100K · 0.0% – 1.2% | |
· | |
Full Time · Hyderabad · Backend Developer · Django | |
</div> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var element = document.getElementById('angellist_embed'); | |
var xmlhttp = new XMLHttpRequest(); | |
xmlhttp.onreadystatechange = function(){ | |
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { | |
var div = document.createElement('div'); | |
div.innerHTML = xmlhttp.responseText; | |
element.parentNode.insertBefore(div, element); | |
} | |
} | |
var startup_slug = element.getAttribute('data-startup'); | |
xmlhttp.open("GET", "https://angel.co/job_profiles/embed?startup="+startup_slug, true); | |
xmlhttp.send(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment