Template

Difference between revisions of "Main"

From Shadow Era Wiki

m
m
Line 31: Line 31:
 
<table class="wikitable" style="background-color: #4f545c; color: white; width: 100%;">
 
<table class="wikitable" style="background-color: #4f545c; color: white; width: 100%;">
 
<tr>
 
<tr>
<th style="text-align:left;">Carte Aléatoire</th>
+
<th style="text-align:left;">Random Card</th>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
 
<td>
 
<td>
     <img src="" id="randomCard" alt="Carte Aléatoire" style="max-width: 100%; height: auto;" />
+
     <img src="" id="randomCard" alt="Random Card" style="max-width: 100%; height: auto;" />
 
     <noinclude>
 
     <noinclude>
 
     <script>
 
     <script>

Revision as of 21:40, 6 October 2024

{{{title1}}}
{{{content1}}}
{{{title2}}}
{{{content2}}}
Random Card
   Random Card
   
   <script>
       document.addEventListener('DOMContentLoaded', function() {
           var cardCount = 100; // Remplacez par le nombre total de cartes disponibles.
           var randomIndex = Math.floor(Math.random() * cardCount) + 1; // Générez un nombre aléatoire.
           document.getElementById('randomCard').src = 'https://www.shadowera.com/cards/card' + randomIndex + '.jpg'; // Modifiez ce chemin selon la structure des URLs des cartes.
       });
   </script>
   
{{{title3}}}
{{{content3}}}