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();
|
||||
|
||||
$('.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,
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user