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
| #!/usr/bin/env node | |
| var YUI = require("yui3").YUI; | |
| YUI({ | |
| debug: true | |
| }).use('node', 'io', function(Y) { | |
| //Messing with the main page.. | |
| Y.one('title').set('innerHTML', 'Digg News Headlines'); |
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 http = require('http'); | |
| var YUI = require('yui3').YUI; | |
| // persistent Y | |
| var global_Y = YUI({ | |
| fetchCSS: false, | |
| useConsoleOutput: false | |
| }); | |
| http.createServer(function (req, res) { |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>fast page</title> | |
| <link type="text/css" href='http://company.cdn.com/combo? | |
| 1.1/rollout/app.css'> | |
| </head> | |
| <body class="yui3-skin-sam"> | |
| <script type="text/javascript"> |
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
| YUI().use('tabview', function(Y) { | |
| var config = Y.config.app || {}; | |
| if (config.tabview) { | |
| new Y.TabView({ | |
| srcNode: config.tabview | |
| }); | |
| } | |
| }); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>fast page</title> | |
| <link rel="stylesheet" type="text/css" href='http://company.cdn.com/combo? | |
| 1.2/rollout/app.css'> | |
| </head> | |
| <body class="yui3-skin-sam"> | |
| <script> | |
| YUI_config = { |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Event Binder Evolution</title> | |
| </head> | |
| <body> | |
| <div id="doc"> | |
| <div id="democlick"> |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Event Binder - Simple</title> | |
| </head> | |
| <body> | |
| <div id="doc"> | |
| <div id="democlick"> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>test</title> | |
| </head> | |
| <body> | |
| <!-- YUI 3 Seed //--> |
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
| YUI_config = { | |
| // standard YUI_config configuration | |
| combine: true, | |
| filter: 'min', | |
| // event binder configuration starts here | |
| eventbinder: { | |
| // set of options that should be preserved for every event (all optional) | |
| ev: { | |
| ctrlKey: 0, | |
| altKey: 0, |
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
| /** | |
| * <p>The Dispatcher satisfies a very common need of developers using the | |
| * YUI library: dynamic execution of HTML Fragments or remote content. Typical strategies to | |
| * fulfill this need, like executing the innerHTML property or referencing remote | |
| * scripts, are unreliable due to browser incompatibilities. The Dispatcher normalize | |
| * this behavior across all a-grade browsers. | |
| * | |
| * <p>To use the Dispatcher Module, simply create a new object based on Y.Dispatcher | |
| * and pass a reference to a node that should be handled.</p> | |
| * |