Changeset 237
- Timestamp:
- Jul 3, 2015, 3:17:52 PM (9 years ago)
- Location:
- binary-improvements/webserver
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/webserver/js/index.js
r201 r237 319 319 for (var x = 0; x < BAG_COLS; x++) { 320 320 if (data.bag[y*BAG_COLS+x].count > 0) { 321 $("#bagField"+x+"_"+y).attr("style", "background-image: url( itemimages/" + data.bag[y*BAG_COLS+x].name + ".png);");321 $("#bagField"+x+"_"+y).attr("style", "background-image: url(../itemicons/" + data.bag[y*BAG_COLS+x].name + ".png);"); 322 322 $("#bagFieldText"+x+"_"+y).text(data.bag[y*BAG_COLS+x].count); 323 323 } else { … … 330 330 for (var x = 0; x < BELT_COLS; x++) { 331 331 if (data.belt[x].count > 0) { 332 $("#beltField"+x).attr("style", "background-image: url( itemimages/" + data.belt[x].name + ".png);");332 $("#beltField"+x).attr("style", "background-image: url(../itemicons/" + data.belt[x].name + ".png);"); 333 333 $("#beltFieldText"+x).text(data.belt[x].count); 334 334 } else {
Note:
See TracChangeset
for help on using the changeset viewer.