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
var tabLinks = document.querySelectorAll('ul.tabs li a'); | |
tabLinks[0].setAttribute('class', 'tab--active'); | |
document.querySelectorAll('section.tab-content')[0].style.display = 'block'; | |
for (var i = 0; i < tabLinks.length; i++) { | |
tabLinks[i].onclick = function() { | |
var target = this.getAttribute('href').replace('#', ''); | |
var sections = document.querySelectorAll('section.tab-content'); | |
for(var j=0; j < sections.length; j++) { |
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
var articles = document.querySelectorAll(".element"), | |
index = Math.round(Math.random() * (articles.length + 1)); | |
articles[index].style.background = "lime"; |
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
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
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
<title><?php showMeta('title');?></title> | |
<meta name="description" content="<?php showMeta('description');?>"> |
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
$(block) | |
.css("display", "flex") | |
.hide() | |
.fadeIn(); |
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 initCustomSelects(selectors) { | |
$(selectors).each(function(){ | |
var $this = $(this), numberOfOptions = $(this).children('option').length; | |
$this.addClass('select-hidden'); | |
$this.wrap('<div class="select"></div>'); | |
$this.after('<div class="select-styled"></div>'); | |
var $styledSelect = $this.next('div.select-styled'); | |
$styledSelect.text($this.children('option').eq(0).text()); |
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-modal-opened { | |
padding-right: calc(100vw - 100%); | |
} | |
.body-modal-opened { | |
overflow-y: hidden; | |
} | |
.modal { | |
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
.checkbox-wrapper | |
input(type="checkbox", id="checkboxId", name="checkboxName") | |
label(for="checkboxId") м. Семеновская | |
span |
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 filter_projects_by_taxonomies( $post_type, $which ) { | |
if ( 'project' !== $post_type ) //your post type name instead of 'project' | |
return; | |
$taxonomies = array( 'type' ); //your post type taxonomy name instead of 'type' | |
foreach ( $taxonomies as $taxonomy_slug ) { | |
$taxonomy_obj = get_taxonomy( $taxonomy_slug ); | |
$taxonomy_name = $taxonomy_obj->labels->name; | |
$terms = get_terms( $taxonomy_slug ); |
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
.row { | |
display: flex; | |
flex-wrap: wrap; | |
justify-content:space-between; | |
} | |
.row:after { | |
content: ""; | |
flex: auto; | |
flex-basis: 208px; //width of the other flex-items for right one-row display; if necessary | |
} |
OlderNewer