Skip to content

Instantly share code, notes, and snippets.

@lexander
lexander / pinterest_noDescription.js
Created April 16, 2012 14:32
.noDescription click handler fix
$('.noDescription').live('click', function() {
var form = $('<div class="Form" id="editDescription"></div>');
var textarea = $('<textarea></textarea>');
var charCount = $('<div class="CharacterCount"></div>');
var button = $('<a class="Button11 Button RedButton editDescription" href="#"><strong>Save Description</strong><span></span></a>');
trackGAEvent('about_field', 'expanded', 'profile');
form.append(textarea).append(button).append(charCount);
$('.noDescription').replaceWith(form);
@lexander
lexander / YUIDocCheck.js
Created May 31, 2013 16:51
Example showing how to attach a property to a module using YUIDoc
Y.Namespace("fooNS");
/**
* A test module with some classes attached to it.
* @module fooModule
*/
/**
* Global configuration for the fooModule
* @property config
* @for fooModule
@lexander
lexander / gist:5751836
Created June 10, 2013 20:09
YUIDoc overloaded method example.
/**
* A test class file.
* @class TestClass
* @constructor
*/
function TestClass () {
}
/**
<link rel="import" href="../paper-radio-group/paper-radio-group.html">
<link rel="import" href="../paper-radio-button/paper-radio-button.html">
<link rel="import" href="../paper-checkbox/paper-checkbox.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<polymer-element name="my-element">
<template>
<style>