Updated to dynamic tooltips

This commit is contained in:
Kasper Rynning-Tønnesen
2017-01-28 19:50:20 +01:00
parent def2846e97
commit 1bcf63f84e
4 changed files with 26 additions and 13 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -255,6 +255,18 @@ function init(){
Helper.sample();
$('.castButton-unactive').tooltip({
delay: 5,
position: "top",
tooltip: "Cast Zöff to TV"
});
$('.castButton-active').tooltip({
delay: 5,
position: "top",
tooltip: "Stop casting"
});
$( "#results" ).hover( function() { $("div.result").removeClass("hoverResults"); i = 0; }, function(){ });
$("#search").focus();
$("#embed-button").css("display", "inline-block");
@@ -288,6 +300,7 @@ initializeCastApi = function() {
receiverApplicationId: "E6856E24",
autoJoinPolicy: chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED});
var context = cast.framework.CastContext.getInstance();
chromecastReady = true
//$(".castButton-unactive").css("display", "block");
context.addEventListener(
cast.framework.CastContextEventType.SESSION_STATE_CHANGED,

View File

@@ -204,12 +204,12 @@
<div id="fullscreen">
<i class="material-icons">fullscreen</i>
</div>
<button class="castButton-unactive tooltipped" style="display:none;" data-position="top" data-delay="5" data-tooltip="Cast Zöff to TV">
<button class="castButton-unactive tooltipped" style="display:none;">
<i class="material-icons">cast</i>
</button>
<button class="castButton" is="google-cast-button">
</button>
<button class="castButton-active hide tooltipped" data-position="top" data-delay="5" data-tooltip="Stop casting" >
<button class="castButton-active hide tooltipped">
<i class="material-icons">cast_connected</i>
</button>
<div id="volume-button">