Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
<!DOCTYPE html>
<html>
<head>
<title>cheggit</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<style type="text/css">
* {margin:0;padding:0;}
body {
font-family: Arial,Helvetica,sans-serif;
}
a img {
border: 0 none;
}
.clear {clear:both;}
#main {
width: 800px;
height: 300px;
margin:100px auto;
}
.imgCage {
width:110px;
height:83px;
border:1px solid #ccc;
position:relative;
float:left;
margin:10px;
}
.notYet {
background-color: #333333;
height: 100%;
opacity: 0.4;
position: absolute;
top: 0;
left:0;
width: 100%;
z-index: 25;
}
.notYet span {
color: #FFFFFF;
display: block;
font-size: 60px;
font-weight: bold;
height: 30px;
left: 40px;
position: relative;
top: 5px;
width: 30px;
}
</style>
<script type="text/javascript">
$(document).ready(function(){ //besseres window.onload
var counter = 5; // hier fangen wir an zu zählen
var timer = 1000; // intervall 1sek.
$('.notYet span').html(counter); // zähler reinschreiben
setInterval(function() { // wird im intervall von timer aufgerufen
counter --; // counter runterzählen
$('.notYet span').html(counter); // counter reinschreiben
if(counter == '0'){ // wenn fertig
$('.notYet').fadeOut(200).remove(); // .notYet komplett raus aus markup
}
}, timer);
});
</script>
</head>
<body>
<div id="main">
<div class="imgCage">
<a href="http://www.html.de">
<img alt="" src="http://t1.ftcdn.net/jpg/00/00/03/28/110_F_32891_fkcdAKTHR5T8efBqrWBpL012vRbc89.jpg" />
</a>
<div class="notYet"><span></span></div>
</div>
<div class="imgCage">
<a href="http://www.html.de">
<img alt="" src="http://t1.ftcdn.net/jpg/00/00/03/28/110_F_32891_fkcdAKTHR5T8efBqrWBpL012vRbc89.jpg" />
</a>
<div class="notYet"><span></span></div>
</div>
<div class="imgCage">
<a href="http://www.html.de">
<img alt="" src="http://t1.ftcdn.net/jpg/00/00/03/28/110_F_32891_fkcdAKTHR5T8efBqrWBpL012vRbc89.jpg" />
</a>
<div class="notYet"><span></span></div>
</div>
<div class="imgCage">
<a href="http://www.html.de">
<img alt="" src="http://t1.ftcdn.net/jpg/00/00/03/28/110_F_32891_fkcdAKTHR5T8efBqrWBpL012vRbc89.jpg" />
</a>
<div class="notYet"><span></span></div>
</div>
<div class="clear"></div>
</div>
</body>
</html>
<a href="http://www.google.com/"><img src="foo.bar" /></a>
<a href="wait.php?l=af4d690a2cd"><img src="foo.bar" /></a>
$links = array('af4d690a2cd'=>'http://www.google.com/');
if (isset($_GET['l']) && isset($links[$_GET['l']])) {
$linkHash = $_GET['l'];
if (benutzer_hat_den_link_laenger_als_5_sekunden_angeschaut($link)) {
header('Location: '.$links[$linkHash]);
die;
} else {
echo 'Pöhser User: DU SOLLTEST 5 SEKUNDEN WARTEN! HAU AB!';
die;
}
}