Created
February 24, 2011 21:59
-
-
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
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
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