Update sidebar.blade.php

This commit is contained in:
Julian Prieber 2022-11-23 22:59:05 +01:00
parent e11cc53d64
commit 20b4c83d44
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ if($url1sb == '200' or $url2sb == '200') {
<a style="color:tomato;" class="nav-link" href="{{ url('update') }}">You are in BETA mode! <img src="https://img.llc.ovh/static/v1?label=installed:&message=<?php if(file_exists(base_path("vbeta.json"))) {echo file_get_contents(base_path("vbeta.json"));} else {echo "none";} ?>&color=FFFFFF"> <img src="https://img.llc.ovh/static/v1?label=server:&message=<?php echo file_get_contents("https://update.littlelink-custom.com/beta/vbeta.json"); ?>&color=FFFFFF"></a> <a style="color:tomato;" class="nav-link" href="{{ url('update') }}">You are in BETA mode! <img src="https://img.llc.ovh/static/v1?label=installed:&message=<?php if(file_exists(base_path("vbeta.json"))) {echo file_get_contents(base_path("vbeta.json"));} else {echo "none";} ?>&color=FFFFFF"> <img src="https://img.llc.ovh/static/v1?label=server:&message=<?php echo file_get_contents("https://update.littlelink-custom.com/beta/vbeta.json"); ?>&color=FFFFFF"></a>
@endif @endif
@if(Route::currentRouteName() === "showConfig")<style>input[type=checkbox]{margin-left: -24px !important;}</style>@endif @if(Route::currentRouteName() === "showConfig")<style>#toggle-switch{margin-left: -24px !important;}</style>@endif
@if (config('advanced-config.theme') == 'light' and $color_scheme_override != 'dark') @if (config('advanced-config.theme') == 'light' and $color_scheme_override != 'dark')
<div id="myBtn" class="toggle"><span>🌙</span><input type="checkbox" id="toggle-switch" checked/><label for="toggle-switch"></label><span>☀️</span></div> <div id="myBtn" class="toggle"><span>🌙</span><input type="checkbox" id="toggle-switch" checked/><label for="toggle-switch"></label><span>☀️</span></div>
<script>function ColorOverrride(){document.cookie="color_scheme_override=dark; path=/",location.reload()}var btn=document.getElementById("myBtn");btn.addEventListener("click",ColorOverrride);</script> <script>function ColorOverrride(){document.cookie="color_scheme_override=dark; path=/",location.reload()}var btn=document.getElementById("myBtn");btn.addEventListener("click",ColorOverrride);</script>