Skip to content
GitLab
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
a9b8b385
Commit
a9b8b385
authored
Oct 12, 2018
by
Karl Hasselbring
Browse files
themes.css.php entfernt
parent
0f607204
Changes
6
Hide whitespace changes
Inline
Side-by-side
public/css/theme.css.php
deleted
100644 → 0
View file @
0f607204
<?php
header
(
"Content-type: text/css"
);
$color
=
"@metager-orange"
;
$colorRGBA
=
"rgba(255, 128, 0, 1)"
;
if
(
isset
(
$_GET
[
'r'
])
&&
isset
(
$_GET
[
'g'
])
&&
isset
(
$_GET
[
'b'
])
&&
isset
(
$_GET
[
'a'
]))
{
$color
=
"rgb("
.
$_GET
[
'r'
]
.
","
.
$_GET
[
'g'
]
.
","
.
$_GET
[
'b'
]
.
")"
;
$colorRGBA
=
"rgba("
.
$_GET
[
'r'
]
.
","
.
$_GET
[
'g'
]
.
","
.
$_GET
[
'b'
]
.
","
.
$_GET
[
'a'
]
.
")"
;
}
?>
@CHARSET "UTF-8";
input[type=text]:focus, textarea:focus, input[type=email]:focus, input[type=tel]:focus {
outline-color:
<?=
$color
?>
;
-webkit-box-shadow: 0px 0px 2px 2px
<?=
$colorRGBA
?>
;
-moz-box-shadow: 0px 0px 2px 2px
<?=
$colorRGBA
?>
;
box-shadow: 0px 0px 2px 2px
<?=
$colorRGBA
?>
;
border-color:
<?=
$colorRGBA
?>
;
}
.logo h1{
color:
<?=
$color
?>
;
}
.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus{
background-color:
<?=
$color
?>
;
border-color:
<?=
$color
?>
;
}
.pagination > li > a, .pagination > li > span{
color:
<?=
$color
?>
;
}
.pagination > li > a:hover, .pagination > li > span:hover, .pagination > li > a:focus, .pagination > li > span:focus{
color:
<?=
$color
?>
;
}
.navbar, #navbar-static-pages {
border-bottom: 3px solid
<?=
$color
?>
;
}
.lSPrev > i, .lSNext > i {
color:
<?=
$color
?>
;
}
\ No newline at end of file
resources/assets/js/scriptResultPage.js
View file @
a9b8b385
...
...
@@ -105,20 +105,6 @@ function pluginInfo() {
}
}
function
theme
()
{
if
(
localStorage
)
{
var
theme
=
localStorage
.
getItem
(
'
theme
'
);
if
(
theme
!=
null
)
{
if
((
theme
.
match
(
/,/g
)
||
[]).
length
!=
3
)
{
localStorage
.
removeItem
(
'
theme
'
);
}
else
{
theme
=
theme
.
split
(
'
,
'
);
$
(
'
#theme
'
).
attr
(
'
href
'
,
'
/css/theme.css.php?r=
'
+
theme
[
0
]
+
'
&g=
'
+
theme
[
1
]
+
'
&b=
'
+
theme
[
2
]
+
'
&a=
'
+
theme
[
3
]);
}
}
}
}
function
botProtection
()
{
$
(
'
.result
'
).
find
(
'
a
'
).
click
(
function
()
{
var
link
=
$
(
this
).
attr
(
'
href
'
);
...
...
@@ -127,11 +113,13 @@ function botProtection() {
newtab
=
true
;
}
$
.
ajax
({
url
:
'
/img/cat.jpg
'
,
type
:
'
post
'
,
data
:
{
mm
:
$
(
'
meta[name=mm]
'
).
attr
(
'
content
'
)
},
timeout
:
2000
})
url
:
'
/img/cat.jpg
'
,
type
:
'
post
'
,
data
:
{
mm
:
$
(
'
meta[name=mm]
'
).
attr
(
'
content
'
)
},
timeout
:
2000
})
.
always
(
function
()
{
if
(
!
newtab
)
document
.
location
.
href
=
link
;
...
...
@@ -283,4 +271,4 @@ function initialLoadContent(fokus) {
$
(
'
#
'
+
fokus
).
html
(
data
);
getDocumentReadyForUse
(
fokus
);
});
}
}
\ No newline at end of file
resources/assets/js/scriptStartPage.js
View file @
a9b8b385
...
...
@@ -17,18 +17,7 @@ $(document).ready(function () {
* Loads the user theme and stored settings from local storage
*/
function
loadLocalStorage
()
{
if
(
localStorage
)
{
var
theme
=
localStorage
.
getItem
(
'
theme
'
);
if
(
theme
!=
null
)
{
if
((
theme
.
match
(
/,/g
)
||
[]).
length
!=
3
)
{
localStorage
.
removeItem
(
'
theme
'
);
}
else
{
theme
=
theme
.
split
(
'
,
'
);
$
(
'
#theme
'
).
attr
(
'
href
'
,
'
/css/theme.css.php?r=
'
+
theme
[
0
]
+
'
&g=
'
+
theme
[
1
]
+
'
&b=
'
+
theme
[
2
]
+
'
&a=
'
+
theme
[
3
]);
}
}
setSettings
();
}
setSettings
();
}
/**
...
...
resources/assets/js/scriptSubPages.js
deleted
100644 → 0
View file @
0f607204
/*
Test Kommentar
*/
if
(
localStorage
)
{
var
theme
=
localStorage
.
getItem
(
'
theme
'
);
if
(
theme
!=
null
)
{
if
((
theme
.
match
(
/,/g
)
||
[]).
length
!=
3
)
{
localStorage
.
removeItem
(
'
theme
'
);
}
else
{
theme
=
theme
.
split
(
'
,
'
);
document
.
getElementById
(
'
theme
'
).
setAttribute
(
'
href
'
,
'
/css/theme.css.php?r=
'
+
theme
[
0
]
+
'
&g=
'
+
theme
[
1
]
+
'
&b=
'
+
theme
[
2
]
+
'
&a=
'
+
theme
[
3
]);
}
}
}
\ No newline at end of file
resources/views/layouts/resultPage.blade.php
View file @
a9b8b385
...
...
@@ -14,7 +14,6 @@
<link
rel=
"search"
type=
"application/opensearchdescription+xml"
title=
"{!! trans('resultPage.opensearch') !!}"
href=
"{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), action('StartpageController@loadPlugin', ['params' => base64_encode(serialize(Request::all()))])) }}"
>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"{{ mix('css/themes/default.css') }}"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"/fonts/liberation-fonts/liberation-fonts.css"
/>
<link
id=
"theme"
type=
"text/css"
rel=
"stylesheet"
href=
"/css/theme.css.php"
/>
<meta
name=
"referrer"
content=
"origin"
>
<meta
name=
"age-meta-label"
content=
"age=18"
/>
@include('parts.utility')
...
...
resources/views/layouts/staticPages.blade.php
View file @
a9b8b385
...
...
@@ -16,7 +16,6 @@
<link
type=
"text/css"
rel=
"stylesheet"
href=
"/fonts/liberation-fonts/liberation-fonts.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"{{ mix('css/themes/default.css') }}"
/>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"{{ mix('css/utility.css') }}"
/>
<link
id=
"theme"
type=
"text/css"
rel=
"stylesheet"
href=
"/css/theme.css.php"
/>
<script
src=
"{{ mix('js/lib.js') }}"
></script>
<script
src=
"{{ mix('js/utility.js') }}"
></script>
@if (isset($css))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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