Skip to content

Instantly share code, notes, and snippets.

@Nekspsy
Nekspsy / index.html
Created February 25, 2016 12:18
form navbar
<form class="navbar-form pull-right">
<input type="text" style="width: 200px;">
<button type="submit" class="btn btn-default">Submit</button>
</form>
@Nekspsy
Nekspsy / owl-equal-heights.js
Created August 9, 2017 11:43 — forked from agragregra/owl-equal-heights.js
Owl Carousel Equal Heights
onRefresh: function () {
owl.find('div.owl-item').height('');
},
onRefreshed: function () {
owl.find('div.owl-item').height(owl.height());
}
@Nekspsy
Nekspsy / scroll-top.html
Created August 9, 2017 11:45 — forked from agragregra/scroll-top.html
Scroll Top Button
<div class="top" title="Наверх"><i class="fa fa-angle-double-up"></i></div>
.top
position: fixed
bottom: 25px
background-color: #E0E0E0
border-radius: 10em
color: #666
font-size: 26px
width: 50px
@Nekspsy
Nekspsy / window-resize-end.js
Created August 9, 2017 11:46 — forked from agragregra/window-resize-end.js
Window resize-end function
//Resize Window
function onResize() {
};
var doit;
doit = setTimeout(onResize, 400);
window.onresize = function() {
clearTimeout(doit);
doit = setTimeout(onResize, 400);
};
@Nekspsy
Nekspsy / nth-child-loop.sass
Created August 9, 2017 11:47 — forked from agragregra/nth-child-loop.sass
Sass nth-child background-color loop
$colors: $red, $blue, $accent
@for $i from 1 through length($colors)
.carousel-services .owl-item:nth-child(#{length($colors)}n+#{$i})
background-color: nth($colors, $i)
@Nekspsy
Nekspsy / button.sass
Created August 9, 2017 11:48 — forked from agragregra/button.sass
Button Sass Styles (Universal Starter)
.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
@Nekspsy
Nekspsy / button.sass
Last active August 9, 2017 12:04
Button Sass Styles (Universal Starter+styles)
.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
@Nekspsy
Nekspsy / scroll-next.js
Created August 9, 2017 12:06 — forked from agragregra/scroll-next.js
jQuery Scroll To Next Section
$(".scroll-next").click(function() {
var cls = $(this).closest(".section").next().offset().top;
$("html, body").animate({scrollTop: cls}, "slow");
});
@Nekspsy
Nekspsy / jquery-active.js
Created August 9, 2017 12:08 — forked from agragregra/jquery-active.js
jQuery Active Menu
//Active menu
$("li a").each(function() {
if (this.href == window.location.href) {
$(this).addClass("active");
}
});
@Nekspsy
Nekspsy / jQuery.newPlugin.js
Last active August 9, 2017 12:10 — forked from agragregra/jQuery.newPlugin.js
jQuery New Plugin
$.fn.myNewPlugin = function() {
return this.each(function() {
// Do something to each element here.
});
};