Skip to content

Instantly share code, notes, and snippets.

View Tolala9's full-sized avatar
🎯
Focusing

Anatolii Lukavenko Tolala9

🎯
Focusing
View GitHub Profile
@Tolala9
Tolala9 / mousewheel-icon.html
Created March 10, 2017 15:07
Mouse Wheel Animation CSS Icon | http://jsfiddle.net/cmajo9h6/
<style>
/* ---------------------------------------------- /*
* Mouse animate icon
/* ---------------------------------------------- */
.mouse-icon {
border: 2px solid #000;
border-radius: 16px;
height: 40px;
width: 24px;
display: block;
<!-- HTML -->
<a href="#" class="toggle-mnu hidden-lg"><span></span></a>
<!-- SASS -->
.toggle-mnu
display: block
width: 28px
height: 28px
margin-top: 14px
@Tolala9
Tolala9 / animate_number
Created March 20, 2017 15:27
jQuery Number Animation with Blur + Number Separator
//Html
<div class="container">
<div class="row">
<div class="col-xs-6">
<div class="lines" data-count="20000"></div>
</div>
<div class="col-xs-6">
<div class="lines" data-count="160000"></div>
</div>
@Tolala9
Tolala9 / SVG to inline
Created March 24, 2017 09:29
Replace all SVG images with inline SVG
/*
* Replace all SVG images with inline SVG
*/
jQuery('img.svg').each(function(){
var $img = jQuery(this);
var imgID = $img.attr('id');
var imgClass = $img.attr('class');
var imgURL = $img.attr('src');
jQuery.get(imgURL, function(data) {
@Tolala9
Tolala9 / migx-sample.js
Created May 10, 2017 08:15 — 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:
Переходим в меню: "Настройки" > "Контроль доступа"
Переходим на вкладку "Политики доступа"
Копируем "Content Editor", редактируем и называем новую политику "Менеджер"
Устанавливаем разрешения:
Установить галку "Изменять права доступа (chmod) к каталогам"
Установить галку "Создавать каталоги в файловой системе"
Установить галку "Получать список подкаталогов для каталога в файловой системе"
Установить галку "Переименовывать каталоги в файловой системе"
Установить галку "Создавать файлы"
Установить галку "Смотреть список файлов в определенном каталоге"
Самый легкий способ установить цель.
Важно чтобы на сайте был скрипт jQuery!
<script>
jQuery(document).ready(function(){
jQuery('form .btn-class').click(function(){
ga('send', 'event', 'knopka', 'click');
});
});
@Tolala9
Tolala9 / button.sass
Created September 20, 2017 14:27 — 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
<?php if ( have_posts() ) : query_posts('p=1');
while (have_posts()) : the_post(); ?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php the_post_thumbnail(array(100, 100)); ?>
<?php endwhile; endif; wp_reset_query(); ?>
<?php
$idObj = get_category_by_slug('s_about');
$id = $idObj->term_id;
echo get_cat_name($id);
?>