Automated News Post 2

[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(‘#content1’).html(imgList + “
” + json[1].title.rendered + “


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

jQuery(‘#slider1’).html(json[1].excerpt.rendered);
});
});

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

#wrap1 {
padding: 10px;
}

[/raw]

Contact CSU Equal Opportunity Privacy Statement Disclaimer

2018 Colorado State Universtiy, Fort Collins, Colorado 80523 USA