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
function scheduleNotification(sound, message, hour, min) { | |
//create a new date, and then set the hours and minutes to what the user has set the alarm to be | |
var d = new Date(); | |
d.setHours(hour); | |
d.setMinutes(min); | |
d.setSeconds(0); | |
//cancel all existing notifications <><><><><><><><><<><><><><><><><> | |
clearAllNotifications(); |
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
// Generates the modal window when an item is clicked | |
define(function(require) { | |
// Dependencies | |
var $ = require('jquery'), | |
_ = require('underscore'), | |
Backbone = require('backbone'), | |
tram = require('plugins/tram'); | |
// Init view |
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
define(function(require) { | |
// Dependencies | |
var $ = require('jquery'), | |
_ = require('underscore'), | |
Backbone = require('backbone'), | |
app = require('modules/app'), | |
hammer = require('plugins/jquery-hammer'); | |
// Init view |
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
body.motion-sickness .nav-utility a[href="/motion-sickness"], | |
body.sponsors .nav-utility a[href="/sponsors"], | |
body.schedule .nav-utility a[href="/schedule"], | |
body.schedule .nav-utility a[href="/schedule/friday"], | |
body.gallery .nav-utility a[href="/gallery"] { | |
color: $dark-brown; | |
} | |
body.lineup .nav-main a[href="/lineup"], | |
body.trailer .nav-main a[href="/trailer"], |
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
<div class="caption"> | |
<p>This is a description in the slab font</p> | |
<p class="description">Smaller sub-description. <span class="count">#6 of 24</span></p> |
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
<?php | |
class GadgetController extends BaseController { | |
// Default per page | |
const PER_PAGE = 10; | |
// Homepage feed | |
public function index($filter = null) { |
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
// Homepage feed | |
public function index($filter = null) { | |
// Tell Laravel where to find the mustache views for post | |
app('view')->addNamespace('js', public_path().'/js'); | |
// Render the view | |
$this->layout->nest('content', 'gadget.index', array( | |
'posts' => Post::filter($filter)->ordered()->visible()->take(self::PER_PAGE)->where('type', '=', 'youtube')->get(), | |
'filters' => Filter::ordered()->get(), |
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
// Return a vimeo embed | |
public function marqueeVideoEmbed() { | |
return '<iframe>' . $this->marquee_embed_uid . '</iframe>'; | |
} |
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
.featured-content | |
%h3 Featured Content | |
-if($article1 = $flavor->relatedArticle1()->first()) | |
.featured.first | |
%img(src="#{$article1->croppa(240)}") | |
%span =$article1->title | |
-if($article2 = $flavor->relatedArticle2()->first()) | |
.featured | |
%img(src="#{$article2->croppa(240)}") | |
%span =$article2->title |
OlderNewer