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
class SliderControl | |
constructor: (@el) -> | |
# Setup references | |
@progbar = @el.find '.progress' | |
@handle = @el.find '.handle' | |
@progX = @el.offset().left | |
@progW = @el.width() | |
@percent = 0 | |
@progress = 0 | |
@isDragging = no |
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
// Generated by CoffeeScript 1.4.0 | |
(function() { | |
var SliderControl, introAnimation, | |
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; | |
SliderControl = (function() { | |
function SliderControl(el) { | |
this.el = el; | |
this.updateProgress = __bind(this.updateProgress, 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
class SliderControl | |
constructor: (@el) -> | |
# Setup references | |
@progbar = @el.find '.progress' | |
@handle = @el.find '.handle' | |
@progX = @el.offset().left | |
@progW = @el.width() | |
@percent = 0 | |
@progress = 0 | |
@isDragging = no |
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
class SliderControl | |
constructor: (@el) -> | |
# Setup references | |
@progbar = @el.find '.progress' | |
@handle = @el.find '.handle' | |
@progX = @el.offset().left | |
@progW = @el.width() | |
@percent = 0 | |
@progress = 0 | |
@isDragging = no |
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 ['backbone', 'underscore', 'plugins/jquery.pep'], (Backbone, _) -> | |
Backbone.View.extend | |
className: "element" | |
initialize: -> | |
@render() | |
setSize: (w, h) -> | |
@el.style.width = @cmToPx(w) + "px" | |
@el.style.height = @cmToPx(h) + "px" | |
setImage: (image) -> | |
@el.style.backgroundImage = "url(#{image})" |
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
/*-----------------------------------------------------------------------------------*/ | |
/* FIGURE OUT WHEN CONCERTS PLAY | |
/*-----------------------------------------------------------------------------------*/ | |
function get_concert_timeframe($timestamp) { | |
// Time filter (next weekend, 30 days, next year etc.) | |
$time = ''; | |
$next_monday = strtotime("next Monday"); | |
$weekend_start = strtotime("next Friday"); | |
$next_month = strtotime("+1 month")2; | |
$next_six_months = strtotime("+6 months"); |
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
// Generated by CoffeeScript 1.6.1 | |
(function() { | |
define(['soundcloudAPI'], function(SC) { | |
var AudioPlayer, | |
_this = this; | |
AudioPlayer = (function() { | |
function AudioPlayer(instruments, playerSelector) { | |
var _this = 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
<?php | |
header("Content-Type: text/Calendar"); | |
header("Content-Disposition: inline; filename=calendar.ics"); | |
echo "BEGIN:VCALENDAR\n"; | |
echo "VERSION:2.0\n"; | |
echo "PRODID:-//Pumpehuset //NONSGML Pumpehuset//EN\n"; | |
echo "METHOD:REQUEST\n"; // requied by Outlook | |
echo "BEGIN:VEVENT\n"; | |
echo "UID:".date('Ymd').'T'.date('His')."-".rand()."-pumpehuset.dk\n"; // required by Outlok | |
echo "DTSTAMP:".date('Ymd').'T'.date('His')."\n"; // required by Outlook |
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
/*-----------------------------------------------------------------------------------*/ | |
/* FIGURE OUT WHEN CONCERTS PLAY | |
/*-----------------------------------------------------------------------------------*/ | |
function get_concert_timeframe($timestamp) { | |
// Time filter (next weekend, 30 days, next year etc.) | |
$time = ''; | |
$next_monday = strtotime("next Monday"); | |
$weekend_start = strtotime("next Friday"); | |
$next_month = strtotime("+1 month"); | |
$next_six_months = strtotime("+6 months"); |
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
.wrap { | |
margin: 2em; | |
width: 100%; | |
} | |
a { | |
font: bold 18px/1.2 sans-serif; | |
text-decoration: none; | |
text-align: center; | |
} |