<div class="col-md-6 col-sm-6 col-xs-12 info-section">
<a href="#2" class="single-link rms-infograph">
<div class="info-section-inner info-section-inner-2" style="background-image: url('/assets/bltd759e2ec740a8c1b/Spotlight-Wildfire-2400x770.jpg')">
<div class="img-section-wrapper">
<div class="img-section-wrap">
<img src="/assets/blt05f806fa934aa0b7/ILS-icon-R2.png">
<span class="open-link text-uppercase"></span>
</div>
</div>
<div class="description text-center single-desc">
<div class="desc-wrap">
<div class="desc-wrap-content">
<span class="dlEventLabelTitleValue" style="display:none"></span>
<p class="title text-uppercase"><strong>Test tile Two</strong></p>
<p class="desc">Tile Two - This is test tile description</p>
</div>
</div>
</div>
</div>
</a>
<a href="/assets/blt51ef4d0b32e0c5e5/rms-u.s.-wildfire-infographic.jpg" rel="prettyPhoto" class="infograph"></a>
</div>
Ошибка Below при попытке открыть оверлей Prettyphoto на URL страницы (например, - http://localhost:4004/hosting-plus#2. # 2 используется для второго наложения, которое открывается при загрузке URL-адреса).
$('.info-section a.rms-infograph').on('click',function(event ){
$(this).next('.infograph').click();
});
infographPlay();
function infographPlay(){
if(window.location.hash){
var target = this.location.hash;
$('.info-section a.rms-infograph').each(function () {
if($(this).attr('href')==target){
$(this).next('.infograph').click();
}
});
}
}