Adds glow to desktop streaming icon if desktop streaming is active.
This commit is contained in:
parent
6fe0864402
commit
cbeff0d7b7
|
@ -307,3 +307,8 @@ form {
|
|||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.glow
|
||||
{
|
||||
text-shadow: 0px 0px 30px #06a5df, 0px 0px 10px #06a5df, 0px 0px 5px #06a5df,0px 0px 3px #06a5df;
|
||||
}
|
||||
|
|
|
@ -247,6 +247,7 @@ function streamSwitchDone() {
|
|||
//window.setTimeout(
|
||||
// function () {
|
||||
switchInProgress = false;
|
||||
Toolbar.changeDesktopSharingButtonState(isUsingScreenStream);
|
||||
// }, 100
|
||||
//);
|
||||
}
|
||||
|
|
16
toolbar.js
16
toolbar.js
|
@ -238,5 +238,21 @@ var Toolbar = (function (my) {
|
|||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Sets the state of the button. The button has blue glow if desktop streaming is active.
|
||||
* @param active the state of the desktop streaming.
|
||||
*/
|
||||
my.changeDesktopSharingButtonState = function (active) {
|
||||
var button = $("#desktopsharing > a");
|
||||
if(active)
|
||||
{
|
||||
button.addClass("glow");
|
||||
}
|
||||
else
|
||||
{
|
||||
button.removeClass("glow");
|
||||
}
|
||||
}
|
||||
|
||||
return my;
|
||||
}(Toolbar || {}));
|
||||
|
|
Loading…
Reference in New Issue