+ aula, updated info dialog

This commit is contained in:
Denys Konovalov
2020-12-07 19:21:54 +01:00
parent b925b19e7d
commit d13884deb5
4131 changed files with 5569 additions and 1566 deletions

View File

@@ -140,10 +140,10 @@
// Set handler for scene list toggle.
sceneListToggleElement.addEventListener('click', toggleSceneList);
// Start with the scene list open on desktop.
if (!document.body.classList.contains('mobile')) {
showSceneList();
}
// // Start with the scene list open on desktop.
// if (!document.body.classList.contains('mobile')) {
// showSceneList();
// }
// Set handler for scene switch.
scenes.forEach(function(scene) {
@@ -322,7 +322,7 @@
// Construct header element.
header.appendChild(iconWrapper);
header.appendChild(titleWrapper);
header.appendChild(closeWrapper);
// header.appendChild(closeWrapper);
// Create text element.
var text = document.createElement('div');
@@ -331,11 +331,14 @@
// Place header and text into wrapper element.
wrapper.appendChild(header);
wrapper.appendChild(text);
// wrapper.appendChild(text);
// Create a modal for the hotspot content to appear on mobile mode.
var modal = document.createElement('div');
modal.innerHTML = wrapper.innerHTML;
modal.querySelector('.info-hotspot-header').appendChild(closeWrapper);
modal.appendChild(text);
modal.classList.add('info-hotspot-modal');
document.body.appendChild(modal);