diff --git a/teleop/htm/static/JS/index.js b/teleop/htm/static/JS/Index/index.js similarity index 100% rename from teleop/htm/static/JS/index.js rename to teleop/htm/static/JS/Index/index.js diff --git a/teleop/htm/static/JS/index_a_utils.js b/teleop/htm/static/JS/Index/index_a_utils.js similarity index 100% rename from teleop/htm/static/JS/index_a_utils.js rename to teleop/htm/static/JS/Index/index_a_utils.js diff --git a/teleop/htm/static/JS/index_b_gamepad.js b/teleop/htm/static/JS/Index/index_b_gamepad.js similarity index 100% rename from teleop/htm/static/JS/index_b_gamepad.js rename to teleop/htm/static/JS/Index/index_b_gamepad.js diff --git a/teleop/htm/static/JS/index_c_screen.js b/teleop/htm/static/JS/Index/index_c_screen.js similarity index 95% rename from teleop/htm/static/JS/index_c_screen.js rename to teleop/htm/static/JS/Index/index_c_screen.js index c9304712..e22659d9 100644 --- a/teleop/htm/static/JS/index_c_screen.js +++ b/teleop/htm/static/JS/Index/index_c_screen.js @@ -11,15 +11,15 @@ var screen_utils = { }, _init: function() { - this._arrow_images.left = this._create_image('../assets/im_arrow_left.png?v=' + this._version); - this._arrow_images.right = this._create_image('../assets/im_arrow_right.png?v=' + this._version); - this._arrow_images.ahead = this._create_image('../assets/im_arrow_up.png?v=' + this._version); - this._arrow_images.none = this._create_image('../assets/im_arrow_none.png?v=' + this._version); - this._wheel_images.black = this._create_image('../assets/im_wheel_black.png?v=' + this._version); - this._wheel_images.blue = this._create_image('../assets/im_wheel_blue.png?v=' + this._version); - this._wheel_images.red = this._create_image('../assets/im_wheel_red.png?v=' + this._version); - this._navigation_icons.play = this._create_image('../assets/icon_play.png?v=' + this._version); - this._navigation_icons.pause = this._create_image('../assets/icon_pause.png?v=' + this._version); + this._arrow_images.left = this._create_image('../static/assets/im_arrow_left.png?v=' + this._version); + this._arrow_images.right = this._create_image('../static/assets/im_arrow_right.png?v=' + this._version); + this._arrow_images.ahead = this._create_image('../static/assets/im_arrow_up.png?v=' + this._version); + this._arrow_images.none = this._create_image('../static/assets/im_arrow_none.png?v=' + this._version); + this._wheel_images.black = this._create_image('../static/assets/im_wheel_black.png?v=' + this._version); + this._wheel_images.blue = this._create_image('../static/assets/im_wheel_blue.png?v=' + this._version); + this._wheel_images.red = this._create_image('../static/assets/im_wheel_red.png?v=' + this._version); + this._navigation_icons.play = this._create_image('../static/assets/icon_play.png?v=' + this._version); + this._navigation_icons.pause = this._create_image('../static/assets/icon_pause.png?v=' + this._version); }, _decorate_server_message: function(message) { diff --git a/teleop/htm/static/JS/index_d_navigator.js b/teleop/htm/static/JS/Index/index_d_navigator.js similarity index 100% rename from teleop/htm/static/JS/index_d_navigator.js rename to teleop/htm/static/JS/Index/index_d_navigator.js diff --git a/teleop/htm/static/JS/index_e_teleop.js b/teleop/htm/static/JS/Index/index_e_teleop.js similarity index 100% rename from teleop/htm/static/JS/index_e_teleop.js rename to teleop/htm/static/JS/Index/index_e_teleop.js diff --git a/teleop/htm/static/JS/index_f_trainingSessions.js b/teleop/htm/static/JS/Index/index_f_trainingSessions.js similarity index 100% rename from teleop/htm/static/JS/index_f_trainingSessions.js rename to teleop/htm/static/JS/Index/index_f_trainingSessions.js diff --git a/teleop/htm/static/JS/index_video_hlp.js b/teleop/htm/static/JS/Index/index_video_hlp.js similarity index 100% rename from teleop/htm/static/JS/index_video_hlp.js rename to teleop/htm/static/JS/Index/index_video_hlp.js diff --git a/teleop/htm/static/JS/index_video_mjpeg.js b/teleop/htm/static/JS/Index/index_video_mjpeg.js similarity index 100% rename from teleop/htm/static/JS/index_video_mjpeg.js rename to teleop/htm/static/JS/Index/index_video_mjpeg.js diff --git a/teleop/htm/static/JS/mobileController/mobileController_a_app.js b/teleop/htm/static/JS/mobileController/mobileController_a_app.js index bc338f3c..ae073038 100644 --- a/teleop/htm/static/JS/mobileController/mobileController_a_app.js +++ b/teleop/htm/static/JS/mobileController/mobileController_a_app.js @@ -1,10 +1,10 @@ -import { topTriangle, bottomTriangle } from "/JS/mobileController/mobileController_b_shape_triangle.js" -import { Dot } from "/JS/mobileController/mobileController_b_shape_dot.js" +import { topTriangle, bottomTriangle } from "./mobileController_b_shape_triangle.js" +import { Dot } from "./mobileController_b_shape_dot.js" import { handleDotMove, detectTriangle, handleTriangleMove, initializeWS, sendJSONCommand } - from "/JS/mobileController/mobileController_c_logic.js" + from "./mobileController_c_logic.js" -import CTRL_STAT from '/JS/mobileController/mobileController_z_state.js'; // Stands for control state -import { redraw, app } from "/JS/mobileController/mobileController_d_pixi.js"; +import CTRL_STAT from './mobileController_z_state.js'; // Stands for control state +import { redraw, app } from "./mobileController_d_pixi.js"; window.addEventListener('load', () => { diff --git a/teleop/htm/static/JS/mobileController/mobileController_c_logic.js b/teleop/htm/static/JS/mobileController/mobileController_c_logic.js index 3bbbe45a..e8b91d1a 100644 --- a/teleop/htm/static/JS/mobileController/mobileController_c_logic.js +++ b/teleop/htm/static/JS/mobileController/mobileController_c_logic.js @@ -1,7 +1,7 @@ -import { topTriangle, bottomTriangle } from "/JS/mobileController/mobileController_b_shape_triangle.js" -import CTRL_STAT from '/JS/mobileController/mobileController_z_state.js'; -import { redraw } from '/JS/mobileController/mobileController_d_pixi.js'; +import { topTriangle, bottomTriangle } from "./mobileController_b_shape_triangle.js" +import CTRL_STAT from './mobileController_z_state.js'; +import { redraw } from './mobileController_d_pixi.js'; function initializeWS() { let WSprotocol = document.location.protocol === 'https:' ? 'wss://' : 'ws://'; diff --git a/teleop/htm/static/JS/mobileController/mobileController_d_pixi.js b/teleop/htm/static/JS/mobileController/mobileController_d_pixi.js index eb7cd49d..f6a5ee09 100644 --- a/teleop/htm/static/JS/mobileController/mobileController_d_pixi.js +++ b/teleop/htm/static/JS/mobileController/mobileController_d_pixi.js @@ -1,5 +1,5 @@ -import { topTriangle, bottomTriangle } from "/JS/mobileController/mobileController_b_shape_triangle.js" -import CTRL_STAT from '/JS/mobileController/mobileController_z_state.js'; +import { topTriangle, bottomTriangle } from "./mobileController_b_shape_triangle.js" +import CTRL_STAT from './mobileController_z_state.js'; const app = new PIXI.Application({ width: window.innerWidth, diff --git a/teleop/htm/static/JS/mobileController/mobileController_z_state.js b/teleop/htm/static/JS/mobileController/mobileController_z_state.js index 563d60ef..38c858d4 100644 --- a/teleop/htm/static/JS/mobileController/mobileController_z_state.js +++ b/teleop/htm/static/JS/mobileController/mobileController_z_state.js @@ -1,7 +1,7 @@ //Shared State variables that goes between the files/modules used -import { Dot } from "/JS/mobileController/mobileController_b_shape_dot.js" -import { topTriangle, bottomTriangle } from "/JS/mobileController/mobileController_b_shape_triangle.js" +import { Dot } from "./mobileController_b_shape_dot.js" +import { topTriangle, bottomTriangle } from "./mobileController_b_shape_triangle.js" class MobileControllerState { //The starting y coord when the triangles are relocated () diff --git a/teleop/htm/static/JS/menu_controls.js b/teleop/htm/static/JS/userMenu/menu_controls.js similarity index 100% rename from teleop/htm/static/JS/menu_controls.js rename to teleop/htm/static/JS/userMenu/menu_controls.js diff --git a/teleop/htm/static/JS/menu_logbox.js b/teleop/htm/static/JS/userMenu/menu_logbox.js similarity index 100% rename from teleop/htm/static/JS/menu_logbox.js rename to teleop/htm/static/JS/userMenu/menu_logbox.js diff --git a/teleop/htm/static/JS/menu_settings.js b/teleop/htm/static/JS/userMenu/menu_settings.js similarity index 100% rename from teleop/htm/static/JS/menu_settings.js rename to teleop/htm/static/JS/userMenu/menu_settings.js diff --git a/teleop/htm/templates/index.html b/teleop/htm/templates/index.html index 64dd45b4..196e7141 100644 --- a/teleop/htm/templates/index.html +++ b/teleop/htm/templates/index.html @@ -6,8 +6,8 @@