teerullino10
-
Posts
4 -
Joined
-
Last visited
Posts posted by teerullino10
-
-
Also what is the difference between
https://steamcommunity-a.akamaihd.net/economy/image/class/730/310776773
and
And why is the last one used by all the betting sites and not the first one which seems easier to use
-
Use this
<img src="https://steamcommunity-a.akamaihd.net/economy/image/{theitem img link}/256fx256f">
That part I already know but how do I get the item img link in there?
-
Hi, I'm a newbie coder and am having trouble with fetching csgo item images for an experimental exchange site.
All this is what I have so far on deposit matters:
This is the deposit section: http://prntscr.com/ik3xnx
Here's the price update code:
const _ = require('lodash'); const request = require('request'); const Price = require('../models/price'); module.exports = interval => { update(); setInterval(update, interval); }; function update() { request('https://api.csgofast.com/price/all', (err, response, body) => { if (err) { console.log(err); } else { let json = {}; try { json = JSON.parse(body); } catch (e) { console.log(e); } _.forOwn(json, (price, market_hash_name) => { Price.update( { market_hash_name }, { $set: { price } }, { upsert: true }, err => { if (err) { console.log(err); } } ); }); } }); }
And here's the HTML:
<!-- DEPOSIT MENU --> <div class="deposit"> <h1>Deposit Items</h1> <ul class="deposit"> {{#each items}} <li class="deposit item" data-assetid="{{this.assetid}}">{{market_hash_name}} (${{this.price}}) {{/each}} </ul> </div>
How do I get the images to show up, for example over the item name?
Fetching item images
in General
Posted
All I did was change the html deposit section to
and it worked like a charm!!