You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an easy way to add captions with the event "fullsizable:opened" to the plugin, but after that it is really tough to hook into the prev and next buttons and change the caption. With new events for prev/next and a link parameter, which returns the corresponding link element, like "fullsizable:opened" event it would be easy to handle.
$(document).on('fullsizable:opened',function(e,link){var$link=$(link),captionText=$link.data('caption');//create markup if necessaryif(!$('#fullsized_caption').length){varcaption='<div id="fullsized_caption" class="fullsized__caption"/>'+$('#jquery-fullsizable').append(caption);}//update info in container$('#fullsized_caption').text(captionText);});
The text was updated successfully, but these errors were encountered:
There is an easy way to add captions with the event "fullsizable:opened" to the plugin, but after that it is really tough to hook into the prev and next buttons and change the caption. With new events for prev/next and a link parameter, which returns the corresponding link element, like "fullsizable:opened" event it would be easy to handle.
Here is my workaround for the caption.
HTML:
JavaScript:
The text was updated successfully, but these errors were encountered: