mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Added button on frontpage for accessing client-version
This commit is contained in:
@@ -2701,7 +2701,7 @@ nav ul li:hover, nav ul li.active {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#frontpage-viewer-counter{
|
#frontpage-viewer-counter{
|
||||||
right: 0px;
|
right: 56px;
|
||||||
width: 62px;
|
width: 62px;
|
||||||
left: inherit;
|
left: inherit;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|||||||
@@ -311,6 +311,7 @@ var Frontpage = {
|
|||||||
$("#frontpage-viewer-counter").tooltip("remove");
|
$("#frontpage-viewer-counter").tooltip("remove");
|
||||||
$(".generate-channel-name").tooltip("remove");
|
$(".generate-channel-name").tooltip("remove");
|
||||||
$("#offline-mode").tooltip("remove");
|
$("#offline-mode").tooltip("remove");
|
||||||
|
$("#client-mode-button").tooltip("remove");
|
||||||
}
|
}
|
||||||
currently_showing_channels = 1;
|
currently_showing_channels = 1;
|
||||||
clearTimeout(retry_frontpage);
|
clearTimeout(retry_frontpage);
|
||||||
@@ -444,6 +445,11 @@ var Frontpage = {
|
|||||||
position: "bottom",
|
position: "bottom",
|
||||||
tooltip: "Total Viewers"
|
tooltip: "Total Viewers"
|
||||||
});
|
});
|
||||||
|
$("#client-mode-button").tooltip({
|
||||||
|
delay: 5,
|
||||||
|
position: "bottom",
|
||||||
|
tooltip: "Client mode"
|
||||||
|
});
|
||||||
$(".generate-channel-name").tooltip({
|
$(".generate-channel-name").tooltip({
|
||||||
delay: 5,
|
delay: 5,
|
||||||
position: "bottom",
|
position: "bottom",
|
||||||
|
|||||||
@@ -5,10 +5,15 @@
|
|||||||
<img class="zicon" src="/assets/images/z.svg" alt="zoff" title="Zoff" />
|
<img class="zicon" src="/assets/images/z.svg" alt="zoff" title="Zoff" />
|
||||||
</a>
|
</a>
|
||||||
<div id="frontpage-viewer-counter" class="noselect" title="Divided among all channels. Hidden or not"></div>
|
<div id="frontpage-viewer-counter" class="noselect" title="Divided among all channels. Hidden or not"></div>
|
||||||
<ul class="right hide-on-med-and-down">
|
<ul class="right">
|
||||||
<li><a class="header-buttons waves-effect waves-cyan" id="offline-mode" title="Local mode" href="#">Local</a></li>
|
{{#if client}}
|
||||||
<li><a class="header-buttons waves-effect waves-green" title="Remote control a Zoff player" href="https://remote.zoff.me">Remote</a></li>
|
<li><a class="header-buttons waves-effect waves-orange orange" id="client-mode-button" title="Client mode" href="https://zoff.me">Client</a></li>
|
||||||
<li><a class="header-buttons modal-trigger waves-effect waves-orange" data-target="about">About</a></li>
|
{{else}}
|
||||||
|
<li><a class="header-buttons waves-effect waves-orange" id="client-mode-button" title="Client mode" href="https://client.zoff.me">Client</a></li>
|
||||||
|
{{/if}}
|
||||||
|
<li class="hide-on-small-only"><a class="header-buttons waves-effect waves-cyan" id="offline-mode" title="Local mode" href="#">Local</a></li>
|
||||||
|
<li class="hide-on-small-only"><a class="header-buttons waves-effect waves-green" title="Remote control a Zoff player" href="https://remote.zoff.me">Remote</a></li>
|
||||||
|
<li class="hide-on-small-only"><a class="header-buttons modal-trigger waves-effect waves-orange" data-target="about">About</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
@@ -121,7 +121,6 @@ function root(req, res, next) {
|
|||||||
} else if(subdomain[0] == "www") {
|
} else if(subdomain[0] == "www") {
|
||||||
res.redirect("https://zoff.me");
|
res.redirect("https://zoff.me");
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
var data = {
|
var data = {
|
||||||
year: year,
|
year: year,
|
||||||
javascript_file: "main.min.js",
|
javascript_file: "main.min.js",
|
||||||
@@ -131,7 +130,7 @@ function root(req, res, next) {
|
|||||||
embed: false,
|
embed: false,
|
||||||
client: false
|
client: false
|
||||||
}
|
}
|
||||||
if(subdomain == "client") {
|
if(subdomain[0] == "client") {
|
||||||
data.client = true;
|
data.client = true;
|
||||||
}
|
}
|
||||||
res.render('layouts/client/frontpage', data);
|
res.render('layouts/client/frontpage', data);
|
||||||
|
|||||||
Reference in New Issue
Block a user