<html><head>
<script src="jquery.min.js" type="text/javascript"></script>
<style type="text/css">
body { background-color: #fdfdfd; padding: 0 20px; color:#000; font: 13px/18px monospace; width: 800px; background-image: url("tlo.png");}
a { color: #360; }
h3 { padding-top: 20px; }
</style>
<!-- Load player theme -->
<link rel="stylesheet" href="themes/maccaco/projekktor.style.css" type="text/css" media="screen" />
<!-- Load jquery -->
<script type="text/javascript" src="jquery-1.9.1.min.js"></script>
<!-- load projekktor -->
<script type="text/javascript" src="projekktor-1.3.09.min.js"></script>
</head>[html][/html]
<body>
<style>
@font-face {
font-family: digital;
src: url(digital-7.ttf);
}
@font-face {
font-family: lato;
src: url(Lato-Regular.ttf);
}
@font-face {
font-family: latob;
src: url(Lato-Black.ttf);
}
</style>
<div style="margin-top:20px">
<img src="1900.png" width="290px"></div>
<div id="tableHolder"></div>
<div id="tableHolder_grafika"></div>
<script type="text/javascript">
$(document).ready(function(){
refreshTable();
});
function refreshTable(){
$('#tableHolder').load('kursy.php', function(){
setTimeout(refreshTable, 300000); /* 600000 10 minut */
});
}
$(document).ready(function(){
refreshTable_graf();
});
function refreshTable_graf(){
$('#tableHolder_grafika').load('grafika.php', function(){
setTimeout(refreshTable_graf, 7200000); /* 2 godziny */
});
}
</script>
</html>
Jak to zrobic na RPi żeby sie uruchomiło samo a nie żebym musiał klikać. Jak klikne na uruchomionym indexie.php to wszystko dziła jak należy.