Skip to content

Instantly share code, notes, and snippets.

View iamandrewpeters's full-sized avatar

Andrew Peters iamandrewpeters

View GitHub Profile
@zackpyle
zackpyle / styles.css
Last active September 11, 2024 16:22
Starter CSS
/** TABLE OF CONTENTS
---------------------------------------------------------------------------/
1.0 - Global Styles
1.1 - General
1.2 - Selection Highlight
1.3 - Buttons
1.4 - Typography
1.5 - Custom Font Face
<script>
var time = new Date();
var dayOfWeek = time.getDay();
// Set office opening time to 8:15am
var startTime = new Date().setHours(8,15);
// Set office closing time to 4:15pm
var endTime = new Date().setHours(16,15);
.desktop-menu-wrap {
display: block;
width: 100%;
height: 100%;
position: relative;
transform: translateX(0);
transition: .3s ease all;
}
.desktop-menu-wrap.open {
jQuery(function($) {
// Toggles the Open Class so that CSS can take care of animating on and off the canvas
$('.desktop-menu-toggle').click(function() {
$('.desktop-menu-wrap').toggleClass('open');
});
});
<?php
// Creates New Nav/Menus
register_nav_menus( array(
'desktop_large' => 'Primary Large Desktop Menu',
'desktop_small' => 'Smaller Desktop Menu',
));
// Places the HTML high up into the DOM
@verticalgrain
verticalgrain / share-links.twig
Last active June 25, 2020 09:49
Timber twig wordpress static sharing links
@jesseeproductions
jesseeproductions / ecp-cf-3-9
Last active February 16, 2024 07:00
The Events Calendar Custom Fields and [email protected]
The Events Calendar Custom Fields @3.9
Event Custom Post Type ( tribe_events )
_EventAllDay
_EventStartDate
_EventEndDate
_EventDuration
_EventVenueID
_EventShowMapLink
_EventShowMap