This file contains hidden or 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
from django.db import models | |
from django.contrib.localflavor.us.models import PhoneNumberField, USStateField | |
#Sorl-Thumbnail | |
from sorl.thumbnail import ImageField | |
import re | |
""" | |
Benefit Definitions | |
""" |
This file contains hidden or 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
Django==1.3 | |
gondor==1.0b1.post14 | |
psycopg2==2.4.1 | |
-e git+git://github.com/tkh44/django-guardian.git#egg=django-guardian | |
-e git+git://github.com/sorl/sorl-thumbnail.git#egg=sorl-thumbnail | |
south | |
django-tinymce | |
django-reversion | |
django-grappelli==2.3.4 | |
PIL |
This file contains hidden or 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="pieContainer"> | |
<div class="pieBackground"> | |
</div> | |
<div id="pieSlice1" class="hold"> | |
<div class="pie"> | |
</div> | |
</div> | |
<div class="stat-circle-cover"> | |
<span class="stat-number"> | |
25% |
This file contains hidden or 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
(function(window, $) { | |
var elements = {}; | |
window.Spectrum = (function(elements){ | |
var initialize = function() { | |
elements.$colorField = $('#colorField'); | |
elements.$generateColorForm = $('#generateColorForm'); | |
elements.$frontPage = $('#frontPage'); | |
elements.$generateContainer = $('#generateContainer'); |
This file contains hidden or 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
function randomString(length) { | |
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'.split(''); | |
if (! length) { | |
length = Math.floor(Math.random() * chars.length); | |
} | |
var str = ''; | |
for (var i = 0; i < length; i++) { | |
str += chars[Math.floor(Math.random() * chars.length)]; |
This file contains hidden or 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
/*Automatic binding handler | |
*Attribute data-handler is the function in Events.handlers that handles the event | |
*Attribute data-event is the event to bind to element. Defaults to click if none is provided | |
* -To attach multiple events seperate them with '|'. Ex. data-event="click|focus" | |
*Attribute data-binded can be set to false to prevent the event from being attached to the element at run time. | |
* -Set attribute to true then run Events.bindEvents() to bind the event. Elements that have already been bound are skipped. | |
*/ | |
Events = { | |
handlers: { |
This file contains hidden or 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().add('filter-search-plugin', function (Y) { | |
var FilterSearch = Y.Base.create('filterSearch', Y.Base, [Y.AutoCompleteBase], { | |
initializer: function() { | |
this._bindUIACBase(); | |
this._syncUIACBase(); | |
} | |
}); | |
FilterPlugin = Y.Base.create('filterPlugin', Y.Plugin.Base, [], { | |
initializer: function() { |
This file contains hidden or 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="button-group"> | |
<button class="button secondary">Generate Password</button> | |
<button class="button secondary dropdown-toggle" data-toggle="dropdown"> | |
<span class="gear">⚙</span> | |
</button> | |
<ul class="dropdown-menu pull-right"> | |
<li> | |
<div class="dropdown-form-item"> | |
<div id="passwordSlider" class="dropdown-form-item"> | |
<span>Password Length: <span></span></span> |
This file contains hidden or 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
if ( boxId in elements.collapsedBoxes ) { | |
// TODO: This should be changed to yui3 fade,slide??? | |
//Show | |
var showAnim = new Y.Anim({ | |
node: bodyNode, | |
to: { | |
height: function(node) { | |
return node.getData('old-height'); | |
}, | |
paddingTop: '9px', |