Skip to content

Instantly share code, notes, and snippets.

function defer() {
if (window.jQuery) {
//THE CODE
}
else {
setTimeout(function(){
defer();
}, 250);
}
}
@j7u7l7s
j7u7l7s / gist:b65863385489a6a3e4b1ef3ad7c3e21c
Last active January 22, 2018 05:54
Cloudzoom in a Width: 100%; container
<style>
/* Move the zoomed image to the align with the top of the main image*/
#cloud-zoom-big {
top:0 !important;
background: #fff;
width: 100% !important;
}
/* In this case the zoom lens' boundary container needed to be nudged to be confined to the main image's container*/
.cloud-zoom-lens {
@j7u7l7s
j7u7l7s / product-loop.liquid
Created January 9, 2018 09:49
A small customisation on the the turbo themes search function
{% comment %} Custom Search in Turbo Theme - Excludes untagged products {% endcomment %}
{% assign product_found = false %}
{% assign skip = false %}
{% assign collection_group = products | map: 'id' %}
{% assign collection_group_thumb = collection_group | append : 'thumb' %}
{% assign collection_group_mobile = collection_group | append : 'mobile' %}
{% capture new_row %}
<br class="clear product_clear" />