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
// Gets the location in a grid of objects by numbered row and lettered column | |
// Example: 5C is the 5th row, 3rd column | |
getGridLocation = function($el) { | |
var $items = $el.find('.item:visible'), | |
index = $items.index($el), | |
lefts = [], | |
tops = []; | |
$items.each(function() { | |
var $item = $(this), |
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
Date.prototype.beginningOfWeek = function () { | |
return new Date(this - ((this.getDay() - (arguments[0] || 0)) * 86400000)); | |
} |
NewerOlder