Manual Book Iot4
Manual Book Iot4
Manual Book Iot4
.popup .show {
visibility: visible;
-webkit-animation: fadeIn 1s;
animation: fadeIn 1s;
}
@keyframes fadeIn {
from {opacity: 0;}
to {opacity:1 ;}
}
</style>
</head>
<body>
<div id="div1">
<div class="overlay">
<script>
if ( y != x) {
document.getElementById("div1").style.opacity = "0";
}
else
{
document.getElementById("div1").style.opacity = "1";
}
function myFunction_umbul() {
var popup = document.getElementById("myPopup_umbul");
popup.classList.toggle("show");
}
function myFunction_kasbah() {
var popup = document.getElementById("myPopup_kasbah");
popup.classList.toggle("show");
}
function myFunction_merpati() {
var popup = document.getElementById("myPopup_merpati");
popup.classList.toggle("show");
}
function myFunction_kedunggaleng() {
var popup = document.getElementById("myPopup_kedunggaleng");
popup.classList.toggle("show");
}
function myFunction_legundi() {
var popup = document.getElementById("myPopup_legundi");
popup.classList.toggle("show");
}
</script>
<h2>by sdapro</h2>
</body>
</html>
e. File peta “petapro.gif”
File peta kota probolinggo dengan format GIF. Dengan ukuran 1,25 MB
f. Folder dengan nama “Vchart” yang berisi:
1. Chart.bundle.JSscript
2. Chart.bundle.min. JSscript
3. Chart. JSscript
4. Chart.min. JSscript
(download di internet)
5. file shp untuk masing masing Stasiun contoh untuk “sta_umbul.php”
yaitu.
//--------------------------------------------------------
<?php
include_once ('connect.php');
$hariini = date("'Y-m-d'", time());
$tm = mysqli_query($dbc, "SELECT tgl FROM debit WHERE nba='ubl' and tgl >
$hariini order by tgl asc");
$ha = mysqli_query($dbc, "SELECT ha FROM debit WHERE nba='ubl' and tgl >
$hariini order by tgl asc");
?>
<html>
<head>
<title>chart umbul</title>
<script src="Chart.bundle.js"></script>
<style type="text/css">
.container {
width: 50%;
margin: 5px auto;
}
</style>
</head>
<body>
<h3>sta. Umbul</h3>
<div class="container">
<canvas Id="myChart" width="100" height="70"></canvas>
</div>
<script>
var ctx = document.getElementById("myChart");
var myChart = new Chart(ctx, {
type: 'bar',
data: {
labels: [<?php while ($b = mysqli_fetch_array($tm)){ echo '"' . $b['tgl'].
'",';}?>],
datasets: [{
label: '= Tinggi air (cm)',
data: [<?php while ($p = mysqli_fetch_array($ha)) { echo '"' . $p['ha']
. '",';}?>],
backgroundColor: [
'rgba(54, 162, 235, 0.2)'],
borderColor: [
'rgba(54, 162, 235, 1)'],
borderWidth: 1
}]
},
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero: true
}
}]
}
}
});
</script>
</body>
</html>