JSFiddle - React, Tailwind, and code Playground
HTML
<section class="thumbs slideShowFrame line">
<div class="slideShow">
<div class="slide unit">
<figure class="thumb unit border">
<a href="?viewerSrc=1">
<img alt="" src="/showroom/_assets/images/mediagallery/1_thumb.JPG"/>
</a>
<figcaption class="hide">What a lovely Image</figcaption>
</figure>
<figure class="thumb unit border">
<a href="?viewerSrc=2">
<img alt="" src="/showroom/_assets/images/mediagallery/2_thumb.JPG"/>
</a>
<figcaption class="hide">East and Juliet is the..</figcaption>
</figure>
<figure class="thumb unit border">
<a href="?viewerSrc=3">
<img alt="" src="/showroom/_assets/images/mediagallery/3_thumb.JPG"/>
</a>
<figcaption class="hide">But soft what light</figcaption>
</figure>
<figure class="thumb unit border">
<a href="?viewerSrc=4">
<img alt="" src="/showroom/_assets/images/mediagallery/4_thumb.JPG"/>
</a>
<figcaption class="hide">through yonder window</figcaption>
</figure>
<figure class="thumb unit border">
<a href="?viewerSrc=Honda-Lawn-Mower-Easy-Start-Engine-Honda-Web" class="flv">
<img alt="" src="/showroom/_assets/images/mediagallery/5_thumb.jpg" class="video"/>
</a>
<figcaption class="hide">This is a video file</figcaption>
</figure>
</div>
</div>
</section>
JavaScript
$('.thumb a').live('click', function(e) {
e.preventDefault();
$('.viewer figure').removeClass('hidden');
if (!$('img', this).hasClass('video')) {
alert($('img', this).attr('src'));
}
});