Widget:Test

Revisão de 21h12min de 22 de março de 2023 por Rag (discussão | contribs)

<script> Date.prototype.getWeek = function() {

   var onejan = new Date(this.getFullYear(),0,1);
   var today = new Date(this.getFullYear(),this.getMonth(),this.getDate());
   var dayOfYear = ((today - onejan + 86400000)/86400000);
   return Math.ceil(dayOfYear/7)

};

const week = new Date().getWeek();

const bossCard = document.getElementById('boss-card');

const bosses = [

   {
       name: 'Suicune',
       image: 'Card_Boss-Fight-Suicune.png'
   },
   {
       name: 'Entei',
       image: 'Card_Boss-Fight-Entei.png'
   },
   {
       name: 'Raikou',
       image: 'Card_Boss-Fight-Raikou.png'
   }

];

</script>