|
|
|
@ -127,11 +127,11 @@ async function makeCards(data)
|
|
|
|
|
card.style.setProperty("--mouse-y", `${y}px`);
|
|
|
|
|
let interval = null;
|
|
|
|
|
let target = card.children[0].children[1].children[0].children[0].children[0];
|
|
|
|
|
let imgTarget = card.children[0].children[0].children[0]
|
|
|
|
|
card.addEventListener('mouseenter', ()=>
|
|
|
|
|
{
|
|
|
|
|
const letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
|
|
|
let iteration = 0;
|
|
|
|
|
//clearInterval(interval);
|
|
|
|
|
interval = setInterval(() =>
|
|
|
|
|
{
|
|
|
|
|
target.innerText = target.innerText
|
|
|
|
@ -144,18 +144,20 @@ async function makeCards(data)
|
|
|
|
|
return letters[Math.floor(Math.random() * 26)]
|
|
|
|
|
})
|
|
|
|
|
.join("");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(iteration >= target.dataset.value.length)
|
|
|
|
|
{
|
|
|
|
|
clearInterval(interval);
|
|
|
|
|
}
|
|
|
|
|
iteration += 4 ;
|
|
|
|
|
}, 1)
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
card.addEventListener('mouseleave', ()=>
|
|
|
|
|
{
|
|
|
|
|
clearInterval(interval);
|
|
|
|
|
target.innerText = target.dataset.value;
|
|
|
|
|
//reset
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -166,8 +168,8 @@ async function makeCard(guild)
|
|
|
|
|
const card = document.createElement('div')
|
|
|
|
|
card.innerHTML = ` <div id='${guild.id}'class="card">
|
|
|
|
|
<div class="card-content ">
|
|
|
|
|
<div class="card-image img${guild.hasRem}">
|
|
|
|
|
<img src=${guild.icon}></img>
|
|
|
|
|
<div class="card-image ">
|
|
|
|
|
<div class="img img${guild.hasRem}" style="background-image:url(${guild.icon});" ></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-info-wrapper ${guild.hasRem}">
|
|
|
|
|
<div class="card-info">
|
|
|
|
@ -180,7 +182,7 @@ async function makeCard(guild)
|
|
|
|
|
</div>
|
|
|
|
|
</div>`
|
|
|
|
|
return card
|
|
|
|
|
|
|
|
|
|
//background-position:0%; filter:grayscale(${guild.hasRem?0.4:0.7})
|
|
|
|
|
}
|
|
|
|
|
async function getRules(guildID)
|
|
|
|
|
{
|
|
|
|
@ -501,4 +503,7 @@ function _updateFeed(element)
|
|
|
|
|
else alert(res.error);
|
|
|
|
|
})
|
|
|
|
|
.catch(console.error);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|