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.
<title>+18</title>
<script>
function panic(title)
{
document.getElementById('panicdiv').className = 'displaynone_not';
document.getElementById('panicdiv').height = screen.height;
document.getElementById('panicdiv').width = screen.width;
document.getElementById('panicframe').height = screen.height;
document.getElementById('panicframe').width = screen.width;
document.getElementById('panicframe').src = 'http://google.bg';
document.title = title;
}
function hidepanic(title)
{
document.getElementById('panicdiv').className = 'displaynone';
document.title = title;
}
</script>
<style>
.displaynone {
display: none;
}
.displaynone_not {
display: block;
}
</style>
<a href="javascript:;" onclick="panic('Google');" class="hide" style="text-decoration: none; color: #CCCCCC;">Скрий</a>
<div id="panicdiv" name="panicdiv" class="displaynone" style="position: absolute; left: 0px; top: 0px; width: 100%; height: 100%; z-index: 100; background-color: white; ">
<a href="javascript:hidepanic('Твоя стар титле');" style="text-decoration: none; color: #CCCCCC;"><small><< Върни се отново в сайта</small></a>
<iframe id="panicframe" src="" style="z-index: 101; border: 0px; width: 100%; height: 100%;"></iframe>
</div>
panic('Google'); и hidepanic('18+'); това ти е за title то а това е за линка document.getElementById('panicframe').src = 'http://google.com';