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.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript">
function init(){
var password_fake = document.getElementById('password_fake');
var password = document.getElementById('password');
//когда пустой пароль меняем на текст
if(password.value==''){
password.className = "hide";
password_fake.className = "";
}
//если клик на поле с текстом "пароль", то меняем поля
password_fake.onclick=function(){
password_fake.className = "hide";
password.className = "";
//меняем фокус на поле для пароля
password.focus();
};
}
</script>
<style type="text/css">
<!--
.hide {
display:none;
}
-->
</style>
</head>
<body onload="init();">
<form id="form" name="form" method="post" action="">
<input name="login" type="text" value="" id="login" />
<input name="password_fake" type="text" id="password_fake" value="пароль" class="hide" />
<input name="password" type="password" id="password" value="" />
<input name="" type="submit" value="Да" />
</form>
</body>
</html>