Advertisement
Guest User

updGraph()

a guest
Jul 1st, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function updGraph() {
  2.           // URLS/images - on delay
  3.           setTimeout(function() {
  4.  
  5.             // URLs
  6.             $('#metaURL').attr('content', window.location.href);
  7.             $('#metaTwitterUrl').attr('content', window.location.href);
  8.  
  9.             // Images
  10.             $('#metaImage').attr('content', FWD_SS.currSlide.holder.find('.rsImg.rsMainSlideImage').prop('src'));
  11.             $('#metaTwitterImage').attr('content', FWD_SS.currSlide.holder.find('.rsImg.rsMainSlideImage').prop('src'));
  12.  
  13.             // Captions
  14.             $('#metaDescription').attr('content', $('.rsGCaption .photo-caption').text());
  15.             $('#metaTwitterSummary').attr('content', $('.rsGCaption .photo-caption').text());
  16.  
  17.           }, 2000);
  18.         }
  19.         FWD_SS.ev.on('rsAfterSlideChange', updGraph);
  20.         updGraph();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement