breadcrumb navigation using pure CSS3
A Pen by Secret Sam on CodePen.
| <?php | |
| $fileName = $_FILES['afile']['name']; | |
| $fileType = $_FILES['afile']['type']; | |
| $fileContent = file_get_contents($_FILES['afile']['tmp_name']); | |
| $dataUrl = 'data:' . $fileType . ';base64,' . base64_encode($fileContent); | |
| $json = json_encode(array( | |
| 'name' => $fileName, | |
| 'type' => $fileType, | |
| 'dataUrl' => $dataUrl, |
| // Fecha extraída desde una BD y en formato MySQL | |
| var fechaMySQL = "2015-07-23 10:09:01"; | |
| console.log('La fecha original es: '+fechaMySQL); | |
| // Función para formatear la fecha | |
| function formFecha(f){ | |
| // Primero, la partimos en dos: | |
| // [0] es la fecha, [1] es la hora |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Paginador con JSON</title> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> | |
| </head> | |
| <body> | |
| <div class="container"> |
| /** | |
| * MOSTRAR FECHA DE HOY | |
| * | |
| * Fecha de hoy en el siguiente formato | |
| * <i>nDia dia 'de' Nmes 'de' agno</i> | |
| * @author Fernando Magrosoto V. | |
| * @param {string} contenedor El ID del contenedor donde poner la fecha | |
| */ | |
| var class_FechaHoy = function(contenedor) | |
| { |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset='UTF-8' /> | |
| <title>Lista de Esados de la República Mexicana</title> | |
| </head> | |
| <body> | |
| <h1>Lista de Estados de la República Mexicana</h1> | |
| <label>Estado de la República</label> | |
| <select name="estado"> |
| <?php | |
| $info = FALSE; | |
| $submit = filter_input(INPUT_POST, 'submit'); | |
| if(isset($submit)){ | |
| $tamano = $_FILES["archivo"]['size']; | |
| $tipo = $_FILES["archivo"]['type']; | |
| $nombre = $_FILES["archivo"]['name']; |
| <!DOCTYPE html> | |
| <html lang='es-MX'> | |
| <head> | |
| <meta charset='UTF-8' /> | |
| <title>Mensaje en Pop-up</title> | |
| <style> | |
| body { | |
| font-family: Georgia, serif; | |
| font-size: 100%; | |
| color: rgb(51,51,51); |
breadcrumb navigation using pure CSS3
A Pen by Secret Sam on CodePen.
| <!DOCTYPE html> | |
| <html lang="es-MX"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <title>Elementos en sticky mode</title> | |
| <link href='http://fonts.googleapis.com/css?family=Raleway:400,200' | |
| rel='stylesheet' type='text/css'> | |
| <script src="http://code.jquery.com/jquery-1.10.1.min.js"></script> | |
| <style> | |
| /** | |
| * FORMATEAR FECHA | |
| * | |
| * Formatear la fecha de formato MySQL a formato humanamente legible. | |
| * Incluye opción para mostrar la hora o no. | |
| * @author Fernando Magrosoto | |
| */ | |
| function formatearFecha($fecha, $phora){ | |
| $fechaO = explode(" ",$fecha); |