Skip to content

Instantly share code, notes, and snippets.

<div class="modal-content">
<span class="close1">&times;</span>
<div class="popup-sub">
<h4>SUBSCRIBE TO REEBOK FITNESS</h4>
<p>Keep up to date with the latest news, promotional offers and fitness tips.</p>
<p>By subscribing you accept that you have read and agree to our Terms & Conditions and Privacy Policy.</p>
{%- form 'customer', id: 'footer-newsletter', class: 'Footer__Newsletter Form' -%}
{%- if form.posted_successfully? -%}
<p class="Form__Alert Alert Alert--success">You have been subscribed to our newsletter.</p>
{%- else -%}
// Using add.js queue
// Use this with assumption that you will not edit or add product after it has ben added to the cart.
$('body').on('click', '.update_desk', function(event) {
event.preventDefault();
var thiss = $(this);
Shopify.queue = [];
//var quantityInCart = parseInt($('#cnt-crt-itm').data("cart-count"));
var productHandle = "."+$(this).attr("data-product-handle");
var loader = $(".loader-"+$(this).attr("data-product-handle"));
loader.css('display', 'block');
@rolis19
rolis19 / banner-with-text.css
Created August 22, 2019 08:34
My generic css used to help me build a website faster when handling a project.
.banner-info{
position: absolute;
top: 0;
left: 0;
width: 100%;
display: flex;
flex-direction: column;
}
@rolis19
rolis19 / slick-same-height.css
Created August 22, 2019 08:17
Slick Carousel items set to same height
.slick-items{
display: flex;
}
.slick-item{height: auto}