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.
function OpenPhoto (ph) {
if (ph == 1) {document.getElementById('xxxphoto').src='./photos/'+xxxphoto1+'.jpg';}
if (ph == 2) {document.getElementById('xxxphoto').src='./photos/'+xxxphoto2+'.jpg';}
if (ph == 3) {document.getElementById('xxxphoto').src='./photos/'+xxxphoto3+'.jpg';}
document.getElementById('mess').style.visibility='visible';
document.getElementById('mess').style.top= getClientHeight()/2;
}
function getClientWidth() {
return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
}
function getClientHeight() {
return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
}
function getBodyScrollTop() {
return self.pageYOffset || (document.documentElement && document.documentElement.scrollTop) || (document.body && document.body.scrollTop);
}
function getBodyScrollLeft() {
return self.pageXOffset || (document.documentElement && document.documentElement.scrollLeft) || (document.body && document.body.scrollLeft);
}
function getClientCenterX() {
return parseInt(getClientWidth()/2)+getBodyScrollLeft();
}
function getClientCenterY() {
return parseInt(getClientHeight()/2)+getBodyScrollTop();
}
function BuyPhoto (ph) {
if (ph == 1) {document.getElementById('xxxphoto').src='./photos/'+xxxphoto1+'.jpg';}
if (ph == 2) {document.getElementById('xxxphoto').src='./photos/'+xxxphoto2+'.jpg';}
if (ph == 3) {document.getElementById('xxxphoto').src='./photos/'+xxxphoto3+'.jpg';}
document.getElementById('mess').style.visibility='visible';
document.getElementById('mess').style.top=getClientCenterY()-document.getElementById('mess').style.height/2;
document.getElementById('mess').style.left=getClientCenterX()-document.getElementById('mess').style.width/2;
}