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
<!doctype html> | |
<html> | |
<head><title>Test Page</title></head> | |
<body class="yui-skin-sam"> | |
<!-- Bootstrap Script //--> | |
<script type="text/javascript" src="../../../../yui3/build/yui/yui-debug.js"></script> | |
<!-- Initialization process //--> | |
<script type="text/javascript"> | |
YUI_config = { |
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
<!doctype html> | |
<html> | |
<head><title>Test Page</title></head> | |
<body class="yui-skin-sam"> | |
<!-- Bootstrap Script //--> | |
<script type="text/javascript" src="../../../../yui3/build/yui/yui-debug.js"></script> | |
<!-- Initialization process //--> | |
<script type="text/javascript"> | |
YUI_config = { |
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 class="yui-accordion"> | |
<div class="yui-accordion-item> | |
<h3 class="yui-accordion-item-trigger">item 1</h3> | |
<div class="yui-bd yui-accordion-item-bd">contenet</div> | |
</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
Y.namespace('Plugin').NodeAccordion = Y.Base.create("NodeAccordion", Y.Plugin.Base, [], { | |
// Prototype Properties for NodeAccordion | |
/** | |
* @property _root | |
* @description Node instance representing the root node in the accordion. | |
* @default null | |
* @protected | |
* @type Node |
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
/** | |
* <p>The Accordion Node Plugin makes it easy to transform existing | |
* markup into an accordion element with expandable and collapsable elements, | |
* elements are easy to customize, and only require a small set of dependencies.</p> | |
* | |
* | |
* <p>To use the Accordion Node Plugin, simply pass a reference to the plugin to a | |
* Node instance's <code>plug</code> method.</p> | |
* | |
* <p> |
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
/** | |
* <p>The Dispatcher satisfies a very common need of developers using the | |
* YUI library: dynamic execution of HTML Fragments or remote content. Typical strategies to | |
* fulfill this need, like executing the innerHTML property or referencing remote | |
* scripts, are unreliable due to browser incompatibilities. The Dispatcher normalize | |
* this behavior across all a-grade browsers. | |
* | |
* <p>To use the Dispatcher Module, simply create a new object based on Y.Dispatcher | |
* and pass a reference to a node that should be handled.</p> | |
* |
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_config = { | |
// standard YUI_config configuration | |
combine: true, | |
filter: 'min', | |
// event binder configuration starts here | |
eventbinder: { | |
// set of options that should be preserved for every event (all optional) | |
ev: { | |
ctrlKey: 0, | |
altKey: 0, |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>test</title> | |
</head> | |
<body> | |
<!-- YUI 3 Seed //--> |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Event Binder - Simple</title> | |
</head> | |
<body> | |
<div id="doc"> | |
<div id="democlick"> |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Event Binder Evolution</title> | |
</head> | |
<body> | |
<div id="doc"> | |
<div id="democlick"> |
OlderNewer