mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Removed channel-name tap-target
This commit is contained in:
@@ -157,15 +157,6 @@ var Channel = {
|
|||||||
emit_list();
|
emit_list();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(((!localStorage.getItem("_jSeen") || localStorage.getItem("_jSeen") != "seen") && !Helper.mobilecheck()) && !client) {
|
|
||||||
var instance = M.TapTarget.init(document.getElementsByClassName('tap-target-join')[0]);
|
|
||||||
instance.open();
|
|
||||||
tap_target_timeout = setTimeout(function() {
|
|
||||||
instance.close();
|
|
||||||
}, 4000);
|
|
||||||
localStorage.setItem("_jSeen", "seen");
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!Helper.mobilecheck()) {
|
if(!Helper.mobilecheck()) {
|
||||||
if(!client) {
|
if(!client) {
|
||||||
Helper.tooltip("#chan", {
|
Helper.tooltip("#chan", {
|
||||||
@@ -529,10 +520,6 @@ var Channel = {
|
|||||||
if(tap_1.length > 0 && M.TapTarget.getInstance(tap_1[0])) {
|
if(tap_1.length > 0 && M.TapTarget.getInstance(tap_1[0])) {
|
||||||
M.TapTarget.getInstance(tap_1[0]).close();
|
M.TapTarget.getInstance(tap_1[0]).close();
|
||||||
}
|
}
|
||||||
var tap_2 = document.querySelectorAll(".tap-target-join")
|
|
||||||
if(tap_2.length > 0 && M.TapTarget.getInstance(tap_2[0])) {
|
|
||||||
M.TapTarget.getInstance(tap_2[0]).close();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
clearTimeout(tap_target_timeout);
|
clearTimeout(tap_target_timeout);
|
||||||
before_toast();
|
before_toast();
|
||||||
|
|||||||
@@ -60,10 +60,6 @@
|
|||||||
<p>This site supports chromecasting!</p>
|
<p>This site supports chromecasting!</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tap-target-join" data-target="chan">
|
|
||||||
<div class="tap-target-content">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
{{> contact}}
|
{{> contact}}
|
||||||
{{> donate}}
|
{{> donate}}
|
||||||
|
|||||||
@@ -1095,7 +1095,6 @@ function incrementToken(token) {
|
|||||||
router.route('/api/color').post(function(req, res) {
|
router.route('/api/color').post(function(req, res) {
|
||||||
var origin = req.get("origin").replace("https://", "").replace("http://", "");
|
var origin = req.get("origin").replace("https://", "").replace("http://", "");
|
||||||
var allowed = ["client.localhost", "localhost", "zoff.me", "client.zoff.me", "zoff.no", "client.zoff.no"];
|
var allowed = ["client.localhost", "localhost", "zoff.me", "client.zoff.me", "zoff.no", "client.zoff.no"];
|
||||||
console.log(req.body);
|
|
||||||
if(allowed.indexOf(origin) < 0) {
|
if(allowed.indexOf(origin) < 0) {
|
||||||
res.sendStatus(403);
|
res.sendStatus(403);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user