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
| <ul class="yui-accordion"> | |
| <li class="yui-accordion-item yui-accordion-item-active"> | |
| <h3 class="yui-accordion-item-hd yui-accordion-item-trigger">item 1</h3> | |
| <div class="yui-accordion-item-bd">content</div> | |
| </li> | |
| </ul> |
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
| document.addEventListener('focus', prepareHandler, true); // capture phase | |
| input.addEventListener('focus', inputHandler, false); | |
| function prepareHandler(e) { | |
| var id = e.target.id; | |
| process[id] = true; | |
| setTimeout(function () { | |
| if (process[id]) { | |
| // do stuff (e is available, but its methods are useless) |
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 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <title>Insert title here</title> | |
| <script src="http://yui.yahooapis.com/3.1.0/build/yui/yui-min.js"></script> | |
| <script> | |
| YUI().use('io',function(Y){ | |
| var ioConfig = { |
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
| Button = Y.Base.create('toolbar-button',Y.Widget,[Y.WidgetChild],{ | |
| BOUNDING_TEMPLATE : '<li/>', | |
| CONTENT_TEMPLATE : '<button/>', | |
| _clickHandle : null, | |
| className : '', | |
| initializer : function(config) { | |
| this.className = this.getClassName(); | |
| }, | |
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> | |
| <style type="text/css"> | |
| #testDialogContainer{ | |
| background-color:#efefef | |
| } | |
| </style> | |
| </head> |
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.add('gallery-file-manager',function(Y){ | |
| Y.namespace('FileManager').Base = Y.Base.create('file-manager', Y.Widget, [Y.WidgetParent], { | |
| renderUI : function() { | |
| var i,l,layout = this.get('layout'); | |
| for(i=0, l=layout.length; i<l; i++) { | |
| switch(layout[i]) { | |
| case 'toolbar': break; | |
| case 'explorer': break; |
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 a = "hello" + | |
| "how" + | |
| "are" + | |
| "you"; |
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
| this.useComponent('PageContentInfo', function(PageContentInfo){ | |
| // need a variable here... | |
| PageContentInfo.loadPage('info'); | |
| }); |
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
| loadPageContent: function(foo) { | |
| this.useComponent('PageContentInfo', function(PageContentInfo){ | |
| // need a variable here... | |
| // how does "foo" get in here? | |
| PageContentInfo.loadPage('info'); | |
| }); | |
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>Test Page</title> | |
| </head><body> | |
| <input type="hidden" id="task1" value="Node loaded from YQL"> | |
| <ul id="tasks"></ul> |
OlderNewer