"; // Return a DOM element with custom styling captionEl = document.createElement('div'); captionEl.style.cssText = 'background: red; font-weight: bold; padding: 5px;'; captionEl.appendChild(document.createTextNode(captionText)); return captionEl; // Alternatively you can just pass back a string. However, any HTML // markup will be escaped } }, instance = PhotoSwipe.attach( window.document.querySelectorAll('#Gallery a'), options ); }, false); }(window, window.Code.PhotoSwipe));

PhotoSwipe