update sumo_id and server
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
				
			|||||||
// The local/remote server URL
 | 
					// The local/remote server URL
 | 
				
			||||||
//var ROBOT_SERVER = '192.168.2.1:80';
 | 
					//var ROBOT_SERVER = '192.168.2.1:80';
 | 
				
			||||||
var ROBOT_SERVER = 'ws.achex.ca:4010';
 | 
					var ROBOT_SERVER = '165.227.140.64:80';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// The sumorobot object
 | 
					// The sumorobot object
 | 
				
			||||||
var sumorobot;
 | 
					var sumorobot;
 | 
				
			||||||
@@ -204,7 +204,7 @@ window.addEventListener('load', function() {
 | 
				
			|||||||
    $('.btn-robot-go').click(function() {
 | 
					    $('.btn-robot-go').click(function() {
 | 
				
			||||||
        // Get and validate the selected robot ID
 | 
					        // Get and validate the selected robot ID
 | 
				
			||||||
        var robotId = $('#robot-id').val().trim().toLowerCase();
 | 
					        var robotId = $('#robot-id').val().trim().toLowerCase();
 | 
				
			||||||
        if (robotId === '' || /^([a-f0-9]{6})$/.test(robotId) == false) {
 | 
					        if (robotId === '' || /^([a-f0-9]{8})$/.test(robotId) == false) {
 | 
				
			||||||
            $('#robot-id, #robot-label').addClass('has-error');
 | 
					            $('#robot-id, #robot-label').addClass('has-error');
 | 
				
			||||||
            return;
 | 
					            return;
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user