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
// Used to cycle through teammates on http://works-progress.com/about-us/ | |
// Initialize counter | |
var c = 0; | |
// Count team size minus 1 to account for 0 based array | |
var teamSize = (document.getElementsByClassName('teammate-info').length - 1); | |
// Assign to first teammate |
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
// Utilized for mobile navigation and sticky nav when scrolling | |
jQuery(function ($) { | |
if (document.documentElement.clientWidth >= 768) { | |
if (window.location.pathname != '/work/') { | |
var height = $(window).height(); | |
var siteHeader = document.getElementsByClassName('site-header')[0]; | |
siteHeader.style.height = height + '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
(function() { | |
'use strict'; | |
const carouselContainer = document.getElementById('carousel-container'); | |
const slides = carouselContainer.getElementsByClassName('carousel-slide'); | |
const images = new Array; | |
var slide = 0; | |
for (let i = 0; i < slides.length; i++) { | |
images.push(slides[i].style.backgroundImage); | |
} |
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 | |
Container::make('post_meta', 'WPD Layout Builder') | |
->show_on_post_type(array('page', 'portfolio')) | |
->add_fields(array( | |
Field::make('complex', 'sections', 'Sections') | |
->setup_labels($section_labels) | |
->set_layout('tabbed-vertical') | |
// Begin Content Section |
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
(function () { | |
'use strict'; | |
if (window.innerWidth >= 1024) { | |
const bookSet = document.getElementsByClassName('mbt-book-archive-books')[0]; | |
const books = bookSet.getElementsByClassName('mbt-book'); | |
var bookList = []; | |
//convert books to array called bookList | |
for (let i = 0; i < books.length; i++) { | |
bookList.push(books[i]); |