Skip to content

Instantly share code, notes, and snippets.

@feNyaHub
feNyaHub / nth-child-loop.sass
Created February 8, 2019 14:13 — 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)
@feNyaHub
feNyaHub / window-resize-end.js
Created February 8, 2019 14:13 — 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);
};
@feNyaHub
feNyaHub / index.html
Created February 22, 2018 18:34 — forked from chengcyber/index.html
infinite background animation loop
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Animation</title>
<style>
body {
margin: 0px;
background: #000;
}
@feNyaHub
feNyaHub / migx-sample.js
Created April 5, 2017 20:13 — forked from agragregra/migx-sample.js
MIGX Sample
Tabs:
[
{"caption":"Tab Title", "fields": [
{"field":"title","caption":"Name"},
{"field":"description","caption":"Description","inputTVtype":"textarea"},
{"field":"imageTV","caption":"Photo","inputTV":"imageTV"}
]}
]
Table:
@feNyaHub
feNyaHub / modx_ace_material.txt
Created April 5, 2017 15:19 — forked from agragregra/modx_ace_material.txt
MODx Ace Material Theme
MODx Ace Material Theme
1. Системные настройки > Пространство имен "ace":
Размер шрифта: 18px
Высота области редактирования: 560
Невидимые символы: Да
Мягкая табуляция: Нет
Размер табуляции: 2
Тема редактора: tomorrow_night
@feNyaHub
feNyaHub / button.sass
Created March 27, 2017 19:12 — 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
@feNyaHub
feNyaHub / scroll-top.html
Created March 27, 2017 19:11 — 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
@feNyaHub
feNyaHub / .htaccess
Created March 19, 2017 14:12 — forked from agragregra/.htaccess
htaccess wget disable
RewriteCond %{HTTP_USER_AGENT} wget [NC]
RewriteRule .* - [F]
@feNyaHub
feNyaHub / .htaccess
Created March 19, 2017 14:11 — forked from agragregra/.htaccess
htaccess index.html & www redirect
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} www.placeburg.com [NC]
RewriteRule (.*) http://placeburg.com/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.(htm(l)?|php)\ HTTP/
RewriteRule ^(([^/]+/)*)index\.(htm(l)?|php)$ http://placeburg\.com/$1 [R=301,L]
@feNyaHub
feNyaHub / header_fadeout.js
Created March 19, 2017 10:48 — forked from agragregra/header_fadeout.js
jQuery Header Content FadeOut on Scroll
$(window).scroll(function() {
var st = $(this).scrollTop();
if($(window).height()+500 > $("header").height()) {
$("header .col-md-12").css({
"transform" : "translate3d(0px, " + st /18 + "%, 0px)",
"-webkit-transform" : "translate3d(0px, " + st /18 + "%, 0px)",
"opacity" : "1" - st/700
});