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
javascript:(function () { | |
var d = document, | |
z = d.createElement('scr' + 'ipt'), | |
b = d.body; | |
try { | |
if (!b) throw (0); | |
d.title = '(Saving...) ' + d.title; | |
z.setAttribute('src', 'http://remote.url.to.your.js' + encodeURIComponent(d.location.href) + '&t=' + (new Date().getTime())); | |
b.appendChild(z); | |
} catch (e) { |
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
trackPrint: function() { | |
var timestamp = new Date().getTime(); | |
var img = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/__utm.gif?'; | |
img += 'utmac=UA-6451336-1&'; | |
img += 'utmp=' + window.location.origin + '/print' + window.location.pathname + '&'; | |
img += 'utmcc=__utma%3D[INSERT UTMA VALUE].' + timestamp + '.1%3B%2B__utmz%3D[INSERT UTMZ VALUE]%3B'; | |
console.log(img) | |
$('<style media="print">body:after { content:url("' + img + '"); }</style>').appendTo('head'); |
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
@mixin svg-background($image) { | |
& { | |
background-image: image-url("#{$image}.svg"); | |
background-position: top left; | |
background-repeat: no-repeat; | |
background-size: contain; | |
} | |
.no-svg & { | |
background-image: image-url("#{$image}.png"); |
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
/* @group Responsive Tooltip */ | |
body.responder:after { | |
display: block; | |
background: #f00; | |
top: 5px; | |
color: #000; | |
font-size: 36px; | |
position: fixed; |
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
%vertically-centered-child { | |
font-size: 0; | |
text-align: center; | |
&:before { | |
content: ''; | |
display: inline-block; | |
height: 100%; | |
vertical-align: middle; | |
} |
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
module.exports = { | |
partsOneX: { | |
expand: true, | |
src: 'assets/images/parts/*-1x.png', | |
dest: 'assets/images/parts/normal', | |
flatten: true, | |
filter: 'isFile', | |
}, | |
partsTwoX: { | |
expand: true, |
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
<button class="button--blue--large--rounded">I'm a button!</button> |
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 xhr = new XMLHttpRequest(); | |
var values = Array.apply(null, document.querySelectorAll('input')).map(function(el) { | |
return el.value; | |
}); | |
xhr.onload = function() { | |
alert("done"); | |
}; | |
xhr.open("get", "http://192.168.2.14:9999?values=" + values, true); |
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
<button class="button--blue--large--rounded">I'm a button!</button> |
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
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
@for $i from 1 through $total-columns | |
.span-$i | |
@extend %span | |
+span($i) |