This file contains 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
<!--CSS--> | |
.ibg{ | |
background-position: center; | |
background-size: cover; | |
background-repeat: no-repeat; | |
position: relative; | |
} | |
.ibg img{ | |
width: 0; | |
height: 0; |
This file contains 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
navigator.clipboard.writeText('Текст'); |
This file contains 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
let arr = [2, 3, 555, 38, 58]; | |
arr.sort(function (a, b) { | |
return a - b; | |
}); | |
console.log(arr); |
This file contains 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
// Адаптивные свойства | |
$maxWidth: 1920; | |
$maxWidthContainer: 1200; | |
@mixin adaptiv-value($property, $startSize, $minSize, $type) { | |
$addSize: $startSize - $minSize; | |
@if $type==1 { | |
// Только если меньше контейнера | |
#{$property}: $startSize + px; |
This file contains 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
<!-- Подключаем стили в head --> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css"> | |
<!-- Подключаем скрипты в самый низ сайта --> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/wow/1.1.2/wow.min.js"></script> | |
<script>new WOW().init();</script> |
This file contains 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.size-auto, | |
img.size-full, | |
img.size-large, | |
img.size-medium, | |
.attachment img, | |
.widget-container img { | |
max-width: 100%; | |
height: auto; |
This file contains 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 // Display blog posts on any page @ http://m0n.co/l | |
$temp = $wp_query; $wp_query= null; | |
$wp_query = new WP_Query(); $wp_query->query('showposts=3' . '&paged='.$paged); | |
while ($wp_query->have_posts()) : $wp_query->the_post(); | |
?> | |
//Вставте сюда код который хотите выводить на странице | |
<?php endwhile; ?> |
This file contains 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
<title><?php wp_title('|', true, 'right'); ?><?php bloginfo('name'); ?></title> |
This file contains 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
let pagePathName = location.pathname.split('/').slice(-1)[0]; | |
if(pagePathName == ""){ | |
pagePathName = 'index.html' | |
}; | |
console.log('pagePathName = '+ pagePathName); | |
$(`.header__menu-item a[href="${ pagePathName }"]`).addClass('header__menu-item_selected'); | |
$(`.footer__menu-item a[href="${ pagePathName }"]`).addClass('header__menu-item_selected'); |
NewerOlder