mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
FS20-Switching enabled
git-svn-id: https://svn.fhem.de/fhem/trunk@338 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0940c0df0b
commit
ce1785d7df
@ -90,6 +90,7 @@ my $n = 0;
|
||||
##################
|
||||
# iPhone Anpassungen:
|
||||
|
||||
#$me = "http://www.dhs-computer.dyndns.org/cgi-bin4/fhemiphone.pl" if(!$me);
|
||||
$me = "" if(!$me);
|
||||
my $q = new CGI;
|
||||
$ti = 1;
|
||||
@ -460,9 +461,9 @@ roomOverview($)
|
||||
print " <li><a href=\"$me?room=all\">All together</a></li>";
|
||||
|
||||
print " <li class=\"group\">Help/Configuration:</li>";
|
||||
print " <li><a href=\"$howto\">Howto</a></li>";
|
||||
print " <li><a href=\"$faq\">FAQ</a></li>";
|
||||
print " <li><a href=\"$doc\">Details</a></li>";
|
||||
print " <li><a href=\"$howto\" target=\"_self\">Howto</a></li>";
|
||||
print " <li><a href=\"$faq\" target=\"_self\">FAQ</a></li>";
|
||||
print " <li><a href=\"$doc\" target=\"_self\">Details</a></li>";
|
||||
print " <li><a href=\"$me?cmd=style examples\">Examples</a></li>";
|
||||
print " <li><a href=\"$me?cmd=style list\">Edit files</a></li>";
|
||||
|
||||
@ -556,7 +557,7 @@ showRoom()
|
||||
$v = "" if(!defined($v));
|
||||
print" <div class=\"row\">";
|
||||
print" <label>$d</label>";
|
||||
print" <div class=\"toggle\" onclick=\"\" ";
|
||||
print" <div class=\"toggle\" onclick=\"fhz_set_fs20('$me?cmd.$d=set $d ', this)\" ";
|
||||
if ($v eq "on") {
|
||||
print "toggled='true'";
|
||||
} else{
|
||||
|
@ -381,3 +381,11 @@ function $(id) { return document.getElementById(id); }
|
||||
function ddd() { console.log.apply(console, arguments); }
|
||||
|
||||
})();
|
||||
|
||||
function fhz_set_fs20(fhemiphone, tgbutton)
|
||||
{
|
||||
var mygetrequest=new XMLHttpRequest();
|
||||
newstate = tgbutton.attributes.getNamedItem("toggled").value == "true" ? "on":"off";
|
||||
mygetrequest.open("GET", fhemiphone+newstate, true);
|
||||
mygetrequest.send(null);
|
||||
}
|
Loading…
Reference in New Issue
Block a user