Changeset 243 for binary-improvements/webserver
- Timestamp:
- Jul 17, 2015, 10:26:08 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/webserver/js/index.js
r237 r243 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(../itemicons/" + 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);").attr("title", data.bag[y*BAG_COLS+x].name); 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(../itemicons/" + data.belt[x].name + ".png);") ;332 $("#beltField"+x).attr("style", "background-image: url(../itemicons/" + data.belt[x].name + ".png);").attr("title", data.belt[x].name); 333 333 $("#beltFieldText"+x).text(data.belt[x].count); 334 334 } else {
Note:
See TracChangeset
for help on using the changeset viewer.