Source of inspiration - http://www.dehaus.be/
Pure css version - http://codepen.io/suez/pen/vEZMoa
A Pen by Nikolay Talanov on CodePen.
const formMachine = Machine({ | |
id: 'form', | |
initial: 'editing', | |
context: { | |
startDate: undefined, | |
returnDate: undefined, | |
}, | |
states: { | |
editing: { | |
initial: 'oneWayFlight', |
const rtsLoaded = true; | |
const config = { | |
id: 'rts', | |
initial: rtsLoaded ? 'requested' : 'idle', | |
context: { | |
rtsId: null, | |
memberKey: null, | |
instance: 'instance', | |
}, |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
(function() { | |
var libraryStorage = {}; | |
function librarySystem(library, dependencyArray, callback) { | |
var libraries = []; | |
if ( arguments.length > 1 ) { | |
// go through dependencyArray and get the actual libraries | |
dependencyArray.forEach(function(dependency) { | |
libraries.push(libraryStorage[dependency]); | |
}); |
Source of inspiration - http://www.dehaus.be/
Pure css version - http://codepen.io/suez/pen/vEZMoa
A Pen by Nikolay Talanov on CodePen.
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |