Automated News Post 3

[raw]

// A $( document ).ready() block.
jQuery( document ).ready(function() {

jQuery.getJSON(“https://agsci.source.colostate.edu/wp-json/wp/v2/posts?filter%5bcategory_name%5d=headlines”, function(json) {
var imgList = ‘‘;
var jsonLink = ‘‘;
jQuery(‘#content2’).html(imgList + “
” + json[2].title.rendered + “


“);
var wrapContent = jQuery(‘#wrap2’).html();
jQuery(‘#wrap2’).html(jsonLink + wrapContent + ‘
‘);

jQuery(‘#slider2’).html(json[2].excerpt.rendered);
});
});

a:hover {
text-decoration: none !important;
}

#wrap2 {
padding: 10px;
}

[/raw]

Contact CSU Equal Opportunity Privacy Statement Disclaimer

2018 Colorado State Universtiy, Fort Collins, Colorado 80523 USA