Skip to content

Instantly share code, notes, and snippets.

@smorev
smorev / Resize Window
Created May 9, 2018 12:08
A picture in browser resizes
function heightDetect() {
$('.main-head').css('height', $(window).height());
};
heightDetect();
$(window).on('resize', function () {
heightDetect();
});
@smorev
smorev / Button
Last active December 8, 2017 14:28
.button
display: inline-block
border: none
color: #fff
text-decoration: none
background-color: $accent
padding: 15px 45px
font-size: 13px
text-transform: uppercase
font-weight: 600
Keymap (Windows Users):
[
{ "keys": ["alt+shift+f"], "command": "reindent" },
]
Settings:
{
"show_definitions": false,
"auto_complete": false,
"bold_folder_labels": true,
function heightses() {
$(".s-direct .item-vertical p").height('auto').equalHeights();
$(".carousel-text").height('auto').equalHeights();
$(".testimonials-head").height('auto').equalHeights();
$(".testimonials-desc").height('auto').equalHeights();
}
$(".mouse-icon").click(function() {
$("html, body").animate({
scrollTop : $(".s-adv").offset().top
}, 800);
});
@smorev
smorev / jQuery Resize Height
Created August 31, 2016 05:17
jQuery Resize Height
function heightDetect() {
$(".main_head").css("height", $(window).height()); /*картинка по высоте браузера*/
}
heightDetect();
$(window).resize(function() {
heightDetect();
});