Category : random

how can i make my button color change into specific color (white/’ffffff’) IF the random function catch this specific color (‘#8675a9’)? const colButton = document.querySelector(‘.col’) const button1 = document.querySelector(‘.check’) const button2 = document.querySelector(‘.next’) const button3 = document.querySelector(‘.hide’) const terma = document.querySelector(“.term”); const body = document.querySelector(‘body’) const colors = [‘#8675a9’, ‘#f5cab3’, ‘#d1f5d3’, ‘#bad7df’] this is the ..

Read more

I want to generate a random number and post it to php. <form method=”post” name=”login_post_form”> <label for=”username”>Username :</label> <input type=”text” name=”username” id=”username” /> <label for=”password”>Password :</label> <input type=”password” name=”password” id=”password” /> <input type=”hidden” name=”randomNumberGen” id=”randomNumberGen” value=”” /> <script> var randomNumber = Math.floor(Math.random() * 1000); document.getElementById(‘randomNumberGen’).value = randomNumber; </script> <input type=”submit” name=”submit” value=”Login” /> </form> It ..

Read more

else if (parts[0] === Prefix + ‘number’) { message.channel.send(message.author.username + ‘ What is the minimum number’); if (parts[0] === Math.int) { var MinNum = (Discord.Message); console.log("minimum number is " + MinNum); message.channel.send(message.author.username + ‘ what is the maximum number’); } if (parts[0] === Math.int) { var MaxNum = (Discord.Message); console.log("Maximum number is " + MaxNum); ..

Read more