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 install_clock() { | |
var clock = document.createElement("canvas"); | |
clock.width = 250; | |
clock.height = 250; | |
$("#results > div.time > div.clock > div").append(clock); | |
if (!Modernizr.canvas) G_vmlCanvasManager.initElement(clock); | |
var ctx = clock.getContext("2d"); | |
var radius = 78; | |
var center_x = clock.width / 2; | |
var center_y = clock.height / 2; |
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
describe "Timer", -> | |
beforeEach -> | |
@timer = new Timer() | |
describe "a new instance", -> | |
it "should return 0 for getTotalSeconds()", -> | |
(expect @timer.getTotalSeconds()).toEqual(0) |
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="module-weather"> | |
<div class="timeslot timeslot-main"> | |
<a href="/weather"> | |
<span class="forecast">Sunny</span> | |
<h3>Shrewsbury</h3> | |
<span class="temperature">11<abbr title="Degrees celsius">°C</abbr></span> | |
<strong class="time">Now</strong> | |
</a> | |
</div> | |
<div class="timeslot timeslot-sub"> |
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
var bootstrap = { | |
pubsub: pubsub, | |
$: function(selector) { | |
return bonzo(qwery(selector)); | |
}, | |
bind: function(el, event, fn) { | |
el[0].addEventListener(event, fn, false); | |
} | |
}; |
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
// --------------------------------------- | |
// BLQ | |
// --------------------------------------- | |
#blq-container { | |
background: @site-background; | |
// imports | |
.i(@device); | |
} |
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
// --------------------------------------- | |
// BLQ | |
// --------------------------------------- | |
#blq-container { | |
background: @site-background; | |
compact({ | |
background: red; | |
}); | |
tablet( |
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
// --------------------------------------- | |
// BLQ | |
// --------------------------------------- | |
#blq-container { | |
background: @site-background; | |
// --------------------------------------- | |
// IMPORTS | |
// --------------------------------------- |
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
// --------------------------------------- | |
// BLQ | |
// --------------------------------------- | |
#blq-container { | |
background: @site-background; | |
core { | |
// core | |
} | |
compact { |
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() { | |
// Config object | |
var Config = function( initialSettings ) { | |
var store = (initialSettings && typeof initialSettings === 'object') ? initialSettings : {}; | |
return { | |
get: function( key ) { | |
if(key) return store[key]; | |
return store; |
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
// device.config.js | |
define(['module/config/config'], function( config ) { | |
// some logic up somewhere | |
var device; | |
switch(true) { | |
case (screen.width > 1200): device = 'wide'; break; | |
case (screen.width > 640): device = 'tablet'; break; | |
... | |
} |
OlderNewer