5 667
edições
Sem resumo de edição |
Sem resumo de edição |
||
Linha 58: | Linha 58: | ||
const specificOptions = { | const specificOptions = { | ||
1: { | 1: { | ||
'Areia': { local: 'Pewter', coordinates: '3467, 3743, 6' }, | 'Areia': { local: 'Pewter', coordinates: '3467, 3743, 6', imageUrl: 'https://wiki.pokexgames.com/images/b/bc/BagOfPollem.png' }, | ||
'Gelo': { local: 'Cerulean', coordinates: '1456, 2345, 4' }, | 'Gelo': { local: 'Cerulean', coordinates: '1456, 2345, 4', imageUrl: 'https://wiki.pokexgames.com/images/4/43/AnotherImage.png' }, | ||
'Grama': { local: 'Vermilion', coordinates: '5678, 1234, 5' }, | 'Grama': { local: 'Vermilion', coordinates: '5678, 1234, 5', imageUrl: 'https://wiki.pokexgames.com/images/3/34/DifferentImage.png' }, | ||
'Pedra': { local: 'Lavender', coordinates: '6789, 2345, 2' }, | 'Pedra': { local: 'Lavender', coordinates: '6789, 2345, 2', imageUrl: 'https://wiki.pokexgames.com/images/c/c4/ExampleImage.png' }, | ||
'Subaquático': { local: 'Celadon', coordinates: '1234, 5678, 3' }, | 'Subaquático': { local: 'Celadon', coordinates: '1234, 5678, 3', imageUrl: 'https://wiki.pokexgames.com/images/5/56/AnotherExample.png' }, | ||
'Terra': { local: 'Fuchsia', coordinates: '4567, 6789, 1' }, | 'Terra': { local: 'Fuchsia', coordinates: '4567, 6789, 1', imageUrl: 'https://wiki.pokexgames.com/images/a/a6/SampleImage.png' }, | ||
'Pisos': { local: 'Cinnabar', coordinates: '7890, 1234, 6' } | 'Pisos': { local: 'Cinnabar', coordinates: '7890, 1234, 6', imageUrl: 'https://wiki.pokexgames.com/images/d/d7/FinalExample.png' } | ||
}, | }, | ||
2: { | 2: { | ||
'Areia': { local: 'Saffron', coordinates: '3456, 7890, 7' }, | 'Areia': { local: 'Saffron', coordinates: '3456, 7890, 7', imageUrl: 'https://wiki.pokexgames.com/images/b/bc/BagOfPollem.png' }, | ||
'Gelo': { local: 'Pallet', coordinates: '5678, 1234, 2' }, | 'Gelo': { local: 'Pallet', coordinates: '5678, 1234, 2', imageUrl: 'https://wiki.pokexgames.com/images/4/43/AnotherImage.png' }, | ||
'Grama': { local: 'Pewter', coordinates: '6789, 3456, 4' }, | 'Grama': { local: 'Pewter', coordinates: '6789, 3456, 4', imageUrl: 'https://wiki.pokexgames.com/images/3/34/DifferentImage.png' }, | ||
'Pedra': { local: 'Cerulean', coordinates: '2345, 6789, 5' }, | 'Pedra': { local: 'Cerulean', coordinates: '2345, 6789, 5', imageUrl: 'https://wiki.pokexgames.com/images/c/c4/ExampleImage.png' }, | ||
'Subaquático': { local: 'Vermilion', coordinates: '1234, 4567, 3' }, | 'Subaquático': { local: 'Vermilion', coordinates: '1234, 4567, 3', imageUrl: 'https://wiki.pokexgames.com/images/5/56/AnotherExample.png' }, | ||
'Terra': { local: 'Lavender', coordinates: '3456, 7890, 6' }, | 'Terra': { local: 'Lavender', coordinates: '3456, 7890, 6', imageUrl: 'https://wiki.pokexgames.com/images/a/a6/SampleImage.png' }, | ||
'Pisos': { local: 'Celadon', coordinates: '5678, 1234, 2' } | 'Pisos': { local: 'Celadon', coordinates: '5678, 1234, 2', imageUrl: 'https://wiki.pokexgames.com/images/d/d7/FinalExample.png' } | ||
}, | }, | ||
3: { | 3: { | ||
'Areia': { local: 'Fuchsia', coordinates: '6789, 3456, 4' }, | 'Areia': { local: 'Fuchsia', coordinates: '6789, 3456, 4', imageUrl: 'https://wiki.pokexgames.com/images/b/bc/BagOfPollem.png' }, | ||
'Gelo': { local: 'Cinnabar', coordinates: '7890, 1234, 1' }, | 'Gelo': { local: 'Cinnabar', coordinates: '7890, 1234, 1', imageUrl: 'https://wiki.pokexgames.com/images/4/43/AnotherImage.png' }, | ||
'Grama': { local: 'Saffron', coordinates: '4567, 6789, 5' }, | 'Grama': { local: 'Saffron', coordinates: '4567, 6789, 5', imageUrl: 'https://wiki.pokexgames.com/images/3/34/DifferentImage.png' }, | ||
'Pedra': { local: 'Pallet', coordinates: '1234, 5678, 3' }, | 'Pedra': { local: 'Pallet', coordinates: '1234, 5678, 3', imageUrl: 'https://wiki.pokexgames.com/images/c/c4/ExampleImage.png' }, | ||
'Subaquático': { local: 'Pewter', coordinates: '6789, 2345, 6' }, | 'Subaquático': { local: 'Pewter', coordinates: '6789, 2345, 6', imageUrl: 'https://wiki.pokexgames.com/images/5/56/AnotherExample.png' }, | ||
'Terra': { local: 'Cerulean', coordinates: '3456, 7890, 2' }, | 'Terra': { local: 'Cerulean', coordinates: '3456, 7890, 2', imageUrl: 'https://wiki.pokexgames.com/images/a/a6/SampleImage.png' }, | ||
'Pisos': { local: 'Vermilion', coordinates: '5678, 1234, 4' } | 'Pisos': { local: 'Vermilion', coordinates: '5678, 1234, 4', imageUrl: 'https://wiki.pokexgames.com/images/d/d7/FinalExample.png' } | ||
} | } | ||
}; | }; | ||
Linha 125: | Linha 115: | ||
if (selectedOption) { | if (selectedOption) { | ||
const optionInfo = specificOptions[mapType][selectedOption]; | const optionInfo = specificOptions[mapType][selectedOption]; | ||
if ( | if (optionInfo) { | ||
imageContainer.innerHTML = ` | imageContainer.innerHTML = ` | ||
<img src="${imageUrl}" alt="${selectedOption}"> | <img src="${optionInfo.imageUrl}" alt="${selectedOption}"> | ||
<div class="image-info"> | <div class="image-info"> | ||
Local: ${optionInfo.local} <br> | Local: ${optionInfo.local} <br> | ||
Coordenada: ${optionInfo.coordinates} | Coordenada: ${optionInfo.coordinates} <br> | ||
<a href="${optionInfo.imageUrl}" target="_blank">Ver imagem completa</a> | |||
</div> | </div> | ||
`; | `; |