Commit 5d776d49 authored by Mitchell Pomery's avatar Mitchell Pomery

Added Ajax back to web requests

parent 75ec041c
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* using PHP because screw typing * using PHP because screw typing
*/ */
$cokeaddress = "http://130.95.13.96/"; $cokeaddress = "http://130.95.13.96/";
$cokeurl = $cokeaddress;
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
...@@ -111,7 +112,12 @@ ...@@ -111,7 +112,12 @@
}); });
$(".brightness").change(function() { $(".brightness").change(function() {
console.log('<?=$cokeaddress?>/brightness?bright='+document.getElementById('bright').value); console.log('<?=$cokeurl?>brightness?bright='+document.getElementById('bright').value);
$.ajax({
url: '<?=$cokeaddress?>brightness?bright='+document.getElementById('bright').value,
dataType: "jsonp",
crossDomain: true
});
return false; return false;
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment