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

Updated JavaScript for the client.

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