myCal = new ButterCal({
defaultUI: false
});
myCal.linkUI({
nextMonth: document.querySelector('.next-month'),
prevMonth: document.querySelector('.prev-month'),
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() { | |
$(window).resize(function() { | |
// Do stuff... | |
}).trigger('resize'); | |
}); | |
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
// z-index organization | |
// | |
// References: | |
// - https://css-tricks.com/handling-z-index/ | |
// - http://www.sitepoint.com/using-sass-maps/ | |
// _config.scss | |
$z-layers: ( | |
bottomless-pit: -9999, |
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
// | |
// _config.scss | |
// | |
$tabs-config: ( | |
wrap: ( | |
background: #fafafa, | |
border: #efefef | |
), | |
link: ( | |
color: #251923, |
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 | |
function themekit_preprocess_paragraph(&$variables) { | |
$paragraph = $variables['paragraph']; | |
$bundle = $variables['paragraph']->bundle(); | |
switch ($bundle) { | |
case 'simple_small_cta': | |
$variables['image_inline_style'] = themekit_get_entity_image_inline_style($paragraph, 'field_image', 'small_cta'); | |
break; | |
case 'simple_large_cta': |
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
RewriteCond %{THE_REQUEST} ^.*/index\.php | |
RewriteRule ^index.php(.*)$ /$1 [R=301,L] |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |