Git Product home page Git Product logo

rosdashboard's People

Contributors

aaronmaynard avatar harshiiiit avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rosdashboard's Issues

Hide mini-map on toggle

๐Ÿ“ฆ Project: UI Settings

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!

๐Ÿ“‹ Issue:

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!

Here

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";
  }
}

Helpful Hint:

There is already an event listener which is currently looking for a checkbox state change that toggles the on-screen joystick.

๐Ÿ‘ฅ Contributing:

  • Comment in this issue that you would like to do it.
  • Open the ROSDashboard GitHub page and click the โ˜… Star and then โ‘‚ Fork buttons.
  • Once you've made sure all your changes work correctly and committed all your changes,
  • Visit your fork on GitHub.com (https://github.com/YOUR-USER-NAME/ROSDashboard) and create a pull request for your changes.
  • Make sure your pull request describes exactly what you changed and references this issue (include the issue number in the title like this: #1)
  • Please do not fix more than one issue at a time. Your pull request should only fix what is described in this issue.

๐Ÿ†˜ Asking for help

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 ๐Ÿ˜„

Add onClick() events for the AUX buttons

๐Ÿ“ฆ Project: UI Settings

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!

๐Ÿ“‹ Issue:

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.

Here

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>

Helpful Hint:

W3schools has a great tutorial on the onclick event. https://www.w3schools.com/jsref/event_onclick.asp

๐Ÿ‘ฅ Contributing:

  • Comment in this issue that you would like to do it.
  • Open the ROSDashboard GitHub page and click the โ˜… Star and then โ‘‚ Fork buttons.
  • Once you've made sure all your changes work correctly and committed all your changes,
  • Visit your fork on GitHub.com (https://github.com/YOUR-USER-NAME/ROSDashboard) and create a pull request for your changes.
  • Make sure your pull request describes exactly what you changed and references this issue (include the issue number in the title like this: #2)
  • Please do not fix more than one issue at a time. Your pull request should only fix what is described in this issue.

๐Ÿ†˜ Asking for help

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 ๐Ÿ˜„

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.