This file contains hidden or 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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
This file contains hidden or 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
| @font-face { | |
| font-family: 'Erbos'; | |
| src: url("/fonts/7LED.ttf"); } | |
| @font-face { | |
| font-family: 'london_tubenormal'; | |
| src: url(data:font/opentype;base64,AAEAAAAQAEAABADAT1MvMkzGDgUAAKWAAAAATlBDTFR8RpJiAACl0AAAADZjbWFwJ8Pb9AAAnYQAAAO6Y3Z0ICXOI6oAAKTgAAAAoGZwZ22YXNyiAAAFDAAAAGRnbHlmxcNy4gAABXgAAJJoaGRteH98lNYAAKYIAAAOyGhlYWTMqO6BAAABDAAAADZoaGVhBI4IFQAAAUQAAAAkaG10eCpi3GIAAKFAAAADoGtlcm5sFVmPAAC00AAADBhsb2NhAD3YgAAAl+AAAAOkbWF4cAIjAXkAAAFoAAAAIG5hbWVtI+OlAAABiAAAA4Rwb3N0E8zpswAAm4QAAAIAcHJlcBMAAvgAAAVwAAAACAABAAAAARmZYb/36l8PPPUAAAPoAAAAADOCScQAAAAAM4JJxP+T/vIE1gOsAAAACwACAAEAAAAAAAEAAAOs/vIAAAUM/5P/pQTWAAEAAAAAAAAAAAAAAAAAAADoAAEAAADoARQAGQAAAAAAAgAIAEAACgAAAGUAywABAAEAAAAVAQIAAAAAAAAAAAEKAIUAAAAAAAAAAQAWAZoAAAAAAAAAAgAMAbYAAAAAAAAAAwAcAdAAAAAAAAAABAAWAfcAAAAAAAAABQA4AikAAAAAAAAABgAWAmwAAQAAAAAAAACFAAAAAQAAAAAAAQALAY8AAQAAAAAAAgAGAbAAAQAAAAAAAwAOAcIAAQAAAAAABAALAewAAQAAAAAABQAcAg0AAQAAAAAABgALAmEAAwABBAkAAAEKAIUAAwABBAkAAQAWAZoAAwABBAkAAgAMAbYAAwABBAkAAwAcAdAAAwABBAkABAAWAfcAAwABBAkABQA4AikAAwABBAkABgAWAmx |
This file contains hidden or 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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
This file contains hidden or 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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
This file contains hidden or 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
| const modelMachine = Machine({ | |
| id: 'model', | |
| initial: 'summary', | |
| context: { | |
| size: 100, | |
| }, | |
| states: { | |
| loading: { | |
| on: { |
This file contains hidden or 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
| { | |
| "123": { | |
| "name": "onetwothree" | |
| }, | |
| "321": { | |
| "name": "threetwoone" | |
| } | |
| } |
This file contains hidden or 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
| [1,2,3,4] |
This file contains hidden or 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.exports = { | |
| '/': { | |
| page: 'home', | |
| selectors: { | |
| title: 'Welcome Home!', | |
| h1:'HOME' | |
| } | |
| }, | |
| '/contact': { | |
| page: 'contact', |
This file contains hidden or 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.exports = { | |
| '/': { | |
| page: 'home' | |
| }, | |
| '/contact': { | |
| page: 'contact' | |
| } | |
| }; |
This file contains hidden or 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
| var sizlate = require('sizlate'); | |
| var html = '<div id="example"><h1>hello</h1></div>'; | |
| var output = sizlate.render(html, { ‘h1’: ‘Goodbye’}); | |
| // output = <div id="example"><h1>Goodbye</h1></div> |
NewerOlder