Skip to content

Instantly share code, notes, and snippets.

@FinalDestiny
Created January 16, 2018 22:20
Show Gist options
  • Save FinalDestiny/5b88af74257c92159636c8bfb0e3cd61 to your computer and use it in GitHub Desktop.
Save FinalDestiny/5b88af74257c92159636c8bfb0e3cd61 to your computer and use it in GitHub Desktop.
<script>
jQuery(document).ready(function() {
jQuery.extend(true, jQuery.magnificPopup.defaults, {
tClose: 'Close (Esc)', // Alt text on close button
tLoading: 'Loading...', // Text that is displayed during loading. Can contain %curr% and %total% keys
gallery: {
tPrev: 'Previous (Left arrow key)', // Alt text on left arrow
tNext: 'Next (Right arrow key)', // Alt text on right arrow
tCounter: '%curr% de %total%' // Markup for "1 of 7" counter
},
image: {
tError: '<a href="%url%">The image</a> could not be loaded.' // Error message when image could not be loaded
},
ajax: {
tError: '<a href="%url%">The content</a> could not be loaded.' // Error message when ajax request failed
}
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment