This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @keyframes pulse // animation: pulse 6s infinite; | |
| 0% | |
| opacity: 1 | |
| 50% | |
| opacity: 0 | |
| 100% | |
| opacity: 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ?> | |
| <?php | |
| echo 'Полный путь к каталогу: '; | |
| echo $_SERVER['DOCUMENT_ROOT']; | |
| echo '/'; | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Событие по куки | |
| setTimeout(function() { | |
| var kuka = $.cookie('banner-biocare'); //получили значение куки | |
| console.log('Кука содержит: ' + kuka); //Значение куки в лог | |
| if (kuka!='has_been_show') { | |
| console.log('При проверке решено показать баннер'); //Значение куки в лог | |
| $('.banner-biocare').addClass('banner-biocare-show'); | |
| console.log('Баннер всплыл'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(window).resize(function() { | |
| if(document.documentElement.clientWidth < 768) { | |
| $('.banner-biocare img').after($('.power_btn')); | |
| console.log('Ok...') | |
| } else { | |
| $('.banner-biocare span').after($('.power_btn')); | |
| console.log('Return...') | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $post = $wp_query->post; | |
| if (in_category('4')) { | |
| include(TEMPLATEPATH.'/single-uslugi.php'); | |
| } else { | |
| include(TEMPLATEPATH.'/single-default.php'); | |
| } elseif (in_category(3)) { | |
| include(TEMPLATEPATH.'/single-stati.php'); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="while_start"> | |
| <!-- вывод постов компонентом --> | |
| <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | |
| <!-- Item start --> | |
| <div class="stati-item"> | |
| <div class="stati-item-left"> | |
| <div class="date_item"><?php the_time('j F Y'); ?></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- GIT main command --> | |
| <!-- 1 Создание проекта --> | |
| mkdir hello - создать каталог | |
| cd hello - войти в каталог | |
| touch hello.html - создать файл | |
| <!-- Создание/инициализация репозитория --> | |
| git init - создать git репозиторий из этого каталога |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Кнопка На верх | |
| $(window).scroll(function(){ | |
| if($(this).scrollTop() > $(this).height()) { | |
| console.log($(this).height()); | |
| console.log($(this).scrollTop()); | |
| $('.top').addClass('active'); | |
| } else { | |
| $('.top').removeClass('active'); | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @font-face{ | |
| font-family: 'dashicons'; | |
| src: url('fonts/dashicons.eot'); | |
| src: url('fonts/dashicons.eot?iefix') format('eot'), | |
| url('fonts/dashicons.woff') format('woff'), | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Template Name: Отзывы | |
| */ | |
| /** | |
| * The template for displaying all pages. | |
| * | |
| * This is the template that displays all pages by default. | |
| * Please note that this is the WordPress construct of pages | |
| * and that other 'pages' on your WordPress site will use a |