diff --git a/public/css/theme.css.php b/public/css/theme.css.php deleted file mode 100644 index 3580ccf05e95d0d415abcf4d613c53383505848e..0000000000000000000000000000000000000000 --- a/public/css/theme.css.php +++ /dev/null @@ -1,44 +0,0 @@ -<?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 diff --git a/resources/assets/js/scriptResultPage.js b/resources/assets/js/scriptResultPage.js index f9155906498298766a466f0ca5b3358a08340fcf..a992b783e62e72fb37454d1d87a0007c0ec3d9c8 100644 --- a/resources/assets/js/scriptResultPage.js +++ b/resources/assets/js/scriptResultPage.js @@ -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 diff --git a/resources/assets/js/scriptStartPage.js b/resources/assets/js/scriptStartPage.js index 6a2012c4f20d279fad78b319ee2137c54bef966a..a04a61d91ec47136a5eb0b068cb9c561594ef5a9 100644 --- a/resources/assets/js/scriptStartPage.js +++ b/resources/assets/js/scriptStartPage.js @@ -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(); } /** diff --git a/resources/assets/js/scriptSubPages.js b/resources/assets/js/scriptSubPages.js deleted file mode 100644 index 6f41ff92789e8a3a1cf1a093b263cf33edad6ef8..0000000000000000000000000000000000000000 --- a/resources/assets/js/scriptSubPages.js +++ /dev/null @@ -1,14 +0,0 @@ -/* - 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 diff --git a/resources/views/layouts/resultPage.blade.php b/resources/views/layouts/resultPage.blade.php index 0d8546ccb85d806118938af47df5c33c3962323f..2efcd56407dcd138c4dcb2b19ffc0e03036def56 100644 --- a/resources/views/layouts/resultPage.blade.php +++ b/resources/views/layouts/resultPage.blade.php @@ -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') diff --git a/resources/views/layouts/staticPages.blade.php b/resources/views/layouts/staticPages.blade.php index c66748e210495ddd638b31f0d5dd931ec83c7b68..1c6a3a25fcdda545caa8f3a1673ee5010d611a66 100644 --- a/resources/views/layouts/staticPages.blade.php +++ b/resources/views/layouts/staticPages.blade.php @@ -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))