This file contains 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
// funcion para calcular la hora local en una ciudad dada la diferencia horaria. | |
function calcTime(city, offset) { | |
// creamos el objeto Date (la selecciona de la máquina cliente) | |
d = new Date(); | |
// lo convierte a milisegundos | |
// añade la dirferencia horaria | |
// recupera la hora en formato UTC | |
utc = d.getTime() + (d.getTimezoneOffset() * 60000); | |
This file contains 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
.fadebox{ | |
display: none; | |
position: absolute; | |
top: 0%; | |
left: 0%; | |
width: 100%; | |
height: 100%; | |
background-color: black; | |
z-index:1001; | |
-moz-opacity: 0.8; |
This file contains 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
<script type="text/javascript"> | |
function showLightbox() { | |
document.getElementById('over').style.display='block'; | |
document.getElementById('fade').style.display='block'; | |
} | |
function hideLightbox() { | |
document.getElementById('over').style.display='none'; | |
document.getElementById('fade').style.display='none'; | |
} | |
</script> |
This file contains 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> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" /> | |
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script> | |
<script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script> | |
<title>Titulo</title> | |
</head> | |
<body> |
This file contains 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
(function(){ | |
var i = 2; | |
var cambiar = setInterval( function(){ | |
//$('#cambiante').css( 'background-image', 'url("2.jpg")' ); | |
$('#cambiante').animate({ | |
opacity: 0 | |
}, 'slow', function(){ | |
$(this).css( {'background-image': 'url("' + i + '.jpg")'} ) | |
.animate({opacity: 1}); | |
i++; |
This file contains 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 | |
set_time_limit(0); | |
function leerDierctorio($ruta){ | |
if($dir = opendir($ruta)){ | |
chdir($ruta); | |
//Creamos los array de archivos y carpetas | |
$archivos=array(); | |
$carpetas=array(); |
This file contains 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 | |
/** | |
* | |
*/ | |
class Validar | |
{ | |
function __construct() | |
{ | |
# code... |
This file contains 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 | |
class Fecha | |
{ | |
private $dia = array(); | |
private $mes = array(); | |
private $anio = array(); | |
function __construct() |
This file contains 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
function Validar(){ | |
//this.id = id; | |
} | |
Validar.prototype.vacio = function( id ) { | |
this.id = id; | |
if ( this.id == "" ) { | |
this.id = false; | |
} |
This file contains 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 | |
/** | |
* clase de FTP | |
*/ | |
class Ftp | |
{ | |
private $server; |
OlderNewer