News Feed
Example
HTML
id="myFeed"
can be named anything you'd like. Just make sure it matches the variable in your JavaScript.
If you have multiple feeds on your page, you will need unique ids for each one.
<div id="myFeed"></div>
JavaScript
The script below must be added to your page before any setup code.
<script src='//www.kingcounty.gov/~/media/scripts/gsheets-feed.js'></script>
Below are the customizations, including a tag, you can add to the feed:
<script>
$('#myFeed').GSFeed({
feedURL : '//spreadsheets.google.com/feeds/list/16EvF7h015u3vg0O9PyUWFIk30aYr7GIrFISUS7O75mk/1/public/values?alt=json-in-script',
title : 'Latest news', //Title of feed
titleIcon : 'fa-newspaper-o', //Icon used in title
numItems : 3, //Number of items to show
tag : 'dnrp' //Tag in Google Sheet spreadsheet to filter list by
});
</script>
If there are no customizations, use the code below:
<script>
$('#myFeed').GSFeed({
feedURL : '//spreadsheets.google.com/feeds/list/16EvF7h015u3vg0O9PyUWFIk30aYr7GIrFISUS7O75mk/1/public/values?alt=json-in-script'
});
</script>