Created
May 15, 2015 19:40
-
-
Save villanuv/2e0efe3d56ec9f27e759 to your computer and use it in GitHub Desktop.
For QDL Tumblr Post #2 Pt.3
This file contains hidden or 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
// 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