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
/** | |
* Module dependencies. | |
*/ | |
var express = require('express') | |
, routes = require('./routes') | |
, http = require('http'); | |
var app = express(); |
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
io.sockets.on('connection', function(socket){ | |
socket.emit('connected'); //Evento creado por nosotros se puede llamar 'pepito' | |
}); |
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
extends layout | |
block content | |
h1= title | |
#disconected | |
p Desconectado! | |
#connected.hide | |
p Conectado! | |
input(type='button', value='Enviar pulsación') |
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
/** | |
* Module dependencies. | |
*/ | |
var express = require('express') | |
, routes = require('./routes') | |
, http = require('http'); | |
var app = express(); |
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> | |
<title>CamyDes</title> | |
<link rel="stylesheet" href="stylesheets/style.css"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script> | |
</head> | |
<body> | |
<div class="content"><h1>Hola esto es una prueba</h1></div> | |
<div class="leftdoor"></div> |
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
.leftdoor { | |
position: absolute; | |
width: 50%; | |
height: 100%; | |
background: url(../images/camydesfront.jpg); | |
background-repeat: no-repeat; | |
background-position: 0 0; | |
-webkit-background-size: 100% 100%; | |
-moz-background-size: 100% 100%; | |
-o-background-size: 100% 100%; |
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
.rotate { | |
-webkit-transition-property: rotate; | |
-webkit-transition-duration:2s; | |
-webkit-transition-timing-function:ease; | |
-webkit-transform:rotate(180deg); | |
-moz-transition-property: rotate; | |
-moz-transition-duration:2s; | |
-moz-transition-timing-function:ease; | |
-moz-transform:rotate(180deg); | |
-ms-transition-property: rotate; |
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
$('.button').mousedown(function(){ | |
$(this).addClass("rotate"); //añade la clase con la transición al botón. | |
setTimeout(function(){ | |
$('.button').addClass("del"); //Añade la clase del al botón tras 1900 milisegundos. | |
},1900); | |
$('.leftdoor').addClass("moveleft"); //Añade la clase con la transición a la puerta izq. | |
$('.rightdoor').addClass("moveright"); //Añade la clase con la transición a la puerta der. | |
setTimeout(function(){ | |
$('.rightdoor').addClass("del"); //Elimina la puerta derecha tras 4 segundos. | |
},4000); |
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
.rounded { | |
width:100px; | |
height:100px; | |
border: 1px solid black; | |
border-radius:30px; | |
} |
OlderNewer