Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
#box {
position: absolute; // Абсолютно позициониране на елемента спрямо прозореца
width: 500px; height: 370px; // Размери на елемента
z-index: 3; // Елемента стои над другите
top: 50%; left: 50%;
margin-left: -250px; // Половината от ширината на кутийката
margin-top: -175px; // Половината от височината на кутийката
display: none; // Елемента е скрит, докато не бъде извикан от джаваскрипта
}
function showBox(){
document.getElementById('box').style.display = 'block';
}
function hideBox(){
document.getElementById('box').style.display = 'none';
}