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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Countdown Clock</title> | |
<meta charset="utf-8"/> | |
<style type="text/css"> | |
#countdown-container { | |
display: -ms-flex; | |
display: -moz-flex; | |
display: -webkit-flex; |
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 | |
/** | |
* Render dataLayer on a WooCommerce thank you page. | |
* This file should be added at the end of Theme Functions (functions.php) | |
* | |
* Official Class descriptions: | |
* https://docs.woocommerce.com/wc-apidocs/class-WC_Abstract_Order.html | |
* https://docs.woocommerce.com/wc-apidocs/class-WC_Order.html | |
* https://docs.woocommerce.com/wc-apidocs/class-WC_Order_Item.html | |
* https://docs.woocommerce.com/wc-apidocs/class-WC_Abstract_Legacy_Order.html |
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 resetInlineDisplay() { | |
for (var i = 0; i < arguments.length; i++) { | |
arguments[i].css('display', ''); | |
} | |
} | |
// example usage | |
var navEls = $('.nav-link-text, #nav-overlay'); | |
var navLinks = $('.nav-links'); | |
// remove inline styles for display |
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
@import "compass/reset"; | |
@import "compass/utilities/general/clearfix"; | |
@import "compass/css3"; | |
@import "breakpoint"; | |
// Colors | |
$color-red: #C84942; | |
$color-red-hover: #B6312A; | |
$color-pink: #E9B7B4; |
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
<!-- START optimizely Total Revenue Goal --> | |
<script type="text/javascript"> | |
var donationAmount = '[[E130:"[[S120:dc:giftAmount]]" "$" "" replaceall]]'; | |
donationAmount = donationAmount.replace(/,/g, '') * 100; | |
window.optimizely = window.optimizely || []; | |
window.optimizely.push(['trackEvent', 'donation_success', {'revenue': donationAmount}]); | |
</script> | |
<!-- END optimizely Total Revenue Goal --> |
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
var els = document.getElementsByClassName('current-class-name'); | |
removeClass(els, 'current-class-name'); | |
addClass(els, 'new-class-name'); | |
var el = document.getElementById('current-class-name'); | |
removeClass([el], 'current-class-name'); | |
addClass([el], 'new-class-name'); | |
function addClass(elements, className) { | |
for (var i = 0; i < elements.length; i++) { |
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
/* | |
* Retina Sprites for Compass | |
* by: Gaya Kessler | |
* last update: 03/11/14 | |
* | |
* Usage: | |
* 1. create two folders in your image directory (in this case 'icons' and 'icons-2x'). | |
* 2. adjust the foldernames defined below if you use different names. | |
* 3. create sprite images for pixel ratio 1 screens and put them in the first folder. | |
* 4. create sprite images for pixel ratio 2 screens and put them in the second folder, use the same filenames. |
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
// vertcal and horizontal alignment | |
// Flexbox Method: uses flexbox to horizontally and vertically center child element (this may be less buggy than the centering mixins below) | |
@mixin flex-center-child-elements { | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
} | |
// Transform Method: sometimes blurry |
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
// Mixin to convert px to em | |
$base-font-size: 16px; | |
@function em($px, $base: $base-font-size) { | |
@return ($px / $base) * 1em; | |
} |
NewerOlder