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
| <header class="container"> | |
| <div class="right_block_top flex columns-6"> | |
| <a href="mailto:info@uptkprogress.ru">info@uptkprogress.ru</a> | |
| <a href="tel:+7 (3435) 21-21-60">+7 (3435) 21-21-60</a> | |
| <a href="tel:+7 (3435) 47-84-00">+7 (3435) 47-84-00 </a> | |
| </div> | |
| </header> |
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="ra-list"> | |
| <?php | |
| $tags = wp_get_post_tags($post->ID); | |
| if ($tags) { | |
| $tag_ids = array(); | |
| foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id; | |
| $args=array( | |
| 'tag__in' => $tag_ids, // Сортировка происходит по тегам (меткам) | |
| 'orderby'=>rand, // Добавляем условие сортировки рандом (случайный подбор) | |
| 'caller_get_posts'=>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 query_posts('posts_per_page=3'); ?> |
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
| const body = document.querySelector('body') | |
| let cx = window.innerWidth / 2, | |
| cy = window.innerHeight / 2 | |
| body.addEventListener('mousemove', e => { | |
| let clientX = e.pageX | |
| let clientY = e.pageY | |
| console.log(e.pageX + ' / ' + e.pageY) |
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
| input[type='search']::-webkit-search-decoration, | |
| input[type='search']::-webkit-search-cancel-button, | |
| input[type='search']::-webkit-search-results-button, | |
| input[type='search']::-webkit-search-results-decoration | |
| display: none |
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
| condition |
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
| $(document).ready(function() { | |
| // executes when HTML-Document is loaded and DOM is ready | |
| if(document.documentElement.clientWidth < 768) { | |
| $('.main-content').after($('.nav-inner')); | |
| console.log('менее 768px') | |
| } else { | |
| $('.menu-adaptive').after($('.nav-inner')); | |
| console.log('режим отображения более 768px') | |
| } | |
| }); |
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
| //проверяет на наличие в адресе метки и килкает на нужную ссылку | |
| $(document).ready(function () { | |
| if (window.location.href.indexOf("tehnology") > -1) { | |
| console.log("Нужно перейти на технологии"); | |
| $('.main_nav li:nth-child(1) a').trigger('click'); | |
| } | |
| }); |
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
| pic = new Image(); | |
| pic2 = new Image(); | |
| pic3 = new Image(); | |
| pic4 = new Image(); | |
| pic5 = new Image(); | |
| pic6 = new Image(); | |
| pic7 = new Image(); | |
| pic8 = new Image(); | |
| pic.src = "../img/header_bg_1.jpg"; | |
| pic2.src = "../img/header_bg_2.jpg"; |
NewerOlder