Skip to content

Instantly share code, notes, and snippets.

View ericf's full-sized avatar

Eric Ferraiuolo ericf

View GitHub Profile
highlight({
startColor : bgColorActive,
endColor : bgColor,
restoreColor : 'transparent',
easing : Y.Easing.baseIn,
duration : 1.0,
wait : false,
after : {
finish : function(e){
console.log('finish');
<!DOCTYPE html>
<html>
<head>
<title>Effects Test</title>
</head>
<h1>Effects Test</h1>
<body>
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#testDialogContainer{
background-color:#efefef
}
</style>
</head>
<!DOCTYPE html>
<html>
<head>
<title>Highlight Test</title>
</head>
<body>
<h1>Highlight Test</h1>
<script src="http://yui.yahooapis.com/3.1.1/build/yui/yui-min.js"></script>
YUI().use('node', function(Y){
Y.one('#foo').on('click', function(e){
// Lazy-use OverlayModal.
// Create and show a new modal Overlay.
Y.use('gallery-overlay-modal', function(){
var myModalOverlay = new Y.Overlay({
bodyContent : '<p>I am modal!</p>',
width : '300px',
height : '150px',
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;
var a = "hello" +
"how" +
"are" +
"you";
<!DOCTYPE html>
<html>
<head>
<title>test</title>
<head>
<body>
<script src="http://yui.yahooapis.com/3.1.1/build/yui/yui-min.js"></script>
this.useComponent('PageContentInfo', function(PageContentInfo){
// need a variable here...
PageContentInfo.loadPage('info');
});
loadPageContent: function(foo) {
this.useComponent('PageContentInfo', function(PageContentInfo){
// need a variable here...
// how does "foo" get in here?
PageContentInfo.loadPage('info');
});