Removed elements from remote.zoff.me that isnt needed

This commit is contained in:
Kasper Rynning-Tønnesen
2018-12-03 14:57:16 +01:00
parent 7dfbdc12a6
commit 41e459e82b
2 changed files with 31 additions and 19 deletions

View File

@@ -53,6 +53,7 @@
{{{body}}} {{{body}}}
{{#unless embed}} {{#unless embed}}
{{#unless client}} {{#unless client}}
{{#unless remote}}
<div class="tap-target" data-target="castButton"> <div class="tap-target" data-target="castButton">
<div class="tap-target-content"> <div class="tap-target-content">
<h5>Chromecast</h5> <h5>Chromecast</h5>
@@ -60,11 +61,13 @@
</div> </div>
</div> </div>
{{/unless}} {{/unless}}
{{/unless}}
{{> modal/cookie}} {{> modal/cookie}}
{{> contact}} {{> contact}}
{{> donate}} {{> donate}}
{{> footer}} {{> footer}}
<textarea class="copy_video_id" style="display:none;"></textarea> <textarea class="copy_video_id" style="display:none;"></textarea>
{{#unless remote}}
<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">
<span>Copy link</span> <span>Copy link</span>
@@ -80,6 +83,7 @@
</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>

View File

@@ -74,6 +74,7 @@ router.route('/api/embed').get(function(req, res, next) {
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);
@@ -94,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,
@@ -117,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",
@@ -135,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,
@@ -166,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",
@@ -184,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: [],
@@ -233,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",
} }
@@ -267,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"
} }