This file contains 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
# YUI3 Snippets file for Vim SnipMate plugin | |
# http://www.vim.org/scripts/script.php?script_id=2540 | |
# File Format should be simlar to TextMate | |
# Filetype option in VIM should be set to javascript.yui3 | |
# YUI use block | |
snippet yui | |
YUI().use(${1}, function(Y) { | |
${2} | |
}); |
This file contains 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
<div id="slideshow"> | |
<div class='hd'><span class='yui-slideshow-title'>{Title}</span></div> | |
<div class='bd' style="width: {image_width}; height: {image_height};"> | |
<div class='yui-slideshow-image'><img src="first_image.jpg" /></div> | |
</div> | |
<div class='ft'></div> | |
</div> |
This file contains 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.namespace('myNamepsace'); | |
YUI().use("node", "event", function(Y) { | |
YUI.myNamespace.someFunction = function() { | |
... | |
}; | |
}); | |
YUI.myNamespace.someFunction(); |
This file contains 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
// Step 1. Create a module config object to pass to the YUI constructor | |
var myModules = { | |
bacon: { | |
path: '/path/to/rollup/file.js', | |
supersedes: ['list','of','the','concated','modules'], | |
rollup: 3 | |
} | |
}; | |
// Step2 . Instantiate your YUI with your module config and use() |
This file contains 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
<html> | |
<head> | |
<title>Prepend Test</title> | |
</head> | |
<body> | |
<fieldset id="test_element"> | |
<p>Text before legend</p> | |
<legend>Title of the Fieldset</legend> | |
<p>Text after legend.</p> | |
</fieldset> |
This file contains 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
<html> | |
<head><title>Event Delegation Test</title></head> | |
<body> | |
<form id="frm"> | |
<select name="sel1" type="select"> | |
<option>Value 1</option> | |
<option>Value 2</option> | |
<option>Value 3</option> | |
<option>Value 4</option> | |
</select> |
This file contains 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
<html> | |
<head> | |
<title>Prepend Test</title> | |
</head> | |
<body> | |
<fieldset id="test_element"> | |
Test Standards Compliance | |
<legend>Title of the Fieldset</legend> | |
<p>This is content.</p> | |
</fieldset> |
This file contains 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('node','collection', function(Y) { | |
buildSelectList_MR = function(selectBox) { | |
return Y.Array.reduce( | |
Y.NodeList.getDOMNodes(selectBox.get('options')), | |
"", | |
function(list, value) { | |
if (value.selected) { | |
if (list !== "") { list += ","; } | |
list += value.value; | |
} |
This file contains 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('node', function(Y) { | |
buildSelectedList = function(selectBox) { | |
var list = "", | |
optList = Y.NodeList.getDOMNodes(selectBox.get('options')); | |
for (var i = 0 ; i < optList.length ; i += 1) { | |
if (optList[i].selected) { | |
if (list !== "") { list += ","; } | |
list += optList[i].value; | |
} | |
} |
This file contains 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
interface IAuthorization | |
{ | |
String Item1 { get; set; } | |
String Item2 { get; set; } | |
String Item3 { get; set; } | |
} | |
public class App1Authorization | |
{ | |
String Item1 { get; set; } |