-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.html
28 lines (24 loc) · 2.3 KB
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<div class="swatch clearfix" data-option-index="{{ option_index }}">
<div class="header">{{ swatch }}</div>
<div data-value="{{ value | escape }}" class="swatch-element {% if is_color %}color {% endif %}{{ value | handle }} {% if variant.available %}available{% else %}soldout{% endif %}">
<div class="tooltip">{{ value }}</div>
<input id="swatch-{{ option_index }}-{{ value | handle }}" type="radio" name="id" value="{{ variant.id }}" {% if forloop.first %} checked{% endif %} {% unless variant.available %}disabled{% endunless %} />
<label for="swatch-{{ option_index }}-{{ value | handle }}" style="background-color: {{ value | split: ' ' | last | handle }}; background-image: url({{ value | handle | append: '.' | append: file_extension | asset_url }})">
<img class="crossed-out" src="{{ 'soldout.png' | asset_url }}" />
</label>
</div>
<div data-value="{{ value | escape }}" class="swatch-element {% if is_color %}color {% endif %}{{ value | handle }} {% if variant.available %}available{% else %}soldout{% endif %}">
<div class="tooltip">{{ value }}</div>
<input id="swatch-{{ option_index }}-{{ value | handle }}" type="radio" name="id" value="{{ variant.id }}" {% if forloop.first %} checked{% endif %} {% unless variant.available %}disabled{% endunless %} />
<label for="swatch-{{ option_index }}-{{ value | handle }}" style="background-color: {{ value | split: ' ' | last | handle }}; background-image: url({{ value | handle | append: '.' | append: file_extension | asset_url }})">
<img class="crossed-out" src="{{ 'soldout.png' | asset_url }}" />
</label>
</div>
<div data-value="{{ value | escape }}" class="swatch-element {% if is_color %}color {% endif %}{{ value | handle }} {% if variant.available %}available{% else %}soldout{% endif %}">
<div class="tooltip">{{ value }}</div>
<input id="swatch-{{ option_index }}-{{ value | handle }}" type="radio" name="id" value="{{ variant.id }}" {% if forloop.first %} checked{% endif %} {% unless variant.available %}disabled{% endunless %} />
<label for="swatch-{{ option_index }}-{{ value | handle }}" style="background-color: {{ value | split: ' ' | last | handle }}; background-image: url({{ value | handle | append: '.' | append: file_extension | asset_url }})">
<img class="crossed-out" src="{{ 'soldout.png' | asset_url }}" />
</label>
</div>
</div>