Skip to content

Instantly share code, notes, and snippets.

@villanuv
Created May 15, 2015 19:40
Show Gist options
  • Save villanuv/2e0efe3d56ec9f27e759 to your computer and use it in GitHub Desktop.
Save villanuv/2e0efe3d56ec9f27e759 to your computer and use it in GitHub Desktop.
For QDL Tumblr Post #2 Pt.3
// javascript
$('#select-price').insertAfter('#select-brand');
$('#select-light-source').insertAfter('#select-finish');
$('#select-height').insertAfter('#select-width');
$('li.price-100-200').insertAfter('li#select-price ul li:last-child');
$('li.price-200').insertAfter('li#select-price ul li:last-child');
{% for tag in collection.all_tags %}{% if current_tags contains tag %}
{% if tag contains 'brand' %}$('#select-brand').hide();
{% elsif tag contains 'price' %}$('#select-price').hide();
{% elsif tag contains 'finish' %}$('#select-finish').hide();
{% elsif tag contains 'light source' %}$('#select-light-source').hide();
{% elsif tag contains 'width' %}$('#select-width').hide();
{% elsif tag contains 'height' %}$('#select-height').hide();
{% endif %}{% endif %}{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment