This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const server = window.location.origin; | |
let paso = 1; | |
const pasoInicial = 1; | |
const pasoFinal = 3; | |
const cita = { | |
id: '', | |
nombre: '', | |
fecha: '', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { src, dest, watch , series, parallel } = require('gulp'); | |
const sass = require('gulp-sass')(require('sass')); | |
const autoprefixer = require('autoprefixer'); | |
const postcss = require('gulp-postcss') | |
const sourcemaps = require('gulp-sourcemaps') | |
const cssnano = require('cssnano'); | |
const concat = require('gulp-concat'); | |
const terser = require('gulp-terser-js'); | |
const rename = require('gulp-rename'); | |
const imagemin = require('gulp-imagemin'); // Minificar imagenes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<main class="contenido-principal contenedor"> | |
<h2 class="text-center">Nuestros Productos</h2> | |
<div class="listado-productos"> | |
<div class="producto"> | |
<img src="img/producto1.jpg" alt="Imagen Producto"> | |
<div class="texto-producto"> | |
<h3>Producto 1</h3> | |
<p>Proin condimentum sodales risus ut aliquet. Nunc eu neque quis sapien feugiat posuere sed nec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- -------------------------------------------------------- | |
-- Host: 127.0.0.1 | |
-- Versión del servidor: 8.0.27 - MySQL Community Server - GPL | |
-- SO del servidor: Win64 | |
-- HeidiSQL Versión: 11.2.0.6213 | |
-- -------------------------------------------------------- | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET NAMES utf8 */; | |
/*!50503 SET NAMES utf8mb4 */; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://unsplash.com/ | |
https://burst.shopify.com/ | |
https://www.pexels.com/ | |
https://pixabay.com/ | |
https://www.freeimages.com/ | |
https://kaboompics.com/ | |
https://stocksnap.io/ | |
https://www.canva.com/photos/free/ | |
https://www.lifeofpix.com/ | |
https://gratisography.com/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- -------------------------------------------------------- | |
-- Host: 127.0.0.1 | |
-- Versión del servidor: 8.0.27 - MySQL Community Server - GPL | |
-- SO del servidor: Win64 | |
-- HeidiSQL Versión: 11.2.0.6213 | |
-- -------------------------------------------------------- | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET NAMES utf8 */; | |
/*!50503 SET NAMES utf8mb4 */; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Validar que sea un id válido | |
$id = $_GET['id']; | |
$id = filter_var($id, FILTER_VALIDATE_INT); | |
if (!$id) { | |
header('Location: /admin'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Calculadora de Propinas y Consumos</title> | |
<link rel="stylesheet" href="css/bootstrap.min.css"> | |
<link rel="stylesheet" href="css/app.css"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root{ | |
--fuenteHeading: 'PT Sans', sans-serif; | |
--fuenteParrafos: 'Open Sans', sans-serif | |
--primario: #784d3c; | |
--blanco: #ffffff; | |
--negro: #000000; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// crea un nuevo registro | |
public function crear() { | |
// Sanitizar los datos | |
$atributos = $this->sanitizarAtributos(); | |
// Insertar en la base de datos | |
$query = " INSERT INTO " . static::$tabla . " ( "; | |
$query .= join(', ', array_keys($atributos)); | |
$query .= " ) VALUES ('"; | |
$query .= join("', '", array_values($atributos)); |