2024-07-08 13:43:28 -07:00
|
|
|
%outfit-viewer
|
2024-07-07 21:32:41 -07:00
|
|
|
.loading-indicator= render partial: "hanger_spinner"
|
2024-07-08 13:43:28 -07:00
|
|
|
|
|
|
|
%label.play-pause-button
|
2024-07-08 16:27:38 -07:00
|
|
|
%input.play-pause-toggle{
|
|
|
|
type: "checkbox",
|
|
|
|
checked: outfit_viewer_is_playing,
|
|
|
|
}
|
2024-07-08 13:43:28 -07:00
|
|
|
Play/pause
|
|
|
|
|
2024-07-02 22:43:36 -07:00
|
|
|
- outfit.visible_layers.each do |swf_asset|
|
|
|
|
%outfit-layer{
|
|
|
|
data: {
|
|
|
|
"asset-id": swf_asset.id,
|
|
|
|
"zone": swf_asset.zone.label,
|
|
|
|
},
|
|
|
|
}
|
2024-07-03 20:15:35 -07:00
|
|
|
- if swf_asset.canvas_movie?
|
2024-07-08 16:27:38 -07:00
|
|
|
%iframe{src: swf_asset_path(swf_asset, playing: outfit_viewer_is_playing ? true : nil)}
|
2024-07-03 20:15:35 -07:00
|
|
|
- else
|
|
|
|
= image_tag swf_asset.image_url, alt: ""
|