/r/CodingHelp

Just starting out

Hello, I am new to this. I just started yesterday. Can anyone see why I can’t change “<nav class=”navbar navbar-expand-sm navbar-dark bg-dark” role=”navigation”>” without it breaking the entire thing? Trying to get it to stretch to fit the screen. No matter what I do my container cuts off on sides. <!doctype html> <html lang=”en”> <head>… Read More »Just starting out

Form Validation using preventDefault()

I have problems getting the form to halt submission when required fields are empty. Currently, the form just submits everything as per normal – even if fields are left blank. Is there something wrong with the code? const form = document.getElementsByTagName(‘form’)[0]; var required = document.getElementsByClassName(‘required’); var valid = true; form.addEventListener(‘submit’, function(event) { for (var r… Read More »Form Validation using preventDefault()

Adding functionality to a code?

I am creating a program that calculates the area of shapes (for school), and to get a better mark, we should add extra functionality. I was wondering of anyone had any ideas? I am unsure of what functionality to add, other that facts about shapes? I am using Visual Studio, Windows Application. I just need… Read More »Adding functionality to a code?

show total coins

how do i get the total earned of the mined bitcoin (mining running all the time), I want to print the total mined after each mine? submitted by /u/GloomyMusician24 [link] [comments]

Hello everyone! I’m doing a project that uses the DOM to output different sized pyramids to a webpage but I can’t figure out how to clear the the old output before printing a new pyramid.

Continuing from above, whenever the button is clicked, the pyramid of whatever height the user input into the text box does print. But, if you click the button again, it prints a whole new pyramid without removing the old one. I do have a lot of notes written for the code but that’s mostly for… Read More »Hello everyone! I’m doing a project that uses the DOM to output different sized pyramids to a webpage but I can’t figure out how to clear the the old output before printing a new pyramid.

Need help understanding something

Okay so I’ve created a website/signup page etc connected to MySQL via XAMPP, as it’s connected to local host my question is how does this then translate to a server I’m paying for? Like digitalOcean or godaddy etc, do I need to change the server stuff in the code? To some how connect it to… Read More »Need help understanding something

Need help with css

I have this html website <div class=”content”> <div class=”buttons”> <button class=”btn-1″>Test</button> <button class=”btn-2″>Test</button> </div> <div class=”Commands”> <h2>Lorem ipsum dolor sit amet consectetur.</h2> <h2>Lorem ipsum dolor sit amet consectetur.</h2> <h2>Lorem ipsum dolor sit amet consectetur.</h2> <h2>Lorem ipsum dolor sit amet consectetur.</h2> <h2>Lorem ipsum dolor sit amet consectetur.</h2> <h2>Lorem ipsum dolor sit amet consectetur.</h2> <h2>Lorem ipsum dolor… Read More »Need help with css