equal
deleted
inserted
replaced
231 { |
231 { |
232 if (missingMasks[i] === "NoHat") |
232 if (missingMasks[i] === "NoHat") |
233 continue; |
233 continue; |
234 var link = document.createElement("a"); |
234 var link = document.createElement("a"); |
235 if (IS_LOCAL) |
235 if (IS_LOCAL) |
236 link.href = "../share/hedgewars/Data/Graphics/Hats/"+masks[i]+".png"; |
236 link.href = "../share/hedgewars/Data/Graphics/Hats/"+missingMasks[i]+".png"; |
237 else |
237 else |
238 link.href = "//hg.hedgewars.org/hedgewars/raw-file/tip/share/hedgewars/Data/Graphics/Hats/"+masks[i]+".png"; |
238 link.href = "//hg.hedgewars.org/hedgewars/raw-file/tip/share/hedgewars/Data/Graphics/Hats/"+missingMasks[i]+".png"; |
239 link.appendChild(document.createTextNode(masks[i])); |
239 link.appendChild(document.createTextNode(missingMasks[i])); |
240 pm.appendChild(link); |
240 pm.appendChild(link); |
241 if (i < missingMasks.length -1) |
241 if (i < missingMasks.length -1) |
242 pm.appendChild(document.createTextNode(", ")); |
242 pm.appendChild(document.createTextNode(", ")); |
243 } |
243 } |
244 document.body.appendChild(pm); |
244 document.body.appendChild(pm); |