Skip to content
Snippets Groups Projects
Commit 5d776d49 authored by Mitchell Pomery's avatar Mitchell Pomery
Browse files

Added Ajax back to web requests

parent 75ec041c
No related merge requests found
......@@ -4,6 +4,7 @@
* using PHP because screw typing
*/
$cokeaddress = "http://130.95.13.96/";
$cokeurl = $cokeaddress;
?>
<!DOCTYPE html>
<html>
......@@ -111,7 +112,12 @@
});
$(".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;
});
......
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