Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function updGraph() {
- // URLS/images - on delay
- setTimeout(function() {
- // URLs
- $('#metaURL').attr('content', window.location.href);
- $('#metaTwitterUrl').attr('content', window.location.href);
- // Images
- $('#metaImage').attr('content', FWD_SS.currSlide.holder.find('.rsImg.rsMainSlideImage').prop('src'));
- $('#metaTwitterImage').attr('content', FWD_SS.currSlide.holder.find('.rsImg.rsMainSlideImage').prop('src'));
- // Captions
- $('#metaDescription').attr('content', $('.rsGCaption .photo-caption').text());
- $('#metaTwitterSummary').attr('content', $('.rsGCaption .photo-caption').text());
- }, 2000);
- }
- FWD_SS.ev.on('rsAfterSlideChange', updGraph);
- updGraph();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement