aaronmaynard / rosdashboard Goto Github PK
View Code? Open in Web Editor NEWWeb based dashboard to interface with your ROS creation.
License: GNU General Public License v3.0
Web based dashboard to interface with your ROS creation.
License: GNU General Public License v3.0
This issue is a good first issue for those looking to get into git, project collaboration, or html/javascript in general. It is tied to the respective project page and will be automatically sorted.
โค๏ธ Thanks for helping!
Sometimes a user may not want to display a mini-map on their screen to maximize the space available for the video stream. The goal of this issue is to change the existing code to make that happen!
The base of the code can be found in /js/mod.js
function toggleJoy() {
var x = document.getElementById("joystick");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
function toggleMiniMap() {
var x = document.getElementById("mini-map");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
There is already an event listener which is currently looking for a checkbox state change that toggles the on-screen joystick.
We appreciate your effort in taking the time to work on this issue and help out the open source community.
If you need any help, feel free to ask below. We are always happy to help ๐
This issue is a good first issue for those looking to get into git, project collaboration, or html/javascript in general. It is tied to the respective project page and will be automatically sorted.
โค๏ธ Thanks for helping!
The auxiliary buttons need to be able to do something! For now, make them display a message in the browser console.log(), informing which button was pressed. The functions will later be used to send ROS messages, but that's an issue for another time.
Non-ROS based code such as this can be added in /js/mod.js. Each button in index.html that needs an onclick function is can be found below.
<!-- CENTRAL BUTTONS -->
<div class="auxButtons uiElement">
<button class="buttonAux" onclick=""><span>Y</span><span>AUX 1</span></button>
<br>
<button class="buttonAux" onclick=""><span>X</span><span>AUX 2</span></button>
<button class="buttonAux" onclick=""><span>B</span><span>AUX 3</span></button>
<br>
<button class="buttonAux" onclick=""><span>A</span><span>AUX 4</span></button>
</div>
W3schools has a great tutorial on the onclick event. https://www.w3schools.com/jsref/event_onclick.asp
We appreciate your effort in taking the time to work on this issue and help out the open source community.
If you need any help, feel free to ask below. We are always happy to help ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.