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
| // случайное число от и до | |
| function getRandomNumber(min, max) { | |
| var rand = min + Math.random() * (max + 1 - min); | |
| rand = Math.floor(rand); | |
| return rand; | |
| } |
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
| <img src="{{view url=" images/slide-bg.jpg "}}" alt="test" /> |
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
| <!-- first in body --> | |
| <div style="display: none;"> | |
| <include src="build/img/symbols.svg"></include> | |
| </div> | |
| <!-- using --> | |
| <svg class="efect__timer" width="238" height="276"> | |
| <use xlink:href="#icon-timer"></use> | |
| </svg> |
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).on('load', function() { | |
| $('.preloader').delay(1000).fadeOut('slow'); | |
| }); | |
| <div class="preloader"><div class="pulse"></div></div> | |
| .preloader | |
| position: fixed | |
| top: 0 | |
| left: 0 |
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
| $('.top').click(function() { | |
| $('html, body').stop().animate({scrollTop: 0}, 'slow', 'swing'); | |
| }); | |
| $(window).scroll(function() { | |
| if ($(this).scrollTop() > $(window).height()) { | |
| $('.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
| .visually-hidden:not(:focus):not(:active) { | |
| position: absolute; | |
| width: 1px; | |
| height: 1px; | |
| margin: -1px; | |
| border: 0; | |
| padding: 0; | |
| white-space: nowrap; | |
| clip-path: inset(100%); | |
| clip: rect(0 0 0 0); |
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
| HTML: | |
| <div class="wrapper"> | |
| <div class="tabs"> | |
| <span class="tab">Вкладка 1</span> | |
| <span class="tab">Вкладка 2</span> | |
| <span class="tab">Вкладка 3</span> | |
| </div> | |
| <div class="tab_content"> | |
| <div class="tab_item">Содержимое 1</div> | |
| <div class="tab_item">Содержимое 2</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
| <?php | |
| $idObj = get_category_by_slug('s_about'); | |
| $id = $idObj->term_id; | |
| echo get_cat_name($id); | |
| ?> |