var shareObj = null; var galleryObj = null; /** * Initializes the sharing plugin * @param url the URL to be shared * @param title the title of the sharing request * @param image the link to the image to display in the shared content * @param summary the summary text/description to share */ function initSharing() { var options = { "publisher": "148b2b5f-768e-4fa1-94a7-db16af77fd6d", "position": "left", "st_url": 'https://www.claimsheaven.co.uk/cartoons/strips.php?idx=0', "st_title": 'Law Cartoon', "st_image": 'https://www.claimsheaven.co.uk/cartoons/images/gallery/01britainvsjustice-web.jpg', "st_summary": 'Law Cartoons from Claimsheaven.co.uk', "ad": { "visible": false, "openDelay": 5, "closeDelay": 0 }, "chicklets": { "items": [ "googleplus", "facebook", "twitter", "linkedin", "sharethis" ] } }; shareObj = new sharethis.widgets.hoverbuttons(options); } /** * Initializes the cartoons gallery */ function initCartoons() { var sidx = 0; // generate thumbnails var thumbsWrapper = $(".ad-thumbs"); var thumbsList = thumbsWrapper.find("ul"); var el; el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); el = "
  • "; thumbsList.append(el); // image gallery galleryObj = $('.ad-gallery').adGallery({ start_at_index: sidx, update_window_hash: false, slideshow: { enable: false } }); }