Audiblecouk Juice Extension

Extension Information
Extension File Name: 
Audiblecouk.js
Author: 
Richard Wallis
Extension Class Name: 
audiblecoukJuice
Function Parameters: 

audiblecoukJuice(ju,src,text,defPanel,launchType,insert1,insert2)

  • ju - instance of juice
  • src - url to logo to display in selection panel
  • text - text to display in selection panel
  • launchType - type of widow to launch "new"(default) | "overlay" | "iframe" | "current" - optional
  • insert1 - option for launch window - optional
  • insert2 - option for launch window - optional
Dependencies: 

Extension is dependent on a Juice Meta definition named "author" and one named "title". This extension will not display in a selection panel if both of these values are not present.

Example Code: 

juice.loadJs("http://{MyServer}/extensions/Audiblecouk.js");

new audiblecoukJuice( juice, 'http://www.audible.co.uk/mercury/logo.jpg', 'Search Audible' );

 

Extension to launch a search window on audible.co.uk based on meta value of author and/or title data held on page. Can be launched from either text or image based selection panels.

Upon construction this extension inserts the passed icon & text in to the relevant selection panels with css classes set to 'juiceXInactiveIcon' and 'juiceXInactiveText'. Once initialized thes are changed to 'juiceXActiveIcon' and 'juiceXActiveText', and they become clickable. Once clicked, a window of the passed type is launched to display the site.

AttachmentSize
Audiblecouk.js.txt1.6 KB