JSFiddle - React, Tailwind, and code Playground
by daimz
HTML
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!-- Consider adding a manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<link rel="stylesheet" href="css/style.css">
<!--[if gte IE 9]>
<style type="text/css">
.gradient {
filter: none;
}
</style>
<![endif]-->
<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
</head>
<body>
<header>
</header>
<div role="main">
<div id="example" style="position:absolute; top:0; left:o; width:100%; height:100%;"></div>
</div>
<footer>
</footer>
</body>
</html>
CSS
body{
text-align: center; /* fix ie */
background-color: #AFAFAF;
margin: 0px;
padding: 0px;
font-size: 14px;
}
#example{
height: 100%;
width: 100%;
margin: 0;
background: none;
}
#example div div:first-child div:first-child div div:first-child img{
opacity:0.5;
}
article.infobuble{
}
article.infobuble section.content{
background:rgba(0,0,0,0.7);
padding:10px 10px;
width:250px;
border-radius: 10px 10px 10px 0;
}
article.infobuble section.content h2{
margin: 0;
font-size: 1em;
}
article.infobuble section.content p{
margin: 5px 0 0 0;
display:block;
height:55px;
background:#fff;
}
#example div div:first-child div:first-child div div article.infobuble section.content img{
width:70px;
opacity: 1;
display:inline-block;
float:left;
border-radius: 10px;
border:2px solid #666;
margin-right:5px;
}
article.infobuble div.arrow{
width: 0;
height: 0;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-top: 20px solid rgba(0,0,0,0.7);
}
JavaScript
/*
* GMAP3 Plugin for JQuery
* Version : 4.1
* Date : 2011-11-18
* Licence : GPL v3 : http://www.gnu.org/licenses/gpl.html
* Author : DEMONTE Jean-Baptiste
* Contact : [email protected]
* Web site : http://gmap3.net
*
* Copyright (c) 2010-2011 Jean-Baptiste DEMONTE
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
* - Neither the name of the author nor the names of its contributors
* may be used to endorse or promote products derived from this
* software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
(function ($) {
/***************************************************************************/
/* ...