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="graph"> | |
<svg id="graphic" preserveAspectRatio="none" width="649" height="557" viewBox="0 0 649 557" fill="none" xmlns="http://www.w3.org/2000/svg"> | |
<path d="M20 98.1783L4.95 98.1783L4.95 96.7163L11.1205 96.7163L11.1205 88.0518L4.95 88.0518L4.95 86.5898L20 86.5898L20 88.0518L12.3245 88.0518L12.3245 96.7163L20 96.7163L20 98.1783ZM12.3245 75.3917L10.669 75.3917L10.669 74.1877L20 74.1877L20 75.3917L18.409 75.3917C19.0683 75.7643 19.5628 76.2588 19.8925 76.8752C20.2222 77.4772 20.387 78.1293 20.387 78.8317C20.387 80.2937 19.9068 81.469 18.9465 82.3577C17.9862 83.2463 16.7822 83.6907 15.3345 83.6907C13.8725 83.705 12.6685 83.2607 11.7225 82.3577C10.7622 81.4403 10.282 80.2578 10.282 78.8102C10.282 78.0792 10.4468 77.427 10.7765 76.8537C11.1062 76.266 11.6222 75.7787 12.3245 75.3917ZM19.355 78.8317C19.355 77.8427 18.9895 77.0257 18.2585 76.3807C17.5275 75.7213 16.5528 75.3917 15.3345 75.3917C14.2165 75.406 13.2705 75.7285 12.4965 76.3592C11.7082 76.9755 11.314 77.7853 11.314 78.7887C11.314 79.8207 |
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 getSlideDataIndex(swipe) { | |
var activeIndex = swipe.activeIndex; | |
var slidesLen = swipe.slides.length; | |
if (swipe.params.loop) { | |
switch (swipe.activeIndex) { | |
case 0: | |
activeIndex = slidesLen - 3; | |
break; | |
case slidesLen - 1: | |
activeIndex = 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
<? | |
$idp = get_the_ID(); | |
$args = ( [ | |
'child_of' => $idp, | |
'date_format' => get_option('date_format'), | |
'depth' => 1, | |
'echo' => 1, | |
'exclude' => '', | |
'exclude_tree' => '', |
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 $name = single_cat_title('', false); | |
$cat_id = get_cat_ID($name); ?> |
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 (is_category()) { | |
$current_cat=get_query_var('cat'); | |
$categories = wp_list_categories(array( | |
'child_of' => $current_cat, | |
'title_li' => '', | |
'use_desc_for_title' => false, | |
'hide_empty' => 0, | |
'exclude' => '13,7', | |
'hierarchical' => 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
mainSliderDesc.controller.control = mainSlider; | |
mainSlider.controller.control = mainSliderDesc; | |
let menuButton = document.querySelector('.menu-button'); | |
let mobileNav = document.querySelector('.mobile-nav'); | |
let mobileNavClose = document.querySelector('.mobile-nav__close'); | |
let overlay = document.querySelector('.overlay'); | |
let body = document.querySelector('body'); | |
let openMenu = function () { | |
menuButton.classList.toggle('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
let lastScrollTop = 0; | |
let header = document.querySelector('.header'); | |
let headerHeight = header.scrollHeight; | |
let wrapper = document.querySelector('.wrapper'); | |
wrapper.style.paddingTop = headerHeight + 'px'; | |
let headerPos = function () { | |
let top = window.pageYOffset; |
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 appHeight = () => { | |
let vh = window.innerHeight * 0.01; | |
document.documentElement.style.setProperty('--vh', `${vh}px`); | |
}; | |
appHeight(); | |
window.addEventListener('resize', appHeight); | |
window.addEventListener('load', appHeight); |
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
// Circle size | |
let circle = document.querySelectorAll('.article__age'); | |
circle.forEach(item => { | |
let circleWidth = item.offsetWidth; | |
item.style.height = circleWidth + 'px'; | |
}); | |
window.addEventListener('resize', function (event) { |
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
.attach | |
position: relative | |
display: flex | |
flex-direction: column | |
&__item | |
display: flex | |
align-items: center | |
margin-bottom: 5px | |
&:last-of-type | |
margin-bottom: 0px |
NewerOlder