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
jQuery(document).ready(function($){ | |
$.fancybox.open([ | |
{ | |
content : '<a id="ccfa_lander" href="http://ccteamchallenge.force.com/halfmarathon" target="_blank"><img src="<INSERT IMAGE URL HERE>" height="461" width="600"></a>' | |
} | |
], { | |
padding : 0 | |
}); | |
$('#ccfa_lander').click(function(event){ |
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 ImagesAsCheckboxes | |
constructor: (question_id, conditions = null) -> | |
@conditions = | |
debug: conditions && conditions['debug'] || false | |
exclusive: conditions && conditions['exclusive'] || false | |
randomize: conditions && conditions['randomize'] || false | |
grid: conditions && conditions['grid'] || false | |
static_last: conditions && conditions['static_last'] || false | |
selector = "span[id^=#{question_id}C]" | |
@question_id = question_id |
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
countdown = (eventdate, form) -> | |
cid = -1 | |
start = -> | |
cid = setInterval update, 500 | |
stop = -> | |
clearInterval cid | |
pad = (number, width = 2, z = '0') -> | |
number = "#{number}" | |
if number.length >= width | |
number |
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
window.Dice || (window.Dice = {}); | |
Dice.roll = function(dice) { | |
let match = /(\d+)?d(\d+)(?:\+(\d+))?/.exec(dice); | |
if (match == null) { | |
return {}; | |
} | |
let number_of_dice = match[1] == undefined ? 1 : parseInt(match[1], 10); | |
let dice_size = parseInt(match[2], 10); | |
let modifier = match[3] == undefined ? 0 : parseInt(match[3], 10); |
OlderNewer