How to include Brew York Brewery beers on your website
You can include Brew York Brewery beers on your own website really easily using our RSS feeds (RSS 2.0 or Atom 1.0). You can easily style the list with your own style sheet (minimal css here).
You can use any web based rss/atom reader, these examples use jQuery, tweeked FeedEk using package rss-parser. This enables you to include our tasting notes.
The script below shows the last 5 (of max 5) entries, with no ratings and currently in production (if set).
$(document).ready(function(){ $('#feedResults').FeedEk({ FeedUrl : 'http://www.guestales.co.uk/brewyork/feed/catalogue/rss?rss=2&itemtype=07&limit=5', ShowDesc : true, ShowPubDate:true, DescCharacterLimit:0, TitleLinkTarget:'_blank', DateFormat:'DD/MM/YYYY', DateFormatLang:'en' }); });
This example uses jQuery vTicker plugin and shows the last 5 (of max 5) entries, with no ratings and currently in production (if set). Although displaying entries in a carousel usually sucks, this one it not too bad as it will pause with the mouse so you can read/copy the tasting notes easily.
$(document).ready(function(){ $('#feedTicker').FeedEk({FeedUrl : 'http://www.guestales.co.uk/brewyork/feed/catalogue/rss?rss=2&itemtype=07&limit=5', ShowDesc : true, ShowPubDate:true, DescCharacterLimit:0, TitleLinkTarget:'_blank', DateFormat:'DD/MM/YYYY', DateFormatLang:'en' }, function(e) { var ticker = $(e); // Stop/start $(window).blur(function() { ticker.vTicker('pause', true); }).focus(function() { ticker.vTicker('pause', false); }); // Initialise ticker ticker.vTicker('init', { showItems: 1, pause: 3000, margin: 5, padding: 5 }); } ); });
This example shows how to include your entries which have been previously enjoyed, here shows the last 5 (of max 30) entries.
$(document).ready(function(){ $('#feedArchived').FeedEk({ FeedUrl : 'http://www.guestales.co.uk/brewyork/feed/archived/rss?rss=2&limit=5', ShowDesc : true, ShowPubDate:true, DescCharacterLimit:0, TitleLinkTarget:'_blank', DateFormat:'DD/MM/YYYY', DateFormatLang:'en' }); });