Skip to content

Instantly share code, notes, and snippets.

@retrofox
Created May 4, 2011 22:22
Show Gist options
  • Save retrofox/956168 to your computer and use it in GitHub Desktop.
Save retrofox/956168 to your computer and use it in GitHub Desktop.
script
| $(function () {
| $.jGFeed('https://www.jobscore.com/jobs/learnboost/atom',
| function(feeds){
| // Check for errors
| $('#jobs-rss').addClass('loaded');
| if(!feeds){
| // there was an error
| $('#jobs-rss').html('There was an error loading the jobs. Please <a href="https://www.jobscore.com/jobs/learnboost/">click here</a> to see our job listings.');
| return false;
| }
| // do whatever you want with feeds here
| for(var i=0; i<feeds.entries.length; i++){
| var entry = feeds.entries[i];
| var content = entry.content.replace(/&lt;/g, '<').replace(/&gt;/g, '>');
| $('#jobs-rss').append('<div class="job"><h1><a href="' + entry.link +'" TARGET="_blank">'+ entry.title +'</a></h1>'+ content +'<a class="action-button-black" href="' + entry.link +'" TARGET="_blank">'+ "Apply Now" +'</a>'+'<hr /></div>');
| }
| }, 20);
| })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment