mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Temporarily removing tap-target
This commit is contained in:
@@ -573,10 +573,10 @@ var Channel = {
|
||||
if(!Helper.mobilecheck()) {
|
||||
Helper.tooltip("#chan", "destroy");
|
||||
}
|
||||
var tap_1 = document.querySelectorAll(".tap-target")
|
||||
/*var tap_1 = document.querySelectorAll(".tap-target")
|
||||
if(tap_1.length > 0 && M.TapTarget.getInstance(tap_1[0])) {
|
||||
M.TapTarget.getInstance(tap_1[0]).close();
|
||||
}
|
||||
}*/
|
||||
}
|
||||
clearTimeout(tap_target_timeout);
|
||||
//before_toast();
|
||||
|
||||
@@ -406,10 +406,10 @@ initializeCastApi = function() {
|
||||
} catch(e){
|
||||
_chSeen = false;
|
||||
}
|
||||
if((!_chSeen || _chSeen != "seen") && !client) {
|
||||
/*if((!_chSeen || _chSeen != "seen") && !client) {
|
||||
Helper.css(".castButton", "display", "block");
|
||||
showDiscovery = true;
|
||||
var elem = document.querySelector('.tap-target');
|
||||
/*var elem = document.querySelector('.tap-target');
|
||||
var instance = M.TapTarget.init(elem);
|
||||
instance.open();
|
||||
tap_target_timeout = setTimeout(function() {
|
||||
@@ -419,7 +419,7 @@ initializeCastApi = function() {
|
||||
localStorage.setItem("_chSeen", "seen");
|
||||
} catch(e){}
|
||||
Helper.removeClass('.castButton', 'castButton-white-active');
|
||||
}
|
||||
}*/
|
||||
} else if(event.castState == "NO_DEVICES_AVAILABLE"){
|
||||
cast_ready_connect = false;
|
||||
Helper.removeClass(".volume-container", "volume-container-cast");
|
||||
|
||||
@@ -53,16 +53,6 @@
|
||||
{{{body}}}
|
||||
{{#unless embed}}
|
||||
{{> footer}}
|
||||
{{#unless client}}
|
||||
{{#unless remote}}
|
||||
<div class="tap-target" data-target="castButton">
|
||||
<div class="tap-target-content">
|
||||
<h5>Chromecast</h5>
|
||||
<p>This site supports chromecasting!</p>
|
||||
</div>
|
||||
</div>
|
||||
{{/unless}}
|
||||
{{/unless}}
|
||||
{{> modal/cookie}}
|
||||
{{> contact}}
|
||||
{{> donate}}
|
||||
|
||||
Reference in New Issue
Block a user