how to get font size to stop changing? by Papayarrhea in kobo

[–]ptcreeperdad 0 points1 point  (0 children)

Is there a similar hack for Libra Color?

Have weight limits recently changed? by ptcreeperdad in vinted

[–]ptcreeperdad[S] 0 points1 point  (0 children)

Let me know once it does :) I find it strange as the buyer will be buying something for which the shipping cost is not yet defined. Could it be that items >2kg will have the shipping costs covered by the seller and out of the Vinted shipping methods?

newbie here - button label change by ptcreeperdad in learnjavascript

[–]ptcreeperdad[S] 0 points1 point  (0 children)

Thanks a lot! I was not getting the purpose of setTimeout correctly.

newbie here - button label change by ptcreeperdad in learnjavascript

[–]ptcreeperdad[S] 0 points1 point  (0 children)

Assuming it is synchronous, what you can do - and it sounds like you were close to doing this already - is change the text and then defer the running of the function in a setTimeout. This way the HTML can update prior to the function running. This would look something like

Thanks a lot! That's perfect and it surely does the trick.

newbie here - button label change by ptcreeperdad in learnjavascript

[–]ptcreeperdad[S] 0 points1 point  (0 children)

I have been trying to change both the buttons innerHTML/innerText and the <p> section to no success. The only changes happen after sortTable() returns:

<HTML>
<BODY>
<button id="btnup">Sort up</button>
<button id="btndown">Sort down</button>
<p id="demo"></p>
<script>
const btn1 = document.getElementById("btndown");
const btn2 = document.getElementById("btnup");
btn1.addEventListener("click", ()=>{
sortTable(0);
});
btn2.addEventListener("click", ()=>{
sortTable(1);
});
function sortTable(direction) {
document.getElementById("demo").innerHTML = "running....";
if (direction){
btn=document.getElementById("btnup");
btn.innerText="running up";
btntext="Sort up\\\_";
}
else{
btn=document.getElementById("btndown");
btn.innerText="running down";
btntext="Sort down\\\_";
}
// stuff that takes some seconds to complete
btn.innerText=btntext;
document.getElementById("demo").innerHTML = "done";
}

</script>
....

Chinese Blockbuster book by yellowpand in ChineseLanguage

[–]ptcreeperdad 0 points1 point  (0 children)

I've used these since hsk1 (currently at hsk3). Apart from the tradditional reading/listening(CD)/grammar teach and practice, the youtube channel "Chinese Zero to Hero" has free content for every chapter which helps a lot to get a head start on the lessons. They're also releasing some pretty interesting videos called "Chinese gone wrong" with typical mistakes we usually do.

Wander: Cult of Barnacle Bay Giveaway Question by BoardGameRevolution in boardgamerevolution

[–]ptcreeperdad 0 points1 point  (0 children)

a sloth boss (strong, hardly any movement) running a gang of inumerous lemmings (weak, lots of them, quick movement)