Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change the behaviour of the SLS #803

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open

Conversation

davidea72
Copy link

change the behaviour of the SLS, it was static
now when you click on SLS it show the image as usual and when a new image is available it show the new image automatically.
i change the transparecy too and reduce the slidecaption height

to test it, just run welle-cli and tune to a station with sls, when it's received click on it and wait for the new image

…e image as usual and when a new image is available it show the new image automatically. i change the transparecy too and reduce the slidecaption height
@AlbrechtL
Copy link
Owner

Thanks @davidea72 .

@mpbraendli Can you have a look, please?

@mpbraendli
Copy link
Collaborator

Thanks for the PR, I've written some comments for you.

Sorry for the delay, if you're not interested in this anymore, let me know.

@davidea72
Copy link
Author

please led me to the comment, i can't find it.

@mpbraendli
Copy link
Collaborator

The comments are in-line, inside the github user interface.

@davidea72
Copy link
Author

i know i can seem to be a newbie, but i can't find the comments , are they public?

@andimik
Copy link
Contributor

andimik commented Oct 28, 2024

I cannot find @mpbraendli 's comments neither.

@@ -359,6 +366,12 @@ function populateEnsembleinfo() {

s["dls"] = "";

global_service_mot_time=service.mot.time;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this global_service_mot_time?

@@ -359,6 +366,12 @@ function populateEnsembleinfo() {

s["dls"] = "";

global_service_mot_time=service.mot.time;
if (service.mot.time>show && show ) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please indent the code with four spaces, not tabs

@@ -228,13 +230,18 @@ function showSlide(sid, last_update_time) {
var last_update = new Date(last_update_time * 1000);
slidecaption.innerHTML = last_update;
slide_modal.style.display = "block";
show=last_update_time;
console.log(slideimg.src)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the console.log

@@ -210,7 +212,7 @@ function playerLoad() {
}

function setPlayerSource(sid) {
document.getElementById("player").src = "/stream/" + sid;
document.getElementById("player").src = "/mp3/" + sid;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Erm, is that correct?

@@ -13,6 +13,8 @@ var png_chevron_right = "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQ

var png_chevron_down = "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAB0SURBVEiJ7Y87CoAwEAVHD2khqIUgCF5HUPBzUL9NgiGoSKKN7MAW4cEMAUEQnlAAycUWA6WPPAcWdZm1RcAErEDlGmiATd3M8ZNYvfXWuQYCoLUijSXvgdA1oCO1ITRv8JXfRV6Tn0XGt+VmJP1KLgh/ZQd6AiOdJgUioQAAAABJRU5ErkJggg=="

var show=0;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please give a more meaningful name to that variable

@mpbraendli
Copy link
Collaborator

Do you see them now? They were marked 'pending', maybe that's why they were visible only to me. Sorry about that.

@andimik
Copy link
Contributor

andimik commented Oct 29, 2024

Yes, now it's public.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants