mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Updated to dynamic tooltips
This commit is contained in:
4
public/dist/embed.min.js
vendored
4
public/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
8
public/dist/main.min.js
vendored
8
public/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -255,6 +255,18 @@ function init(){
|
|||||||
|
|
||||||
Helper.sample();
|
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(){ });
|
$( "#results" ).hover( function() { $("div.result").removeClass("hoverResults"); i = 0; }, function(){ });
|
||||||
$("#search").focus();
|
$("#search").focus();
|
||||||
$("#embed-button").css("display", "inline-block");
|
$("#embed-button").css("display", "inline-block");
|
||||||
@@ -288,6 +300,7 @@ initializeCastApi = function() {
|
|||||||
receiverApplicationId: "E6856E24",
|
receiverApplicationId: "E6856E24",
|
||||||
autoJoinPolicy: chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED});
|
autoJoinPolicy: chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED});
|
||||||
var context = cast.framework.CastContext.getInstance();
|
var context = cast.framework.CastContext.getInstance();
|
||||||
|
chromecastReady = true
|
||||||
//$(".castButton-unactive").css("display", "block");
|
//$(".castButton-unactive").css("display", "block");
|
||||||
context.addEventListener(
|
context.addEventListener(
|
||||||
cast.framework.CastContextEventType.SESSION_STATE_CHANGED,
|
cast.framework.CastContextEventType.SESSION_STATE_CHANGED,
|
||||||
@@ -396,11 +409,11 @@ function hide_native(way){
|
|||||||
$("#player_overlay_text").toggleClass("hide");
|
$("#player_overlay_text").toggleClass("hide");
|
||||||
$("#chromecast_text").html("");
|
$("#chromecast_text").html("");
|
||||||
$("#playing_on").css("display", "none");
|
$("#playing_on").css("display", "none");
|
||||||
if(!offline){
|
if(!offline){
|
||||||
socket.emit('pos', {channel: chan.toLowerCase()});
|
socket.emit('pos', {channel: chan.toLowerCase()});
|
||||||
} else {
|
} else {
|
||||||
Player.loadVideoById(video_id);
|
Player.loadVideoById(video_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -204,12 +204,12 @@
|
|||||||
<div id="fullscreen">
|
<div id="fullscreen">
|
||||||
<i class="material-icons">fullscreen</i>
|
<i class="material-icons">fullscreen</i>
|
||||||
</div>
|
</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>
|
<i class="material-icons">cast</i>
|
||||||
</button>
|
</button>
|
||||||
<button class="castButton" is="google-cast-button">
|
<button class="castButton" is="google-cast-button">
|
||||||
</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>
|
<i class="material-icons">cast_connected</i>
|
||||||
</button>
|
</button>
|
||||||
<div id="volume-button">
|
<div id="volume-button">
|
||||||
|
|||||||
Reference in New Issue
Block a user