the purpose of this commit was to change the behaviour of the SLS but… #800
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…ton, before, if clicked it shows the SLS, but when a new SLS arrive we continue to show
the old, we must click on the close button and reopen it i use it on my car and it was very annoying, the i change the behaviour to update the SLS image without human interaction to do this i change the html and javascript code
secondary, on the deck of my car the button are too small, i enlarge it
on the web page (index.html) i change the font size of the button, from 7 to 12 px to better click it i change the transparency of the .slide-modal from 0.9 to 0.1 to make readeable the underneath layer
on the javascript (index.js) i declare a new global variable var show=0;
in
function showSlide(sid, last_update_time) i add
show=last_update_time;
console.log(slideimg.src)
to track the last update date for the use below
slideclose.onclick
show=0; to clear the variable when we close the SLS
in the
function populateEnsembleinfo()
i add
to check if a new SLS was arrived and to recall the showSlide function to update the image
What does this PR do and why is it necessary?
How was it tested? How can it be tested by the reviewer?
Any background context you want to provide?
What are the relevant tickets if any?
Screenshots (if appropriate)
Further notes