Created
February 26, 2016 04:00
-
-
Save trigun0x2/f5760af3d09addb43ff2 to your computer and use it in GitHub Desktop.
This file contains 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
_init_store: function() { | |
self = this; | |
TA.items.list({ type: 'stream-effects'}).then(function(res) { | |
console.log(res); | |
res.forEach((item) => { | |
let html = ` | |
<li> | |
<div class="store_grid-item"> | |
<span class="store_grid-item-label">${item.price}</span> | |
<div data-item_id="${item.id}" | |
data-size_perc=${item.data.size} | |
class="store_grid-item-img" | |
style="background-image: url('${item.thumbnail}');"></div> | |
</div> | |
</li> | |
` | |
$("#store_items-list").append(html); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment