<header>
{% for group in project.panoGroups %}
{% for pano in group.panos %}
<h1>{{pano.description.name}}</h1>
{% endfor %}
{% endfor %}
</header>
<h1 class="panorama-title"></h1>
<p class="panorama-desc"></p>
<script>
// Dynamic Pano Title and Description
function updatePanorama(panoid) {
window.history.pushState(null, null, "#s=" + panoid);
var panotourPlayer = getTourPlayer();
var groupid = panotourPlayer.get("scene["+panoid+"].group");
var titleid = panotourPlayer.get("scene["+panoid+"].titleid");
//HTML tags with this class (panorama-title) will display the current panorama title
jQuery('.panorama-title').html(ktools.I18N.getInstance().getMessage(titleid));
//HTML tags with this class (panorama-desc) will display the current panorama description
var descriptionid = panotourPlayer.get("scene["+panoid+"].descriptionid");
if (descriptionid != "") {
jQuery('.panorama-desc').show();
jQuery('.panorama-desc').html(ktools.I18N.getInstance().getMessage(descriptionid));
}else {
jQuery('.panorama-desc').hide();
}
}
</script>
Users browsing this forum: No registered users and 1 guest