<script type="text/hyperscript">
    {# fmt:off #}
    def imageviewer.show(source)
        set source_url to (<img /> in source) @data-original-url
        set source_alt to (<img /> in source) @alt
        set image to <#image-viewer img />
        set figcaption to <#image-viewer figcaption />

        -- fill information
        set image@src to source_url
        set image@alt to source_alt
        set figcaption's textContent to source_alt

        -- show image viewer
        show #image-viewer with 