Commit 704b93d0 authored by Cédric Bonhomme's avatar Cédric Bonhomme

Updated JavaScript for the client.

parent 88d47cc1
#! /usr/bin/env bash #! /usr/bin/env bash
nohup python runserver.py & nohup python /root/EV3WebController/runserver.py &
...@@ -39,7 +39,7 @@ $(document).ready(function() { ...@@ -39,7 +39,7 @@ $(document).ready(function() {
console.log('ArrowLeft down') console.log('ArrowLeft down')
var ip = document.domain var ip = document.domain
var power = 60 var power = 60
var ajax_url = "http://" + ip + ":5000/move/left" var ajax_url = "http://" + ip + ":5000/move/left?forever=1"
$.ajax({ $.ajax({
type: "GET", type: "GET",
...@@ -56,7 +56,7 @@ $(document).ready(function() { ...@@ -56,7 +56,7 @@ $(document).ready(function() {
console.log('ArrowRight down') console.log('ArrowRight down')
var ip = document.domain var ip = document.domain
var power = 60 var power = 60
var ajax_url = "http://" + ip + ":5000/move/right" var ajax_url = "http://" + ip + ":5000/move/right?forever=1"
$.ajax({ $.ajax({
type: "GET", type: "GET",
......
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