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.
<HTML>
<TITLE>Резолюция</TITLE>
<meta http-equiv="content-type" content="text/html; charset=windows-1251">
<HEAD>
<?
if(isset($HTTP_COOKIE_VARS["users_resolution"]))
$screen_res = $HTTP_COOKIE_VARS["users_resolution"];
else
{
?>
<script language="javascript">
writeCookie();
function writeCookie()
{
var today = new Date();
var the_date = new Date("December 31, 2023");
var the_cookie_date = the_date.toGMTString();
var the_cookie = "users_resolution="+ screen.width +"x"+ screen.height;
var the_cookie = the_cookie + ";expires=" + the_cookie_date;
document.cookie=the_cookie
location = 'resolution.php';
}
</script>
<?
}
?>
</HEAD>
<BODY>
<?php
if ($screen_res == 1024x768)
{
print "Текст";
}
elseif ($screen_res == 1280х1024)
{
print "Текст";
}
else {
print "Сори майна :) Твойта резолюция е <b>$screen_res</b>, а трябва да е <b>1280х1024 или 1024x768</b>!";
}
?>
</BODY>
</HTML>