Skip to content

Instantly share code, notes, and snippets.

@noestreich
Created January 19, 2017 12:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noestreich/1a490e4196df6be4ec7dfbfdb4191ef6 to your computer and use it in GitHub Desktop.
Save noestreich/1a490e4196df6be4ec7dfbfdb4191ef6 to your computer and use it in GitHub Desktop.
Fritz!Box LED-Schalter
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="shortcut icon" type="image/x-ico" href="http://fritz.box/favicon.ico" />
<link rel="stylesheet" type="text/css" href="fbled.css" /> <title></title>
<script type="text/javascript">
function getQuerystring(key, default_) {
if (default_==null) default_="";
key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
var regex = new RegExp("[\\?&]"+key+"=([^&#]*)");
var qs = regex.exec(window.location.href);
if(qs == null || qs[1] == '')
return default_;
else
return qs[1];
}
</script>
</head>
<body>
<header>
<img src="http://fritz.box/favicon.ico" width="32" height="32" alt="Keine Fritz!Box erkannt">Fritz!Box LEDs an/aus
</header>
<script type="text/javascript">
var sid_default="0123456789abcdef";
var url_default="http://fritz.box";
var sid=getQuerystring('sid',sid_default);
var url=decodeURIComponent(getQuerystring('url',url_default)); document.title = url; document.write('<div>'
+'<form method=\"POST\" action=\"'+url+'/system/led_display.lua?sid='+sid+'\" name=\"main_form\">'
+'<label><input name=\"led_display\" id=\"uiViewLedDisplay0\" value=\"0\" onchange=\"OnChangeLedDisplay(0)\" type=\"radio\">LED-Anzeige an<\/label>'
+'<label><input name=\"led_display\" id=\"uiViewLedDisplay2\" value=\"2\" onchange=\"OnChangeLedDisplay(1)\" checked=\"checked\" type=\"radio\">LED-Anzeige aus<\/label>'
+'<input name=\"sid\" value=\"'+sid+'\" type=\"hidden\">'
+'<button type=\"submit\" id=\"uiApply\" name=\"apply\">Ok<\/button>'
+'<\/form>'
+'<\/div>'); </script>
<noscript><h1>JavaScript disabled?!</h1></noscript>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment