mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-02-11 20:09:32 +00:00
Compare commits
21 Commits
v4.5.0
...
feature/ad
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
40ca95514a | ||
|
|
7071895153 | ||
|
|
954ac85d4a | ||
|
|
dcc85bdfc5 | ||
|
|
ba1cf940dd | ||
|
|
41e459e82b | ||
|
|
7dfbdc12a6 | ||
|
|
190b14f265 | ||
|
|
af1def1923 | ||
|
|
98bf9490c6 | ||
|
|
00aeeaff38 | ||
|
|
8318c52330 | ||
|
|
20bdc87200 | ||
|
|
f7e3bc7c86 | ||
|
|
8e94ef605d | ||
|
|
b9d7d3ade5 | ||
|
|
b17ff55643 | ||
|
|
64f194774f | ||
|
|
73aad3d8b9 | ||
|
|
0743e7b7ae | ||
|
|
eba65006e4 |
58
server/public/assets/ads.txt
Normal file
58
server/public/assets/ads.txt
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
Infolinks.com, 3147936 , DIRECT
|
||||||
|
google.com, pub-4299156005397946, RESELLER, f08c47fec0942fa0
|
||||||
|
appnexus.com, 3251, RESELLER
|
||||||
|
appnexus.com, 1908, RESELLER, f5ab79cb980f11d1
|
||||||
|
openx.com, 118151, RESELLER, 6a698e2ec38604c6
|
||||||
|
openx.com, 540118184, DIRECT, 6a698e2ec38604c6
|
||||||
|
Pubmatic.com, 60809,RESELLER,5d62403b186f2ace
|
||||||
|
Adtech.com, 11409, RESELLER
|
||||||
|
google.com, pub-6373315980741255, RESELLER, f08c47fec0942fa0
|
||||||
|
google.com, pub-9685734445476814, RESELLER, f08c47fec0942fa0
|
||||||
|
aol.com, 6202, RESELLER
|
||||||
|
aol.com, 17744, RESELLER
|
||||||
|
lkqd.net, 295, RESELLER, 59c49fa9598a0117
|
||||||
|
lkqd.com, 295, RESELLER, 59c49fa9598a0117
|
||||||
|
Freewheel.tv, 482337, RESELLER
|
||||||
|
Freewheel.tv, 480609, RESELLER
|
||||||
|
revcontent.com, 29124, RESELLER
|
||||||
|
appnexus.com, 7666, RESELLER, f5ab79cb980f11d1
|
||||||
|
rubiconproject.com, 156042, RESELLER, 0bfd66d529a55807
|
||||||
|
advertising.com, 8603, RESELLER
|
||||||
|
advertising.com, 3531, RESELLER
|
||||||
|
appnexus.com, 3364, RESELLER
|
||||||
|
Indexexchange.com, 183756, RESELLER
|
||||||
|
openx.com, 539154393, RESELLER
|
||||||
|
rubiconproject.com, 16698, RESELLER, 0bfd66d529a55807
|
||||||
|
deepintent.com, 100004190, RESELLER, 4a5487c769369a8c
|
||||||
|
pubmatic.com, 156872, RESELLER, 5d62403b186f2ace
|
||||||
|
taboola.com, 1139936,RESELLER,c228e6794e811952
|
||||||
|
taboola.com, 1135488,RESELLER,c228e6794e811952
|
||||||
|
vi.ai, 913453223927387, RESELLER
|
||||||
|
spotxchange.com, 74964, RESELLER, 7842df1d2fe2db34
|
||||||
|
spotx.tv, 74964, RESELLER, 7842df1d2fe2db34
|
||||||
|
smartadserver.com, 2776,RESELLER
|
||||||
|
pubmatic.com, 156830, RESELLER
|
||||||
|
rubiconproject.com, 15476, RESELLER, 0bfd66d529a55807
|
||||||
|
contextweb.com, 559988, RESELLER, 89ff185a4c4e857c
|
||||||
|
rhythmone.com, 2221906906,DIRECT,a670c89d4a324e47
|
||||||
|
districtm.io, 101519, RESELLER
|
||||||
|
coxmt.com, 2000067907202, RESELLER
|
||||||
|
openx.com, 537143344, RESELLER
|
||||||
|
indexexchange.com, 175407, RESELLER
|
||||||
|
pubmatic.com,156078, RESELLER, 5d62403b186f2ace
|
||||||
|
33across.com, 0010b00002CpYhEAAV, RESELLER, bbea06d9c4d2853c
|
||||||
|
rubiconproject.com, 16414, RESELLER, 0bfd66d529a55807
|
||||||
|
pubmatic.com, 156423, RESELLER, 5d62403b186f2ace
|
||||||
|
rhythmone.com, 2439829435, RESELLER, a670c89d4a324e47
|
||||||
|
indexexchange.com, 185506, RESELLER
|
||||||
|
appnexus.com, 1356, RESELLER, f5ab79cb980f11d1
|
||||||
|
emxdgt.com, 326,RESELLER, 1e1d41537f7cad7f
|
||||||
|
sonobi.com, f0e1159c80, RESELLER
|
||||||
|
Smartadserver.com,3238,RESELLER
|
||||||
|
contextweb.com,560288,RESELLER,89ff185a4c4e857c
|
||||||
|
pubmatic.com,156439,RESELLER
|
||||||
|
pubmatic.com, 154037,RESELLER
|
||||||
|
rubiconproject.com,16114,RESELLER, 0bfd66d529a55807
|
||||||
|
openx.com,537149888,RESELLER,6a698e2ec38604c6
|
||||||
|
sovrn.com, 257611,RESELLER, fafdf38b16bf6b2b
|
||||||
|
appnexus.com,3703,RESELLER,f5ab79cb980f11d1
|
||||||
@@ -4063,3 +4063,15 @@ input:not([type]):focus:not([readonly])+label, input[type=text]:not(.browser-def
|
|||||||
-ms-user-select: all !important; /* No support yet */
|
-ms-user-select: all !important; /* No support yet */
|
||||||
user-select: all !important; /* Likely future */
|
user-select: all !important; /* Likely future */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
footer > .IL_BASE ~ .IL_BASE {
|
||||||
|
display: inherit !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer > .IL_BASE {
|
||||||
|
display: flex !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.IL_BASE .IL_BASE {
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|||||||
@@ -573,10 +573,10 @@ var Channel = {
|
|||||||
if(!Helper.mobilecheck()) {
|
if(!Helper.mobilecheck()) {
|
||||||
Helper.tooltip("#chan", "destroy");
|
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])) {
|
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();
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
clearTimeout(tap_target_timeout);
|
clearTimeout(tap_target_timeout);
|
||||||
//before_toast();
|
//before_toast();
|
||||||
|
|||||||
@@ -406,10 +406,10 @@ initializeCastApi = function() {
|
|||||||
} catch(e){
|
} catch(e){
|
||||||
_chSeen = false;
|
_chSeen = false;
|
||||||
}
|
}
|
||||||
if((!_chSeen || _chSeen != "seen") && !client) {
|
/*if((!_chSeen || _chSeen != "seen") && !client) {
|
||||||
Helper.css(".castButton", "display", "block");
|
Helper.css(".castButton", "display", "block");
|
||||||
showDiscovery = true;
|
showDiscovery = true;
|
||||||
var elem = document.querySelector('.tap-target');
|
/*var elem = document.querySelector('.tap-target');
|
||||||
var instance = M.TapTarget.init(elem);
|
var instance = M.TapTarget.init(elem);
|
||||||
instance.open();
|
instance.open();
|
||||||
tap_target_timeout = setTimeout(function() {
|
tap_target_timeout = setTimeout(function() {
|
||||||
@@ -419,7 +419,7 @@ initializeCastApi = function() {
|
|||||||
localStorage.setItem("_chSeen", "seen");
|
localStorage.setItem("_chSeen", "seen");
|
||||||
} catch(e){}
|
} catch(e){}
|
||||||
Helper.removeClass('.castButton', 'castButton-white-active');
|
Helper.removeClass('.castButton', 'castButton-white-active');
|
||||||
}
|
}*/
|
||||||
} else if(event.castState == "NO_DEVICES_AVAILABLE"){
|
} else if(event.castState == "NO_DEVICES_AVAILABLE"){
|
||||||
cast_ready_connect = false;
|
cast_ready_connect = false;
|
||||||
Helper.removeClass(".volume-container", "volume-container-cast");
|
Helper.removeClass(".volume-container", "volume-container-cast");
|
||||||
|
|||||||
@@ -47,32 +47,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
{{#if adds}}
|
|
||||||
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
|
||||||
<script>
|
|
||||||
(adsbygoogle = window.adsbygoogle || []).push({
|
|
||||||
google_ad_client: "{{{ adsense }}}",
|
|
||||||
enable_page_level_ads: true
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
{{/if}}
|
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
</head>
|
</head>
|
||||||
<body class="noselect">
|
<body class="noselect">
|
||||||
{{{body}}}
|
{{{body}}}
|
||||||
{{#unless embed}}
|
{{#unless embed}}
|
||||||
{{#unless client}}
|
{{> footer}}
|
||||||
<div class="tap-target" data-target="castButton">
|
|
||||||
<div class="tap-target-content">
|
|
||||||
<h5>Chromecast</h5>
|
|
||||||
<p>This site supports chromecasting!</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{/unless}}
|
|
||||||
{{> modal/cookie}}
|
{{> modal/cookie}}
|
||||||
{{> contact}}
|
{{> contact}}
|
||||||
{{> donate}}
|
{{> donate}}
|
||||||
{{> footer}}
|
|
||||||
|
{{#unless remote}}
|
||||||
<textarea class="copy_video_id" style="display:none;"></textarea>
|
<textarea class="copy_video_id" style="display:none;"></textarea>
|
||||||
<ul class="context-menu-list context-menu-root hide">
|
<ul class="context-menu-list context-menu-root hide">
|
||||||
<li class="context-menu-item copy-context-menu">
|
<li class="context-menu-item copy-context-menu">
|
||||||
@@ -89,11 +74,15 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<div id="context-menu-overlay" class="hide"></div>
|
<div id="context-menu-overlay" class="hide"></div>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
{{/unless}}
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
|
||||||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.1.0/socket.io.slim.js"></script>
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.1.0/socket.io.slim.js"></script>
|
||||||
<script type="text/javascript" src="/assets/dist/{{javascript_file}}"></script>
|
<script type="text/javascript" src="/assets/dist/{{javascript_file}}"></script>
|
||||||
{{#unless embed}}
|
{{#unless embed}}
|
||||||
<script async type="text/javascript" src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"></script>
|
<script async type="text/javascript" src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"></script>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
|
{{#if adds}}
|
||||||
|
<script type="text/javascript"> var infolinks_pid = {{adsense}}; var infolinks_wsid = 0; </script> <script type="text/javascript" src="//resources.infolinks.com/js/infolinks_main.js" async></script>
|
||||||
|
{{/if}}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
<div id="main-container" class="noselect cursor-default">
|
||||||
{{> remote/header}}
|
{{> remote/header}}
|
||||||
<main class="center-align container remote-container">
|
<main class="center-align container remote-container">
|
||||||
<div class="section">
|
<div class="section">
|
||||||
@@ -14,5 +15,7 @@
|
|||||||
<br>
|
<br>
|
||||||
To find the ID of your player, click the Conf <i class="material-icons">menu</i> icon on the top right of the player page, then "Remote Control".
|
To find the ID of your player, click the Conf <i class="material-icons">menu</i> icon on the top right of the player page, then "Remote Control".
|
||||||
<br>You can either scan the QR code or type the ID manually.
|
<br>You can either scan the QR code or type the ID manually.
|
||||||
|
<br>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
</div>
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ router.route('/favicon.ico').get(function(req, res, next) {
|
|||||||
res.sendFile(path.join(pathThumbnails, '/public/assets/images/favicon.ico'));
|
res.sendFile(path.join(pathThumbnails, '/public/assets/images/favicon.ico'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
router.route('/ads.txt').get(function(req, res, next) {
|
||||||
|
res.sendFile(path.join(pathThumbnails, '/public/assets/ads.txt'));
|
||||||
|
});
|
||||||
|
|
||||||
router.route('/browserconfig.xml').get(function(req, res, next) {
|
router.route('/browserconfig.xml').get(function(req, res, next) {
|
||||||
res.sendFile(path.join(pathThumbnails, '/public/assets/images/browserconfig.xml'));
|
res.sendFile(path.join(pathThumbnails, '/public/assets/images/browserconfig.xml'));
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ var path = require('path');
|
|||||||
var analytics = "xx";
|
var analytics = "xx";
|
||||||
var google = {};
|
var google = {};
|
||||||
var adsense = "xx";
|
var adsense = "xx";
|
||||||
var adds = false;
|
var adds = true;
|
||||||
var mongojs = require('mongojs');
|
var mongojs = require('mongojs');
|
||||||
var token_db = mongojs("tokens");
|
var token_db = mongojs("tokens");
|
||||||
var Functions = require(pathThumbnails + '/handlers/functions.js');
|
var Functions = require(pathThumbnails + '/handlers/functions.js');
|
||||||
@@ -67,11 +67,14 @@ router.route('/api/embed').get(function(req, res, next) {
|
|||||||
var data = {
|
var data = {
|
||||||
year: year,
|
year: year,
|
||||||
type: "video",
|
type: "video",
|
||||||
|
adsense: "",
|
||||||
|
adds: false,
|
||||||
javascript_file: "embed.min.js",
|
javascript_file: "embed.min.js",
|
||||||
captcha: res.recaptcha,
|
captcha: res.recaptcha,
|
||||||
analytics: analytics,
|
analytics: analytics,
|
||||||
stylesheet: "embed.css",
|
stylesheet: "embed.css",
|
||||||
embed: true,
|
embed: true,
|
||||||
|
remote: false,
|
||||||
og_image: "https://zoff.me/assets/images/small-square.jpg",
|
og_image: "https://zoff.me/assets/images/small-square.jpg",
|
||||||
}
|
}
|
||||||
res.render('layouts/client/embed', data);
|
res.render('layouts/client/embed', data);
|
||||||
@@ -92,6 +95,7 @@ router.route('/api/apply').get(function(req, res, next) {
|
|||||||
type: "website",
|
type: "website",
|
||||||
activated: false,
|
activated: false,
|
||||||
id: "",
|
id: "",
|
||||||
|
remote: false,
|
||||||
correct: false,
|
correct: false,
|
||||||
stylesheet: "style.css",
|
stylesheet: "style.css",
|
||||||
embed: false,
|
embed: false,
|
||||||
@@ -115,6 +119,7 @@ router.route('/api/apply/:id').get(function(req, res) {
|
|||||||
adds: adds,
|
adds: adds,
|
||||||
activated: true,
|
activated: true,
|
||||||
type: "website",
|
type: "website",
|
||||||
|
remote: false,
|
||||||
token: result[0].token,
|
token: result[0].token,
|
||||||
correct: true,
|
correct: true,
|
||||||
stylesheet: "style.css",
|
stylesheet: "style.css",
|
||||||
@@ -133,6 +138,7 @@ router.route('/api/apply/:id').get(function(req, res) {
|
|||||||
adsense: adsense,
|
adsense: adsense,
|
||||||
adds: adds,
|
adds: adds,
|
||||||
activated: false,
|
activated: false,
|
||||||
|
remote: false,
|
||||||
token:"",
|
token:"",
|
||||||
type: "website",
|
type: "website",
|
||||||
correct: false,
|
correct: false,
|
||||||
@@ -164,6 +170,7 @@ function root(req, res, next) {
|
|||||||
analytics: analytics,
|
analytics: analytics,
|
||||||
type: "website",
|
type: "website",
|
||||||
stylesheet: "style.css",
|
stylesheet: "style.css",
|
||||||
|
remote: true,
|
||||||
embed: false,
|
embed: false,
|
||||||
client: false,
|
client: false,
|
||||||
og_image: "https://zoff.me/assets/images/small-square.jpg",
|
og_image: "https://zoff.me/assets/images/small-square.jpg",
|
||||||
@@ -182,6 +189,7 @@ function root(req, res, next) {
|
|||||||
stylesheet: "style.css",
|
stylesheet: "style.css",
|
||||||
type: "website",
|
type: "website",
|
||||||
embed: false,
|
embed: false,
|
||||||
|
remote: false,
|
||||||
client: false,
|
client: false,
|
||||||
og_image: "https://zoff.me/assets/images/small-square.jpg",
|
og_image: "https://zoff.me/assets/images/small-square.jpg",
|
||||||
channels: [],
|
channels: [],
|
||||||
@@ -231,6 +239,7 @@ function channel(req, res, next) {
|
|||||||
type: "website",
|
type: "website",
|
||||||
stylesheet: "style.css",
|
stylesheet: "style.css",
|
||||||
embed: false,
|
embed: false,
|
||||||
|
remote: false,
|
||||||
client: false,
|
client: false,
|
||||||
og_image: "https://zoff.me/assets/images/small-square.jpg",
|
og_image: "https://zoff.me/assets/images/small-square.jpg",
|
||||||
}
|
}
|
||||||
@@ -265,6 +274,7 @@ function channel(req, res, next) {
|
|||||||
type: "video",
|
type: "video",
|
||||||
stylesheet: "style.css",
|
stylesheet: "style.css",
|
||||||
embed: false,
|
embed: false,
|
||||||
|
remote: false,
|
||||||
client:false,
|
client:false,
|
||||||
og_image: "https://zoff.me/assets/images/small-square.jpg"
|
og_image: "https://zoff.me/assets/images/small-square.jpg"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user