JSFiddle - React, Tailwind, and code Playground
by salitrapraveen
HTML
<div class="overlay" style="
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #9BBADB;
opacity: 0.3;
"></div>
<div class="loading" style="
position: fixed;
width: 118px;
border-radius: 2px;
color: #2BA7E2;
top: 40%;
left: 50%;
margin-left: -50px;
background: #FFF url(https://www.gmfamilyfirst.com/byo/loyalty/common/images/loadingCircle.gif) 2px 4px no-repeat;
padding: 10px 10px 10px 44px;
">Loading...</div>
<div class="loading" style="
position: fixed;
width: 118px;
border-radius: 2px;
color: #2BA7E2;
top: 5px;
left: 50%;
margin-left: -60px;
background: #FFF url(https://www.gmfamilyfirst.com/byo/loyalty/common/images/loadingCircle.gif) 2px 4px no-repeat;
padding: 10px 10px 10px 44px;
z-index: 1050;
">Loading...</div>
<div class="loading" style="
position: fixed;
width: 40px;
border-radius: 2px;
color: #2BA7E2;
top: 5px;
left: 50%;
margin-left: -20px;
background: #FFF url(https://www.gmfamilyfirst.com/byo/loyalty/common/images/loadingCircle.gif) 4px 4px no-repeat;
z-index: 1050;
height: 40px;
"></div>
CSS
#map-canvas {
box-shadow: 0px 0px 2px #2AA5DF;
height: 400px;
display: none;
margin: 0px 12px;
}
JavaScript
$(document).on('click', '.navbar-collapse.in', function (e) {
if ($(e.target).is('a')) {
$(this).collapse('hide');
}
});