Skip to content
Snippets Groups Projects
Commit 647648e6 authored by Sofiane Lasri's avatar Sofiane Lasri
Browse files

null

parent e7c046bb
Branches
No related tags found
No related merge requests found
...@@ -222,10 +222,10 @@ ...@@ -222,10 +222,10 @@
// On va définir la taille de la div derrière la navbar // On va définir la taille de la div derrière la navbar
function goToShop(id){ function goToShop(id){
var shopItemDetail='<p>Type: <strong>'+$('#'+id).attr('type')+'</strong></p>'; var shopItemDetail='<p>Type: <strong>'+$('#'+id).attr('type')+'</strong></p>';
if($("#"+id).attr("displayName") != ""){ if($("#"+id).attr("displayName") != "null"){
shopItemDetail+='<p>Nom personnalisé: <strong>'+decodeURIComponent($("#"+id).attr("displayName"))+'</strong></p>'; shopItemDetail+='<p>Nom personnalisé: <strong>'+decodeURIComponent($("#"+id).attr("displayName"))+'</strong></p>';
} }
if($("#"+id).attr("enchants") != ""){ if($("#"+id).attr("enchants") != "null"){
let enchants = JSON.parse(decodeURIComponent($("#"+id).attr("enchants"))); let enchants = JSON.parse(decodeURIComponent($("#"+id).attr("enchants")));
for(const [key, value] of Object.entries(enchants)){ for(const [key, value] of Object.entries(enchants)){
shopItemDetail+='<p>Enchantement: <strong>'+key+'</strong> ('+value+')</p>'; shopItemDetail+='<p>Enchantement: <strong>'+key+'</strong> ('+value+')</p>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment