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.
#C1{
display:none;
z-index:1100;
position:absolute;
top:50%;
left:50%;
margin:-100px 0 0 -200px;
padding:20px 20px 20px 20px;
border: 2px solid red;
background-color: white;
-moz-border-radius: 10; // само за мозила :)
width:400px;
height:200px;
}
#C2{
display:none;
z-index: 1000;
position: fixed;
top: 0;
left': 0;
width: 100%;
height: 100%;
background-color: black;
opacity: 0.50
filter: alpha(opacity=50);
}
<div id="C1"></div>
<div id="C2"></div>
function showDialog(text){
$('#C1').css('display', 'inline').text(text);
$('#C2').css('display', 'inline');
}
function closeDialog(){
$('#C1').css('display', 'none');
$('#C2').css('display', 'none');
}
$.ajax({
type: "POST",
url: "some.php",
data: "h1=v2&h2=v2",
success: function(msg){
alert( "Data Saved: " + msg );
}
});