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
ageVerify: function() { | |
function setCookie(cname, cvalue, exdays) { | |
var d = new Date(); | |
d.setTime(d.getTime() + (exdays*24*60*60*1000)); | |
var expires = "expires="+d.toUTCString(); | |
document.cookie = cname + "=" + cvalue + "; " + expires; | |
} | |
function getCookie(cname) { | |
var name = cname + "="; |
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
<div class="product-price-right-top"> | |
{% if product.handle == 'chocolate-chip-cookie' %} | |
{% for variant in product.variants %} | |
<h2>{{ variant.title }} - {{ variant.price | money_with_currency }} </h2> | |
{% endfor %} | |
{% endif %} | |
</div> |
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
# During development of a node module (CLI) using babel to transpile ES6 code i ran in to the following problem | |
# EXAMPLE my-awsome-module | |
npm link | |
my-awsome-module # => Works as expected | |
# do some changes to my-awsome-module | |
# ...babel transpiles code | |
my-awsome-module # => zsh: permission denied: my-awsome-module |
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
<div class="content-wrapper"> | |
{% if template == 'index' %} | |
{{ content_for_layout }} | |
{% elsif template == 'page.aboutus' %} | |
{{ content_for_layout }} | |
{% else %} | |
<div id="content" class="row"> | |
{% if settings.breadcrumb %} | |
{% include 'breadcrumb' %} | |
{% endif %} |
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
// Change place of divs in dom based on width of device ================================ | |
$(window).resize(function(){ | |
resize(); | |
}); | |
$(document).ready(function(){ | |
resize(); | |
}); | |
function resize(){ |
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
/* Malachi Added Code Below */ | |
// Collection Link Disable ==> // | |
$(document).ready(function() { | |
$('a[href="/collections"]').on('click', function() { | |
return false; | |
}); | |
/*$(function() { | |
var loc = window.location.href; // returns the full URL |
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
// ADD TO CART IMAGE ANIMATION (FLY TO CART) -- COOL -- // | |
$cart = $('span.glyphicon-shopping-cart'); | |
/* get details about the cart div */ | |
var t = $cart.offset().top; | |
var l = $cart.offset().left; | |
var w = parseInt($cart.css('width').replace('px','')); | |
var h = parseInt($cart.css('height').replace('px','')); | |
var vCenter = (t+h)/2; // vertical center of cart div | |
var hCenter = (l+w)/2; // horizontal center of cart div | |
$('.add-to-cart-button').on('click',function(e){ |
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
$('.TESTER123').nivoLightbox({ | |
afterShowLightbox: function(){ | |
var src = $('.nivo-lightbox-content > iframe').attr('src'); | |
$('.nivo-lightbox-content > iframe').attr('src', src + '?autoplay=1'); | |
} | |
}); |
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
$('.TESTER123').nivoLightbox({ | |
afterShowLightbox: function(){ | |
var src = $('.nivo-lightbox-content > iframe').attr('src'); | |
$('.nivo-lightbox-content > iframe').attr('src', src + '?autoplay=1'); | |
} | |
}); |
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
.sidebar-nav li a span:last-child { | |
font-size: 28px; | |
position: absolute; | |
top: 25%; | |
right: 10px; | |
width: 50px; | |
text-align: center; | |
color: rgb(88, 88, 88); | |
text-shadow: 0px 0px 0px white,1px 1px 0px white,-1px -1px 0px white,1px -1px 0px white,-1px 1px 0px white; | |
} |
NewerOlder