Skip to content

Instantly share code, notes, and snippets.

View apipkin's full-sized avatar
🤖
^_^

Anthony Pipkin apipkin

🤖
^_^
View GitHub Profile
YUI.add('echofin-modal-upload',function(Y){
var ioUpload = Y.clone(BASE_IO),
ul = Y.one(this.FORM_CONTAINER + ' ul');
;
ioUpload.method = 'POST';
ioUpload.url = BASE_URL + 'properties/property-pdfs/uploadImage/';
Y.Echofin.Modal.Upload = {
sheet = new Y.StyleSheet('<link rel="stylesheet" type="text/css" href="' + location.pathname + '/../css/ppp/' + jdata['issue'] + '.css" />');
YUI.add('echofin-modal',function(Y){
var _modal
;
Y.Echofin.Modal = {
BUTTON_CANCEL : 'Cancel',
BUTTON_OK : 'Ok',
BUTTON_NO : 'No',
BUTTON_YES : 'Yes',
// where...
someFunc = function(e) {
// e has the event data
}
// I'm having a play with YUI 3 and came across an oddity.
Y.all('input').on('focus', someFunc);
// In the context of someFunc, 'this' is the set of inputs and
Y.delegate('click',function(e){
e.preventDefault();
},'.browse_link','a');
_switch : function(o){
try {
Y.log(64);
_scrollAnimation.stop();
Y.log(66);
}catch(e){
// do nothing
}
var group = window.location.hash || this._switchCookie() || '#components';
YUI.add('text-resize',function(Y){
var _current = 0;
var Resize = {
MIN : 10,
MAX : 18,
DEFAULT : 14,
UNIT : 'px',
COOKIE : 'GP_FONT_SIZE',
YUI.add('echofin-form-remaining',function(Y){
var _counters = {};
var Remaining = {
ERROR_CLASS : 'echofin-form-error',
attachCharacterCounter : function (node, max_chars, message, message_node) {
function loopDir($path = null) {
if($path === null) {
$path = '.';
}
$d = dir($path);
$ret = '';
while(false !== ($f = $d->read())) {
if($f === '.' || $f === '..') {
continue;
<?php
/**
* Build Directory array
*/
function loopDir($path = null) {
if($path === null) {
$path = './';
}