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
/* ========================================================================== | |
Layout Styles | |
========================================================================== */ | |
.left-col-wrapper { | |
} | |
.inner-left-col { | |
padding: 0 1em; | |
} |
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
groupAndSortRooms: function(collection) { | |
var startOfWeek = moment().startOf('week'); | |
var endOfWeek = moment().endOf('week'); | |
var startOfNextWeek = moment().add('w', 1).startOf('week'); | |
var endOfNextWeek = moment().add('w', 1).endOf('week'); | |
var thisWeekFormat = 'This Week ' + startOfWeek.format('MM/DD') + '-' + endOfWeek.format('MM/DD'); | |
var nextWeekFormat = 'Next Week ' + startOfNextWeek.format('MM/DD') + '-' + endOfNextWeek.format('MM/DD'); | |
var groupedData = {}; | |
if (!collection.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
renderTimeBlocks: function(timeBlocks, cb) { | |
var self = this, | |
startOfWeek = moment().startOf('week'), | |
endOfWeek = moment().endOf('week'), | |
startOfNextWeek = moment().add('w', 1).startOf('week'), | |
endOfNextWeek = moment().add('w', 1).endOf('week'), | |
thisWeekFormat = 'This Week ' + startOfWeek.format('MM/DD') + '-' + endOfWeek.format('MM/DD'), | |
nextWeekFormat = 'Next Week ' + startOfNextWeek.format('MM/DD') + '-' + endOfNextWeek.format('MM/DD'), | |
timeBlockKeys = ['Today', thisWeekFormat, nextWeekFormat, 'Upcoming']; |
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
updateDateInputValues: function(e) { | |
var $start = $(e.currentTarget), | |
$end = $('input[name="endDate"]'), | |
startDate = moment($start.val(),'YYYY-MM-DD'), | |
endDate = moment($end.val(), 'YYYY-MM-DD'); | |
while(endDate.isBefore(startDate) || endDate.isSame(startDate)) { | |
endDate.add('d', 1); | |
} |
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
Mast.extend('Base', 'Extended', function(){return { | |
blah: function() { | |
console.log('adkfdfd'); | |
} | |
}}); |
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 getMahSubreddits(a) { | |
var myReddits = a.split('/r/')[1].split('+'); | |
myReddits.forEach(function(s) { | |
$.get('http://reddit.com/r/'+s+'/about.json') | |
.success(function(data) { | |
var name = data.data.name; | |
console.log(name); | |
subscribe(name); | |
}); | |
}) |
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
getContacts: function(filter, cb) { | |
var fields = ['name', 'emails'], | |
options = new ContactFindOptions(), | |
callback = cb || $.noop, | |
self = this; | |
options.filter = filter || ''; | |
options.multiple = true; | |
this.reset(); |
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
region[default="App"] { | |
width: 100%; | |
height: 100%; | |
region[default="AppHeader"] { | |
width: 100%; | |
z-index: 12; | |
} |
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
parse: function (events, options) { | |
var eventKeys = _.keys(events || {}), | |
limitEvents, | |
parsedEvents = []; | |
// Optionally filter using set of acceptable event types | |
limitEvents = options.only; | |
eventKeys = _.filter(eventKeys, function checkEventName (eventKey) { | |
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
//Variable | |
@hLBlue: #0e9ccf; | |
// Flat Button Mixin | |
.btn-flat (@color: @lightGray) { | |
border: solid 1px darken(@color, 10%); | |
background-color: @color; | |
.btn-defaults (); | |
&:disabled { |