Add files via upload

This commit is contained in:
Fernando Méndez 2021-05-11 10:11:10 +02:00 committed by GitHub
parent 93c556d390
commit ab5402b470
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 46 additions and 33 deletions

View File

@ -143,46 +143,47 @@
body { body {
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
background-color: #00020f; background-color: #00020f;
color: #000000 color: #dadada;
} }
/* Table */ /* Table */
table { table {
border-collapse: collapse; border-collapse: collapse;
border-spacing: 0; border-spacing: 0;
margin: 0 0 2em 0; margin: 0 0 2em 0;
width: 100%; width: 100%;
text-align: left; text-align: left;
font-size: 15px; font-size: 15px;
} }
table a{ table a{
color: #1f2c3d; color: #dadada;
} }
table tbody tr { table tbody tr {
border: solid 1px #1f2c3d; color: #dadada;
border: solid 1px #dadada;
border-left: 0; border-left: 0;
border-right: 0; border-right: 0;
} }
table tbody tr:nth-child(2n + 1) { 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 { table td {
padding: 0.75em 0.75em; padding: 0.75em 0.75em;
} }
table th { table th {
color: #1f2c3d; color: #dadada;
font-size: 0.9em; font-size: 0.9em;
font-weight: 600; font-weight: 600;
padding: 0 0.85em 0.85em 0.85em; padding: 0.85em 0.85em 0.85em 0.85em;
} }
table thead, table tfoot { table thead, table tfoot {
border-bottom: solid 2px #1f2c3d; border-bottom: solid 2px #dadada;
} }
table.alt { table.alt {
border-collapse: separate; border-collapse: separate;
} }
table.alt tbody tr td { table.alt tbody tr td {
border: solid 1px #1f2c3d; border: solid 1px #dadada;
border-left-width: 0; border-left-width: 0;
border-top-width: 0; border-top-width: 0;
} }
@ -288,7 +289,7 @@
color: #dadada; color: #dadada;
} }
.code h3, .code h4 { .code h3, .code h4 {
color: #00020f; color: #d3ebff;
} }
.code p { .code p {
color: #dadada; color: #dadada;
@ -381,15 +382,15 @@
/* Text Box */ /* Text Box */
.textbox { .textbox {
color: #00020f; color: #d3ebff;
padding: 15px 15px 10px 15px; padding: 15px 15px 10px 15px;
margin: 10px 0 10px; margin: 10px 0 10px;
overflow: hidden; overflow: hidden;
border-radius: 25px 0px 25px 0px; border-radius: 25px 0px 25px 0px;
border: 2px solid #00020f; border: 2px solid #d3ebff;
} }
.textbox h1, .textbox h2, .textbox h3 { .textbox h1, .textbox h2, .textbox h3 {
color: #00020f; color: #d3ebff;
text-align: left; text-align: left;
} }
@ -489,6 +490,7 @@
} }
label { label {
color: #dadada;
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
} }
@ -496,7 +498,7 @@
input, textarea { input, textarea {
width: 100%; width: 100%;
height: 27px; height: 27px;
border: 1px solid #000000; border: 1px solid #dadada;
padding: 10px; padding: 10px;
margin-top: 5px; margin-top: 5px;
font-size: 15px; font-size: 15px;
@ -521,7 +523,7 @@
font-size: 11px; font-size: 11px;
} }
.verify a { .verify a {
color: #1f2c3d; color: #dadada;
} }
.verify a:hover { .verify a:hover {
color: rgb(138, 150, 32); color: rgb(138, 150, 32);
@ -540,6 +542,7 @@
cursor: pointer; cursor: pointer;
} }
#submit:hover { #submit:hover {
color: #dadada;
background-color: #1f2c3d; background-color: #1f2c3d;
} }

View File

@ -143,7 +143,7 @@ a:hover{
body { body {
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
background-color: #d3ebff; background-color: #d3ebff;
color: #000000 color: #000000;
} }
/* Table */ /* Table */
@ -173,7 +173,7 @@ table a{
color: #1f2c3d; color: #1f2c3d;
font-size: 0.9em; font-size: 0.9em;
font-weight: 600; font-weight: 600;
padding: 0 0.85em 0.85em 0.85em; padding: 0.85em 0.85em 0.85em 0.85em;
} }
table thead, table tfoot { table thead, table tfoot {
border-bottom: solid 2px #1f2c3d; border-bottom: solid 2px #1f2c3d;

View File

@ -1,5 +1,12 @@
function cambiarCSS(nuevo){ function cambiarCSS(nuevo){
//let css = true; let highContrast;
//window.location.href = window.location.href + "?css=" + css;
if(highContrast === true){
highContrast = false;
} else {
highContrast = true;
}
//window.location.href += "?highContrast=" + highContrast;
document.getElementById('estilo').setAttribute('href', nuevo); document.getElementById('estilo').setAttribute('href', nuevo);
} }

View File

@ -15,7 +15,7 @@
/** /**
* Image files directory. * 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. * 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 * @see http://php.net/manual/en/language.types.callable.php
*/ */
register_shutdown_function(array($app, 'shutdown')); register_shutdown_function(array($app, 'shutdown'));
//Depuración (BORRAR):
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
?> ?>

View File

@ -457,31 +457,29 @@
//Print generic Footer: //Print generic Footer:
function print_footer(){ function print_footer(){
$prefix = $this->prefix; $prefix = $this->prefix;
/*
if (isset($_GET["css"]) && $_GET["css"] === true) { if (isset($_GET["highContrast"]) && $_GET["highContrast"] === true) {
$css = "{$prefix}assets/css/main.css"; $css = "{$prefix}assets/css/main.css";
$nameCSS = "Contraste Normal"; $nameCSS = "Contraste Normal";
} else { } else {
$css = "{$prefix}assets/css/highContrast.css"; $css = "{$prefix}assets/css/highContrast.css";
$nameCSS = "Alto Contraste"; $nameCSS = "Alto Contraste";
} }
*/
$css = "{$prefix}assets/css/highContrast.css";
$nameCSS = "Alto Contraste";
echo" <!-- Script --> echo"<footer>
<script src='{$prefix}assets/js/cambiarCSS.js'></script>
<footer>
<div class='footer'> <div class='footer'>
<p>© Práctica 2 | Sistemas Web 2021 </p> <p>© Práctica 2 | Sistemas Web 2021 </p>
</div> </div>
<a href='{$prefix}fdicines/about_us/'>Sobre FDI-Cines</a> | <button href='{$prefix}fdicines/about_us/'>Sobre FDI-Cines</button> |
<a href='{$prefix}fdicines/terms_conditions/'>Términos y condiciones</a> | <button href='{$prefix}fdicines/terms_conditions/'>Términos de uso</button> |
<a href='{$prefix}cinemas/'>Nuestros cines</a> | <button href='{$prefix}cinemas/'>Nuestros cines</button> |
<a href='{$prefix}contacto/'>Contacto</a> | <button href='{$prefix}contacto/'>Contacto</button> |
<button onclick=\"cambiarCSS('{$css}')\">$nameCSS</button> <button onclick=\"cambiarCSS('{$css}')\">$nameCSS</button>
</footer>\n"; </footer>\n";
echo"
<!-- Scripts -->
<script src='{$prefix}assets/js/cambiarCSS.js'></script>\n";
} }
} }