diff --git a/web/web.php b/web/web.php index 6d511b79245701117b679c31bb8c2baf2c6dfe94..65d20c65cae2bcc279f5e5b2d2706412d2062eef 100644 --- a/web/web.php +++ b/web/web.php @@ -4,6 +4,7 @@ * using PHP because screw typing */ $cokeaddress = "http://130.95.13.96/"; + $cokeurl = $cokeaddress; ?> @@ -111,7 +112,12 @@ }); $(".brightness").change(function() { - console.log('/brightness?bright='+document.getElementById('bright').value); + console.log('brightness?bright='+document.getElementById('bright').value); + $.ajax({ + url: 'brightness?bright='+document.getElementById('bright').value, + dataType: "jsonp", + crossDomain: true + }); return false; });