This refresh-button is usefull when DZ is loaded from a startpage on a iOS device.
Script
Code: Select all
$(function () {
// Insert Refresh button
var btn = $("<div class='refresh-button' onclick='window.location.reload()'><img src='//www.digizon.nl/domoticz/refresh-button.png' /></div>");
$(".navbar-inner").prepend(btn);
}); // Doc Ready
Code: Select all
@media (max-width: 767px) {
.refresh-button {
display: inline-block;
position: absolute;
margin: 2px 0 0 2px;
padding: 2px 2px 0px 2px;
border: 1px solid #e3e3e3;
border-radius: 4px;
background: rgba(0, 0, 0, 0.15);
}
.refresh-button img {
display: block;
}
}