Skip to content

Instantly share code, notes, and snippets.

View tivac's full-sized avatar
💭
👋🏻🙃

Pat Cavit tivac

💭
👋🏻🙃
View GitHub Profile
//work around for http://yuilibrary.com/projects/yui3/ticket/2528799
gallery = selectedLink.get("rel").match(/\[(.*)\]/)[1];
// If image is part of a set...
Y.all(selectedLink.get("tagName") + "[href][rel*=" + gallery + "]").each(function () {
YUI.add('validation-plugin', function(Y) {
function ValidationPlugin(config) {
ValidationPlugin.superclass.constructor.apply(this, arguments);
}
Y.mix(ValidationPlugin, {
NAME : "validation",
NS : "form",
ATTRS : {
YUI.add('chiclet', function(Y) {
function Chiclet(config) {
Chiclet.superclass.constructor.apply(this, arguments);
}
Y.mix(Chiclet, {
//YUI ATTRS
NAME : "Chiclet",
ATTRS : {
speed : { value : .4 },
$(this).parent().parent().parent().children('li.open').children('p.content').slideUp('500');
$(this).parent().parent().parent().children('li.open').removeClass('open');
$(this).parent().parent().children('p.content').slideDown('500');
$(this).parent().parent().addClass('open');
Y.on(
"click",
function (e) {
var function_code = e.target.get("id").split("-")[1];
Y.log('handling click...' + function_code, "info", log_key);
var container = Y.one("#manage_action");
Y.io(
menu_config["base_url"] + function_code,
<project name="PhoneGap BlackBerry Ant Build" default="build">
<taskdef resource="bb-ant-defs.xml" />
<!-- PROPERTY DEFINITION - FILL THESE OUT! -->
<!-- rapc and sigtool require the jde.home property to be set -->
<property name="jde.home" location="C:\Program Files (x86)\Eclipse-BlackBerry\plugins\net.rim.ejde.componentpack4.6.1_4.6.1.36\components" />
<!-- Required to launch MDS-CS to allow XHR -->
<property name="mds.home" location="${jde.home}\MDS" />
<!-- directory of simulator to copy files to -->
<property name="simulator.home" location="${jde.home}\simulator\" />
<!-- directory of your phonegap assets (HTML/CSS/JS) - PhoneGap convention is to keep in a folder called 'www'. -->
YUI.add('sample-plugin', function(Y) {
//strings to help compression
var NODE = "node",
SINGLE = "single",
MULTIPLE = "multiple";
Y.SamplePlugin = Y.Base.create("SamplePlugin", Y.Base, [], { // PROTOTYPE PROPERTIES
//private values
_type : null,
<clips name="Mine" scheme="web">
<clip name="HTML page stub" shortcut="html">
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;${1:Page Title}&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="text/html;charset=UTF-8"&gt;
${2:&lt;!-- CSS --&gt;}
&lt;/head&gt;
/**
* Inspired by the original Lightbox, this is a port to YUI.
* See Lokesh Dhakar's original at http://www.huddletogether.com/projects/lightbox2/.
* Currently supports everything that module supports with plans to integrate
* additional functionality (i.e. non-images, slideshow mode, etc.) coming soon.
*
* @module gallery-lightbox
*/
var L = Y.Lang,