This file contains hidden or 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 thumbs = document.getElementsByClassName('thumb'); | |
Object.keys(thumbs).map( | |
function (key) { | |
return thumbs[key] | |
} | |
); |
This file contains hidden or 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
.form-searchbar { | |
.searchbar-hidden, | |
label { | |
@include transition-duration($transition-duration); | |
@include transition-timing-function($transition-timing-function); | |
} | |
.searchbar-hidden { | |
@include transition-property(width); | |
@include transition-delay($transition-delay); |
This file contains hidden or 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
// helper mixin to display retina images | |
// | |
// @param {List *required} nth($display, 1) - display | |
// @param {List *optional} nth($display, 2) - width | |
// | |
// image-1x is display and hide on high resolution screens | |
// image-2x is hide and display on high resolution screens | |
// | |
// @use @include image-retina(inline, 60px); | |
@mixin image-retina($display...) { |
This file contains hidden or 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
$transition-duration: .3s !default; | |
$transition-timing-function: ease !default; | |
$sticky-limit: 80px; | |
.sticky { | |
@include transition-duration($transition-duration); | |
@include transition-property(top); | |
@include transition-timing-function($transition-timing-function); | |
position: fixed; | |
top: -$sticky-limit; |
This file contains hidden or 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
/** | |
* | |
* helper classes | |
* @use to remove padding or margin | |
* | |
* .no-padding, no-margin |
This file contains hidden or 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 to align vertically an element relative to its first positioned parent | |
* | |
* @params $position-type | |
* @params $align | |
* | |
* @use @include vertical-align; | |
* or @include vertical-align($position-type: absolute, $align: bottom); | |
* to override defaults |
This file contains hidden or 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 to make an element take the full width and height relative to its first positioned parent | |
* | |
* @params none | |
* | |
* @use @include make-block-full; | |
* | |
*/ | |
@mixin make-block-full() { |
This file contains hidden or 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
// Avoid `console` errors in browsers that lack a console. | |
(function() { | |
var method; | |
var noop = function () {}; | |
var methods = [ | |
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', | |
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', | |
'markTimeline', 'profile', 'profileEnd', 'table', 'time', 'timeEnd', | |
'timeline', 'timelineEnd', 'timeStamp', 'trace', 'warn' | |
]; |
This file contains hidden or 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 $addressInput = $('#locationAddressInput'); | |
var setKeyDownListener = selectFirstOptionOnEnter($addressInput[0]); | |
window.autocomplete = new google.maps.places.Autocomplete($addressInput[0], { | |
type: ['geocode'], | |
componentRestrictions: {country: 'be'} | |
}); | |
google.maps.event.addListener(window.autocomplete, 'place_changed', function () { | |
var address = window.autocomplete.getPlace(); |
This file contains hidden or 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 counter() { | |
var count = 1; | |
return function() { | |
alert(count++); | |
} | |
} |
NewerOlder