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
$('.scroll-link') | |
.not('[href="#"]') | |
.not('[href="#0"]') | |
.click(function (event) { | |
if ( | |
location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') | |
&& | |
location.hostname == this.hostname | |
) { | |
var target = $(this.hash); |
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
.arrow-up | |
absolute($top:-20px,$left:50%) | |
size(20px) | |
z-index 1 | |
overflow hidden | |
transform translateX(-50%) | |
&:before | |
absolute($bottom:-10px,$left:50%) | |
size(16px) |
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 () { | |
let tabNav = document.querySelectorAll('.tab-list>li'), | |
tabContent = document.querySelectorAll('.tab-content__item'), | |
tabName; | |
tabNav.forEach(function (item) { | |
item.addEventListener('click', selectTabNav) | |
}); | |
function selectTabNav() { | |
tabNav.forEach(function (item) { |
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
.file-upload | |
span.file-upload__text Прикрепите файл | |
.file-upload__btn | |
label.file-upload__btn_label | |
input(type="file") | |
span.file-upload__btn_text Загрузить | |
.file-upload { | |
align-items: center; |
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
let select = () => { | |
let selectCurrent = document.querySelectorAll('.select__current'), | |
selectItem = document.querySelectorAll('.select__list_item'); | |
for (let item of selectCurrent) { | |
item.addEventListener('click', function () { | |
this.parentElement.classList.toggle('is-open'); | |
}) | |
} |
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 | |
// enable divi functions | |
add_action( 'wp_enqueue_scripts', 'my_enqueue_assets' ); | |
function my_enqueue_assets() { | |
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); | |
} | |
//add 1440px image size | |
add_image_size('image_1440', 1440, 9999, false); |
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($) { | |
$.fn.myParallax = function(){ | |
return this.each(function() { | |
var ths = $(this); | |
ths | |
.css({ | |
"min-height" : "400px", |
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 | |
// copy function into functions.php | |
function dpb_all_post_types( $post_types ) { | |
$args = array( | |
'public' => true, | |
'_builtin' => false | |
); | |
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 | |
if ( !function_exists( 'fb_browser_warning' ) ) { | |
function fb_browser_warning() { | |
?> | |
<style> | |
.fb_browser_warning { | |
position: relative; | |
background: #3B5998; | |
padding: 20px 20px 20px 80px; |