Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
b92ff194
Commit
b92ff194
authored
Nov 04, 2020
by
Dominik Hebeler
Browse files
disabled darkmode for uni mainz
parent
bcc65dae
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/MetaGer.php
View file @
b92ff194
...
...
@@ -1105,10 +1105,6 @@ class MetaGer
$this
->
framed
=
false
;
}
if
(
$request
->
input
(
"out"
,
""
)
===
"results-with-style"
)
{
$_COOKIE
[
"dark_mode"
]
=
"1"
;
}
# IP
$this
->
ip
=
$this
->
anonymizeIp
(
$request
->
ip
());
...
...
resources/views/layouts/resultPage.blade.php
View file @
b92ff194
...
...
@@ -28,7 +28,7 @@
<
link
type
=
"text/css"
rel
=
"stylesheet"
href
=
"{{ mix('css/themes/metager-dark.css') }}"
/>
@
elseif
(
Cookie
::
get
(
'dark_mode'
)
===
"1"
)
<
link
type
=
"text/css"
rel
=
"stylesheet"
href
=
"{{ mix('css/themes/metager.css') }}"
/>
@
else
@
else
if
(
Request
::
input
(
'out'
,
''
)
!==
"results-with-style"
)
<
link
type
=
"text/css"
rel
=
"stylesheet"
media
=
"(prefers-color-scheme:dark)"
href
=
"{{ mix('css/themes/metager-dark.css') }}"
/>
@
endif
...
...
resources/views/layouts/resultpage/resources.blade.php
View file @
b92ff194
...
...
@@ -23,7 +23,7 @@
<link
type=
"text/css"
rel=
"stylesheet"
href=
"{{ mix('css/themes/metager-dark.css') }}"
/>
@elseif(Cookie::get('dark_mode') === "1")
<link
type=
"text/css"
rel=
"stylesheet"
href=
"{{ mix('css/themes/metager.css') }}"
/>
@else
@else
if(Request::input('out', '') !== "results-with-style" )
<link
type=
"text/css"
rel=
"stylesheet"
media=
"(prefers-color-scheme:dark)"
href=
"{{ mix('css/themes/metager-dark.css') }}"
/>
@endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment