Skip to content

Instantly share code, notes, and snippets.

@danielbachhuber
Created February 24, 2011 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielbachhuber/842977 to your computer and use it in GitHub Desktop.
Save danielbachhuber/842977 to your computer and use it in GitHub Desktop.
Loads the most recent headline and excerpt from each website in the array
REPLACE THIS WITH ANY ASSIGNMENT INTRODUCTION TEXT YOU WANT
<div class="assignment-headlines"></div>
<script type="text/javascript" src="http://static.journalism.cuny.edu/useful_js/load_site_headlines.js"></script>
<script type="text/javascript">
jQuery(document).ready(function() {
// Load all of the websites in an array
var websites = new Array();
websites[0] = 'http://ernest.entrepreneurial.2011.journalism.cuny.edu/';
websites[1] = 'http://hong.entrepreneurial.2011.journalism.cuny.edu/';
websites[2] = 'http://ikilezi.entrepreneurial.2011.journalism.cuny.edu/';
websites[3] = 'http://indrani.entrepreneurial.2011.journalism.cuny.edu/';
websites[4] = 'http://mariana.entrepreneurial.2011.journalism.cuny.edu/';
websites[5] = 'http://mathias.entrepreneurial.2011.journalism.cuny.edu/';
websites[6] = 'http://matt.entrepreneurial.2011.journalism.cuny.edu/';
websites[7] = 'http://robin.entrepreneurial.2011.journalism.cuny.edu/';
websites[8] = 'http://shane.entrepreneurial.2011.journalism.cuny.edu/';
websites[9] = 'http://sonali.entrepreneurial.2011.journalism.cuny.edu/';
websites[10] = 'http://youyoung.entrepreneurial.2011.journalism.cuny.edu/';
var tag = 'assignment-1'; // Update this with the *slug* of the tag you're using with the assignment
db_load_site_headlines( websites, '.assignment-headlines', tag );
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment