Skip to content

Instantly share code, notes, and snippets.

View a1ex7's full-sized avatar

TAlex a1ex7

  • NDA
  • Kharkov
View GitHub Profile
@a1ex7
a1ex7 / scroll-next.js
Last active June 26, 2017 14:25 — forked from agragregra/scroll-next.js
jQuery Scroll To Next Section
/* Button for scroll to next section */
$('.scroll-next').click(function() {
var cls = $(this).closest('.section').next().offset().top;
$('html, body').animate({scrollTop: cls}, 'slow');
});
@a1ex7
a1ex7 / gulpfile.js
Created March 25, 2017 16:27 — forked from agragregra/gulpfile.js
Jekyll, Browsersync and Gulp
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
clean = require('gulp-clean'),
concat = require('gulp-concat'),
notify = require('gulp-notify'),
Keymap (Windows Users):
[
{ "keys": ["alt+shift+f"], "command": "reindent" },
]
Settings:
{
"show_definitions": false,
"auto_complete": false,
"bold_folder_labels": true,
@a1ex7
a1ex7 / jquery-active.js
Created March 25, 2017 16:26 — forked from agragregra/jquery-active.js
jQuery Active Menu
//Active menu
$("li a").each(function() {
if (this.href == window.location.href) {
$(this).addClass("active");
}
});
@a1ex7
a1ex7 / button.sass
Created March 25, 2017 16:24 — 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
@a1ex7
a1ex7 / scroll-top.html
Created March 25, 2017 16:20 — 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