#programme
-
Historique
- Brendan Eich
- Netscape
- Serveur
-
Différence DOM / JS
- JS = langage
- DOM = modification de la structure d'une page web.
http://www.youtube.com/watch?v=uzksnnDIaQo |
var five = require('johnny-five'), | |
io = require('socket.io').listen(8080), | |
board, potentiometer; | |
board = new five.Board(); | |
board.on("ready", function() { | |
// Create a new `potentiometer` hardware instance. | |
potentiometer = new five.Sensor({ |
http://www.youtube.com/watch?v=aYFOOr1amSg&feature=plcp |
http://www.youtube.com/watch?v=MXEGLGmpCfo |
var Eventable = | |
{ | |
addEventListener: function(type, listener) | |
{ | |
if (this.eventMap == null) | |
this.eventMap = {}; | |
var list = this.eventMap[type]; | |
if (list == null) | |
{ | |
list = []; |
var Eventable = | |
{ | |
addEventListener: function(type, listener) | |
{ | |
if (this.eventMap == null) | |
this.eventMap = {}; | |
var list = this.eventMap[type]; | |
if (list == null) | |
{ | |
list = []; |
/* | |
This is a test aiming at creating a simple inheritance + mixin capable JS library | |
using Object.create awesome possibilities. | |
It's using a single library (https://raw.github.com/jblanche/proto-js/master/Proto.js) | |
that is only 609 characters minified, and 310b gzipped. | |
It is heavily based on the original Proto.JS library (https://github.com/rauschma/proto-js). | |
Simply adding to it an easy way to add mixins to our "Classes". | |
*/ | |
// This is a Mixin / Module, it can be included by any "Class", whatever the class role. |
/* | |
This is a test aiming at creating a simple inheritance + mixin capable JS library | |
using Object.create awesome possibilities. | |
It's using a single library (https://raw.github.com/jblanche/proto-js/master/Proto.js) that is only 609 characters minified, and 310b gzipped. | |
It is heavily based on the original Proto.JS library (https://github.com/rauschma/proto-js). | |
Simply adding to it an easy way to add mixins to our "Classes". | |
*/ | |
// This is a Mixin / Module, it can be included by any "Class", whatever the class role. | |
// It's a plain and simple JS litteral object. |
player1.is_better_than(player2) | |
# or | |
coach1.is_at_least_as_good_as(coach2) |
#programme
Historique
Différence DOM / JS