Skip to content

Instantly share code, notes, and snippets.

Avatar

Florian Symanowski iceteabottle

View GitHub Profile
View responsive-font-size.scss
$font-size-base: 16px !default;
@function strip-unit($value) {
@return $value / ($value * 0 + 1);
}
@function pxToRem($value) {
@return $value / $font-size-base * 1rem;
}
@iceteabottle
iceteabottle / key.js
Created Sep 26, 2017
form submit key return #js
View key.js
$(window).keydown(function (event) {
if (event.keyCode === 13 && $(':input').is(':focus')) {
event.preventDefault();
$('#next-step').trigger('click');
return false;
}
});