JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html style="height: 100%;" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">



<head>

<meta charset="UTF-8" />
<title>eclipsisNA | Detailing Services</title>
<meta name="description" content="Automotive Paint Restoration/Detailing in Orange County, California.">
<meta name="keywords" content="detailing,orange county detailing,car detailing,auto detailing,paint correction,paint restoration">
  
<!-- Load Javascripts & Stylesheets-->
<script type="text/javascript" src="default.asp_files/jquery-latest.js"></script>
<script type="text/javascript" src="default.asp_files/jquery.ba-outside-events.js"></script>
<script type="text/javascript" src="default.asp_files/TJK_ToggleDL.js"></script>
<script type="text/javascript" src="default.asp_files/TJK_ToggleDL1.js"></script>
<script type="text/javascript" src="default.asp_files/About_ToggleDL.js"></script>

<link rel="stylesheet" type="text/css" href="default.asp_files/gallery.css">
<link rel="stylesheet" type="text/css" href="default.asp_files/navbar.css">
<link rel="stylesheet" type="text/css" href="default.asp_files/stdtheme.css">

<link href="default.asp_files/TJK_ToggleDL.css" rel="stylesheet" type="text/css" media="screen,projection">
<link href="default.asp_files/TJK_ToggleDL1.css" rel="stylesheet" type="text/css" media="screen,projection">
<link href="default.asp_files/About_ToggleDL.css" rel="stylesheet" type="text/css" media="screen,projection">

<link href='http://fonts.googleapis.com/css?family=Kreon' rel='stylesheet' type='text/css'>

<!--[if lt IE 7]>
    <style>
        #leftcolumn{margin-left:0}
    </style>
<![endif]-->

<!-- Analytics Code -->
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-34434654-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') +...

CSS

#icon_holder {width: auto}

#info p {margin-left:15px;}

a, a:visited, a:hover {color:#FC0;}

#container {padding:0; margin:0; list-style:none; position:relative; z-index:10; width:740px; height:694px; margin:1px auto; font-family:verdana, arial, sans-serif; font-size:12px;}
#container table {border-collapse:collapse; margin:-1px -10px;}

#container li {float:left; margin: 8px 13px 11px 12px; display:inline; color:#000; text-decoration:none; width:79px; height:79px; cursor:default;}
#container li a.thumb {display:block; width:75px; height:75px; text-decoration:none; cursor:default; border:2px solid #000;}
#container li a.thumb img {display:block; border:0;}

#container li div {position:absolute; left:-9999px; border:0; width:705px; text-align:center; z-index:-1}
#container li div img {margin-top:4px; margin-bottom: -6px;}

#container li a.thumb:hover {border-color:#FC0;}
#container li:hover > a {border-color:#FC0;}

#container :hover div {position:absolute; left:17px; top:0; padding:200px 0 50px 0;}
#container :hover div img {border:2px solid #FC0; height: inherit; width: inherit;}
#container :hover div p {width:698px; text-align:center; font-family:verdana, sans-serif; font-size:11px; letter-spacing:2px; color:#FC0;}
#container :hover div p a {background:url(gallery-images/enlarge.gif) no-repeat left center; text-align:center; cursor:pointer; text-decoration:none; color:#666;}
#container :hover div p a:hover {color:#000; text-decoration:underline;}

#container :hover #small {position:absolute; left:17px; top:0; padding:102px 0 50px 0;}

#container_message {color: #ffd200; font-family: Verdana,Geneva,sans-serif; font-size: 7.5pt; height: auto; letter-spacing: 1px; padding-top: 5px; position: relative; text-align: center; width: 100%; z-index: -9999}

#navbar{
    border:1px solid #3b3b5b;
    border-width:1px 0;
    font-family:'LeagueGothicRegular';
    font-size: 21px;
    letter-spacing:3px;
    list-style:none;
    margin:0;
    padding:0;
   ...

JavaScript

jQuery(function($) {
    var $links = $(".service_outline a, .service_title a, .service_price a");
    
    $links.on( 'click', showDialog );
    
    function showDialog (ev) {
        var $thisDialog = $(this).find( 'span' );
    
        if(!$thisDialog.is(':visible')) {
            $thisDialog.fadeIn();
        
            /* -- EDIT: New code */
            setTimeout( function() {
                // IMPORTANT: touch events only supported when you use the 
                // modified plugin at the bottom of this example
                $thisDialog.one('clickoutside.closeDialog, touchstartoutside.closeDialog', function() {
                    $thisDialog.unbind('.closeDialog').fadeOut();
                });
            }, 0);
        }
    }
});

/*
 * jQuery outside events - v1.1 - 3/16/2010
 * http://benalman.com/projects/jquery-outside-events-plugin/
 * 
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/

 * IMPORTANT: Modified to support touch events
 */
(function($,c,b){$.map("click dblclick mousemove mousedown mouseup mouseover mouseout change select submit keydown keypress keyup touchstart touchend touchmove".split(" "),function(d){a(d)});a("focusin","focus"+b);a("focusout","blur"+b);$.addOutsideEvent=a;function a(g,e){e=e||g+b;var d=$(),h=g+"."+e+"-special-event";$.event.special[e]={setup:function(){d=d.add(this);if(d.length===1){$(c).bind(h,f)}},teardown:function(){d=d.not(this);if(d.length===0){$(c).unbind(h)}},add:function(i){var j=i.handler;i.handler=function(l,k){l.target=k;j.apply(this,arguments)}}};function f(i){$(d).each(function(){var j=$(this);if(this!==i.target&&!j.has(i.target).length){j.triggerHandler(e,[i.target])}})}}})(jQuery,document,"outside");