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
# See http://stackoverflow.com/questions/4214731/coffeescript-global-variables | |
root = exports ? this | |
root._gaq = [['_setAccount', 'UA-xxxxxxxx-y'], ['_trackPageview']] | |
insertGAScript = -> | |
ga = document.createElement 'script' | |
ga.type = 'text/javascript' | |
ga.async = true | |
proto = document.location.protocol |
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 createStore(table, row){ // Inserts a single row of data into a table | |
var rows = JSON.parse(localStorage.getItem(table)); | |
if (rows == null) { | |
rows = {}; | |
var id = 1; | |
} else { | |
var id = $.map(Object.keys(rows), function(val, i){return parseInt(val);}).reduce(function(a,b){return Math.max(a,b);})+1; | |
} | |
row.id = 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
// Margin classes | |
// ------------------------- | |
@from : 0; | |
@to : 50; | |
.loop(@index) when(@index =< @to) { | |
.mt_@{index} { | |
margin-top: unit(@index, px); | |
} |
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
// Margins and Padding | |
// ------------------------- | |
$i: 0; | |
@while $i <= 50 { | |
.mt#{$i} { margin-top: 1px * $i; } | |
.mb#{$i} { margin-bottom: 1px * $i; } | |
.ml#{$i} { margin-left: 1px * $i; } | |
.mr#{$i} { margin-right: 1px * $i; } | |
.pt#{$i} { padding-top: 1px * $i; } |
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
<template> | |
<button type="button" class="btn btn-secondary" click.trigger="show()">Show</button> | |
</template> |
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
"dependencies": [ | |
... | |
"jquery", | |
{ | |
"name": "tether", | |
"path": "../node_modules/tether/dist", | |
"main": "js/tether", | |
"resources": [ | |
"css/tether.css" |
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
import {customAttribute, autoinject} from 'aurelia-framework'; | |
import { PaymentPlan } from './payment-plan'; | |
import $ from 'jquery'; | |
import 'bootstrap-slider'; | |
@customAttribute('installment-slider') | |
@autoinject | |
export class InstallmentSlider { | |
mySlider: any; |
OlderNewer