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>
<head>
<?
if(isset($HTTP_COOKIE_VARS["users_resolution"]))
$screen_res = $HTTP_COOKIE_VARS["users_resolution"];
else //means cookie is not found set it using Javascript
{
?>
<script language="javascript">
</script>
<?
}
?>
</head>
<body>
<?php
echo "Your screen resolution is set at ". $screen_res;
?>
</body>
</html>
<html>
<title></title>
<head>
<?
if(isset($HTTP_COOKIE_VARS["users_resolution"]))
$screen_res = $HTTP_COOKIE_VARS["users_resolution"];
else //means cookie is not found set it using Javascript
{
?>
<script language="javascript">
</script>
<?
}
?>
</head>
<body>
<?php
echo "Your screen resolution is set at ". $screen_res;
?>
</body>
</html>