Самое примечательное, что кнопка "Смотреть на карте" из header выводит окошко с картой. Сделано при помощи CSS
/* Базовые стили модального окна */
.overlay {
background-color: rgba(0, 0, 0, 0.7);
bottom: 0;
cursor: default;
left: 0;
opacity: 0;
position: fixed;
right: 0;
top: 0;
visibility: hidden;
display: block;
pointer-events: none;
z-index: -999999;
-webkit-transition: opacity .5s;
-moz-transition: opacity .5s;
-ms-transition: opacity .5s;
-o-transition: opacity .5s;
transition: opacity .5s;
}
.overlay:target {
display: block;
pointer-events: auto;
/*visibility: visible;
opacity: 1;*/
}
.popup img{
display: inline;
border: none;
padding: 10px;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
background: #ffffff;
}
.popup {
width: 850px;
height: 500px;
background-color: #fff;
border: 3px solid #fff;
left: 50%;
opacity: 0;
padding: 15px;
position: fixed;
text-align: justify;
font: 14px Helvetica, Arial, Sans-Serif;
top: 14%;
visibility: hidden;
display: inline-block;
/*pointer-events: none;*/
z-index: 1110;
-webkit-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
-ms-border-radius: 10px;
-o-border-radius: 10px;
border-radius: 10px;
-webkit-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
-moz-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
-ms-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
-o-box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
box-shadow: 0 1px 1px 2px rgba(0, 0, 0, 0.4) inset;
-webkit-transition: opacity .5s, top .5s;
-moz-transition: opacity .5s, top .5s;
-ms-transition: opacity .5s, top .5s;
-o-transition: opacity .5s, top .5s;
transition: opacity .5s, top .5s;
}
.overlay:target+.popup {
top: 50%;
opacity: 1;
visibility: visible;
}
/* Кнопка закрытия окна */
.close {
background-color: rgba(0, 0, 0, 0.8);
border: 2px solid #ccc;
height: 24px;
line-height: 24px;
position: absolute;
right: -13px;
font-weight: bold;
text-align: center;
text-decoration: none;
top: -15px;
width: 24px;
-webkit-border-radius: 15px;
-moz-border-radius: 15px;
-ms-border-radius: 15px;
-o-border-radius: 15px;
border-radius: 15px;
-moz-box-shadow: 1px 1px 3px #000;
-webkit-box-shadow: 1px 1px 3px #000;
box-shadow: 1px 1px 3px #000;
}
.close:before {
color: rgba(255, 255, 255, 0.9);
content: "X";
font-size: 14px;
text-shadow: 0 -1px rgba(0, 0, 0, 0.9);
}
.close:hover {
background-color: rgba(64, 128, 128, 0.8);
}
.popup p, .popup div {
margin-bottom: 10px;
}
body, html {
padding: 0;
margin: 0;
width: 100%;
height: 100%;
}
#map {
width: 100%;
height: 90%;
}
#map_product {
width: 100%;
height: 90%;
}
В html простейшее:
<a class="button" href="#win1" id="maplocationinfo">Смотреть на карте</a>
<a href="#x" class="overlay" id="win1"></a>
<div class="popup">
<form id="search_route">
<table width="98%" border="0" cellpadding="0">
<tbody>
<tr>
<td width="185">
<b>Место отправления: </b>
</td>
<td width="360">
<input id="start" type="text" value="Здесь находитесь Вы " style="width: 350px;">
</td>
<td width="230">
<input type="submit" value="Проложить маршрут"/>
</td>
</tr>
<tr>
<td width="185">
<b>Место прибытия:</b>
</td>
<td width="360"><input id="end" type="text" value="Конечная точка маршрута " style="width: 350px;">
</td>
<td width="230">
<div id="resmarshrut"></div>
</td>
</tr>
</tbody>
</table>
</form>
<div id="map"></div>
<a class="close"title="Закрыть" href="#close"></a>
</div>
а вот при вызове того же самого из позиции в файле product.tpl (кнопка "Схема проезда") - индейская народная изба !!!!! окошко не выходит, а перебрасывает на главную....