Skip to content

Instantly share code, notes, and snippets.

View hatched's full-sized avatar

Jeff Pihach hatched

View GitHub Profile
.ie .yui3-widget .pop-overlay {
background:transparent;
zoom: 1;
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#90000000,endColorstr=#90000000);
}
<!DOCTYPE HTML>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" charset="utf-8" src="http://yui.yahooapis.com/3.2.0/build/yui/yui-min.js"></script>
<script type="text/javascript">
YUI().use('node', 'event', function(Y) {
Y.log(Y.one('iframe'));
Y.log(Y.one('iframe').get('contentDocument'));
Y.io('url', {
method: "post",
data: 'i=' + this.get('id') + '&t=' + this.get('tp'),
context: this,
on: {
complete : this._handleReply
}
});
YUI.add('testmodule', function(Y) {
Y.Something = Y.one('#test');
});
YUI().use('*').use('node', 'event', function(Y) {
Y.log(Y.Something);
-moz-box-shadow: 3px 3px 4px #000;
-webkit-box-shadow: 3px 3px 4px #000;
box-shadow: 3px 3px 4px #000;
/* For IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')";
/* For IE 5.5 - 7 */
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000');
/*
* Retrieves the value and text from the selected option in a select
*
* @method getSelectValues
* @public
* @since 1.0.0
* @returns [object]
*/
getSelectValues : function(inp) {
var value, txt;
e.currentTarget.get('options').each(function(opt){
if(opt.get('selected') === true) {
value.push(opt.get('value'));
}
});
<!DOCTYPE HTML>
<html>
<head>
<script src="http://yui.yahooapis.com/3.3.0/build/yui/yui-min.js"></script>
<script type="text/javascript">
YUI().use('node', 'event', 'selector-css3', 'transition', function(Y){
var items, active, range, height, width, marginTop, marginLeft,
movef = Y.one('#f'),
moveb = Y.one('#b');
<!DOCTYPE HTML>
<html>
<head>
<script src="http://yui.yahooapis.com/3.3.0/build/yui/yui-min.js" charset="utf-8"></script>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script>
YUI.add('editable-field', function(Y){
var _EDIT_CLASS = 'yui3-editable-field',
STATE = 'state',
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="http://yui.yahooapis.com/combo?3.2.0/build/yui/yui.js&3.2.0/build/loader/loader.js"></script>
</head>
<body class="yui3-skin-sam yui-skin-sam">
<div id="tsTest_TabStrip">
<ul>
<li><a href="#tab1_Tab">Tab #1</a></li>
<li><a href="#tab2_Tab">Tab #2</a></li>