-
Notifications
You must be signed in to change notification settings - Fork 133
change the behaviour of the SLS #803
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
base: next
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,8 @@ var png_chevron_right = "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQ | |
|
|
||
| var png_chevron_down = "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAB0SURBVEiJ7Y87CoAwEAVHD2khqIUgCF5HUPBzUL9NgiGoSKKN7MAW4cEMAUEQnlAAycUWA6WPPAcWdZm1RcAErEDlGmiATd3M8ZNYvfXWuQYCoLUijSXvgdA1oCO1ITRv8JXfRV6Tn0XGt+VmJP1KLgh/ZQd6AiOdJgUioQAAAABJRU5ErkJggg==" | ||
|
|
||
| var show=0; | ||
|
|
||
| window.onload = function() { | ||
| var chevron_right = '<img width=24 height=24 src="data:image/png;base64,' + | ||
| png_chevron_right + '" />'; | ||
|
|
@@ -210,7 +212,7 @@ function playerLoad() { | |
| } | ||
|
|
||
| function setPlayerSource(sid) { | ||
| document.getElementById("player").src = "/stream/" + sid; | ||
| document.getElementById("player").src = "/mp3/" + sid; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Erm, is that correct? |
||
| playerLoad(); | ||
| } | ||
|
|
||
|
|
@@ -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) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove the console.log |
||
| } | ||
|
|
||
| var slideclose = document.getElementsByClassName("slideclose")[0]; | ||
| slideclose.onclick = function() { | ||
| slide_modal.style.display = "none"; | ||
| show=0; | ||
| } | ||
|
|
||
|
|
||
|
|
||
| function parseTemplate(template, data) { | ||
| return template.replace(/\$\{(\w+)\}/gi, function(match, parensMatch) { | ||
| if (data[parensMatch] !== undefined) { | ||
|
|
@@ -359,6 +366,12 @@ function populateEnsembleinfo() { | |
|
|
||
| s["dls"] = ""; | ||
|
|
||
| global_service_mot_time=service.mot.time; | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what is this global_service_mot_time? |
||
| if (service.mot.time>show && show ) { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please indent the code with four spaces, not tabs |
||
| var tempo = service.mot.time; | ||
| showSlide(parseInt(service.sid), service.mot.time); | ||
| } | ||
|
|
||
| if (service.mot && service.mot.time > 0) { | ||
| s["dls"] += '<button type=button onclick="showSlide('; | ||
| s["dls"] += service.sid + ', ' + service.mot.time; | ||
|
|
@@ -580,4 +593,3 @@ function populateConstellation() { | |
| r.send(null); | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
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