Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function($){
- $(".ps-photo-download").on("click", function(){
- getImgUrl();
- });
- function getImgUrl()
- {
- var imgUrl = $(".ps-carousel-content img").attr("src");
- return imgUrl.toString();
- }
- var myPhotoSwipe = $("#gallery-swipe a").photoSwipe(
- {
- enableMouseWheel: false,
- enableKeyboard: true,
- getToolbar: function(){
- // Add a download image link
- var link = '<a class="ps-photo-download" href="#"></a>';
- $('.ps-carousel').after(link);
- return '<div class="ps-toolbar-close"><div class="ps-toolbar-content"></div></div><div class="ps-toolbar-play"><div class="ps-toolbar-content"></div></div><div class="ps-toolbar-previous"><div class="ps-toolbar-content"></div></div><div class="ps-toolbar-next"><div class="ps-toolbar-content"></div></div>';
- }
- });
- })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement