From ab5402b470c4942996afa3d3a333b6c8654af612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20M=C3=A9ndez?= <45081533+FerMdez@users.noreply.github.com> Date: Tue, 11 May 2021 10:11:10 +0200 Subject: [PATCH] Add files via upload --- assets/css/highContrast.css | 33 ++++++++++++++++++--------------- assets/css/main.css | 4 ++-- assets/js/cambiarCSS.js | 11 +++++++++-- assets/php/config.php | 7 ++++++- assets/php/template.php | 24 +++++++++++------------- 5 files changed, 46 insertions(+), 33 deletions(-) diff --git a/assets/css/highContrast.css b/assets/css/highContrast.css index c87da73..50499c3 100644 --- a/assets/css/highContrast.css +++ b/assets/css/highContrast.css @@ -143,46 +143,47 @@ body { font-family: Arial, Helvetica, sans-serif; background-color: #00020f; - color: #000000 + color: #dadada; } /* Table */ table { border-collapse: collapse; - border-spacing: 0; + border-spacing: 0; margin: 0 0 2em 0; width: 100%; text-align: left; font-size: 15px; } table a{ - color: #1f2c3d; + color: #dadada; } table tbody tr { - border: solid 1px #1f2c3d; + color: #dadada; + border: solid 1px #dadada; border-left: 0; border-right: 0; } table tbody tr:nth-child(2n + 1) { - background-color: rgba(144, 144, 144, 0.25); + background-color: rgba(255, 255, 255, 0.25); } table td { padding: 0.75em 0.75em; } table th { - color: #1f2c3d; + color: #dadada; font-size: 0.9em; font-weight: 600; - padding: 0 0.85em 0.85em 0.85em; + padding: 0.85em 0.85em 0.85em 0.85em; } table thead, table tfoot { - border-bottom: solid 2px #1f2c3d; + border-bottom: solid 2px #dadada; } table.alt { border-collapse: separate; } table.alt tbody tr td { - border: solid 1px #1f2c3d; + border: solid 1px #dadada; border-left-width: 0; border-top-width: 0; } @@ -288,7 +289,7 @@ color: #dadada; } .code h3, .code h4 { - color: #00020f; + color: #d3ebff; } .code p { color: #dadada; @@ -381,15 +382,15 @@ /* Text Box */ .textbox { - color: #00020f; + color: #d3ebff; padding: 15px 15px 10px 15px; margin: 10px 0 10px; overflow: hidden; border-radius: 25px 0px 25px 0px; - border: 2px solid #00020f; + border: 2px solid #d3ebff; } .textbox h1, .textbox h2, .textbox h3 { - color: #00020f; + color: #d3ebff; text-align: left; } @@ -489,6 +490,7 @@ } label { + color: #dadada; text-align: center; font-weight: bold; } @@ -496,7 +498,7 @@ input, textarea { width: 100%; height: 27px; - border: 1px solid #000000; + border: 1px solid #dadada; padding: 10px; margin-top: 5px; font-size: 15px; @@ -521,7 +523,7 @@ font-size: 11px; } .verify a { - color: #1f2c3d; + color: #dadada; } .verify a:hover { color: rgb(138, 150, 32); @@ -540,6 +542,7 @@ cursor: pointer; } #submit:hover { + color: #dadada; background-color: #1f2c3d; } diff --git a/assets/css/main.css b/assets/css/main.css index a634bd7..c68668a 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -143,7 +143,7 @@ a:hover{ body { font-family: Arial, Helvetica, sans-serif; background-color: #d3ebff; - color: #000000 + color: #000000; } /* Table */ @@ -173,7 +173,7 @@ table a{ color: #1f2c3d; font-size: 0.9em; font-weight: 600; - padding: 0 0.85em 0.85em 0.85em; + padding: 0.85em 0.85em 0.85em 0.85em; } table thead, table tfoot { border-bottom: solid 2px #1f2c3d; diff --git a/assets/js/cambiarCSS.js b/assets/js/cambiarCSS.js index caab91e..af20494 100644 --- a/assets/js/cambiarCSS.js +++ b/assets/js/cambiarCSS.js @@ -1,5 +1,12 @@ function cambiarCSS(nuevo){ - //let css = true; - //window.location.href = window.location.href + "?css=" + css; + let highContrast; + + if(highContrast === true){ + highContrast = false; + } else { + highContrast = true; + } + + //window.location.href += "?highContrast=" + highContrast; document.getElementById('estilo').setAttribute('href', nuevo); } \ No newline at end of file diff --git a/assets/php/config.php b/assets/php/config.php index 2d8ef8e..f758303 100644 --- a/assets/php/config.php +++ b/assets/php/config.php @@ -15,7 +15,7 @@ /** * Image files directory. */ - define('IMG_DIR', ROUTE_APP.'img/'); + define('FILMS_DIR', ROUTE_APP.'img/films'); /** * Utf-8 support settings, location (language and country) and time zone. @@ -44,4 +44,9 @@ * @see http://php.net/manual/en/language.types.callable.php */ register_shutdown_function(array($app, 'shutdown')); + + //Depuración (BORRAR): + ini_set('display_errors', 1); + ini_set('display_startup_errors', 1); + error_reporting(E_ALL); ?> diff --git a/assets/php/template.php b/assets/php/template.php index 736e447..e0174ad 100644 --- a/assets/php/template.php +++ b/assets/php/template.php @@ -457,31 +457,29 @@ //Print generic Footer: function print_footer(){ $prefix = $this->prefix; - /* - if (isset($_GET["css"]) && $_GET["css"] === true) { + + if (isset($_GET["highContrast"]) && $_GET["highContrast"] === true) { $css = "{$prefix}assets/css/main.css"; $nameCSS = "Contraste Normal"; } else { $css = "{$prefix}assets/css/highContrast.css"; $nameCSS = "Alto Contraste"; } - */ - $css = "{$prefix}assets/css/highContrast.css"; - $nameCSS = "Alto Contraste"; - echo" - - -