http://yuilibrary.com/yui/docs/api/files/anim_js_anim.js.html#l248 http://yuilibrary.com/yui/docs/api/files/anim_js_anim.js.html#l260 http://yuilibrary.com/yui/docs/api/files/anim_js_anim.js.html#l287 http://yuilibrary.com/yui/docs/api/files/anim_js_anim.js.html#l297 http://yuilibrary.com/yui/docs/api/files/collection_js_arraylist.js.html#l37 http://yuilibrary.com/yui/docs/api/files/collection_js_arraylist.js.html#l95 http://yuilibrary.com/yui/docs/api/files/collection_js_arraylist.js.html#l106 http://yuilibrary.com/yui/docs/api/files/collection_js_arraylist.js.html#l138 http://yuilibrary.com/yui/docs/api/files/event-custom_js_event-custom.js.html#l99 http://yuilibrary.com/yui/docs/api/files/event-custom_js_event-custom.js.html#l199
http://yuilibrary.com/yui/docs/api/files/anim_js_anim-easing.js.html#l125 http://yuilibrary.com/yui/docs/api/files/anim_js_anim-easing.js.html#l160 http://yuilibrary.com/yui/docs/api/files/anim_js_anim-easing.js.html#l194 http://yuilibrary.com/yui/docs/api/files/anim_js_anim-easing.js.html#l236 http://yuilibrary.com/yui/docs/api/files/anim_js_anim-easing.js.html#l256 http://yuilibrary.com/yui/docs/api/files/anim_js_anim-easing.js.html#l273 http://yuilibrary.com/yui/docs/api/files/app_js_model.js.html#l805 http://yuilibrary.com/yui/docs/api/files/attribute_js_AttributeCore.js.html#l124 http://yuilibrary.com/yui/docs/api/files/attribute_js_AttributeCore.js.html#l361 http://yuilibrary.com/yui/docs/api/files/attribute_js_AttributeCore.js.html#l666
module Y { | |
interface Anim extends Base { | |
} | |
interface App extends App_Base, App_Content, App_Transitions, PjaxContent { | |
(config?: any); | |
// some code I'm writing... | |
class Matrix { | |
/* ... */ | |
transpose() { | |
var [n, m] = this.size(), | |
rows = this.rows, | |
result = [], | |
i = 0, j = 0; |
var http = require('http'); | |
module.exports = function (config) { | |
console.log("Starting client"); | |
var client = http.request({ | |
host: config.remoteHost, | |
port: config.remotePort, | |
method: 'CONNECT', | |
path: 'new' |
var express = require('express'); | |
module.exports = function staticRoute(dir, opts) { | |
var static = express.static(dir, opts); | |
return function (req, res, next) { | |
static({ url: req.params[0] }, res, next); | |
}; | |
}; |
function Superclass() { | |
} | |
Superclass.prototype.someMethod = function () { | |
console.log('foo'); | |
}; | |
Superclass.staticMethod = function () { | |
console.log('I\'m "static"'); | |
}; |
@mapagella came to me with a question. A friend of his was trying to do ray tracing with CSS3. He wanted to rotate in 3D a <div>
element shaped like a line so that it started and ended in specific points in space.
It turns out that CSS3 defines a rotate3d()
transform function that allows you to rotate an HTML element a certain angle around a certain direction in 3D space. The function looks like rotate3d(x, y, z, angle)
where x
, y
and z
define the direction around which the element will be rotated. The question then is what direction and which angle to use.
Let's start by defining what our line will be. We'll use a div
element with a line
class: <div class="line"></div>
. And we'll define line
as:
.line {
background: green;
The Button widget is removing the type
attribute from the Cancel button.
This makes that button behave like a submit button.
There are many possible paths to make this work. I'll start from simple to complex. The first is to avoid the issue entirely and not use JavaScript at all. Just use a link:
<form action="/Administration/Department/Create2" method="post">
<button class="yui3-button">Save</button>
<a class="yui3-button" href="/Administration/Department/List">Cancel</a>
function PluginObserver() { | |
this.publish('plug', { | |
emitFacade: true, | |
defaultFn: '_plug' | |
}); | |
this.publish('unplug', { | |
emitFacade: true, | |
defaultFn: '_unplug' | |
}); | |
} |