As a newcomer to programming, I apologize if my question seems trivial or if the code I provide is not flawless. My goal is to develop a basic web application in Flask that enables users to monitor their CO2 emissions by entering data about their daily consumptions.
At present, I have several buttons (such as id="nuovaEmissione") that trigger the appearance of a central div on the page when clicked (by applying javascript .add("active") to the display property of the div) and allow for additional actions to be performed. I've employed the same logic for another button (id="obiettivoMensile"), but for some reason, the div fails to appear.
I'm at my wits' end with this issue, having thoroughly checked everything. The logic mirrors that of the other button, yet it remains non-functional. What steps can I take next?
I've scrutinized variable names, possible spelling errors in the javascript code, and even sought assistance from chatgpt—all yielding no solutions so far.
[Your modified JavaScript content goes here]
[Your modified CSS code snippet goes here]
{% extends "layout.html" %}
{% block title %}
Dashboard
{% endblock %}
{% block main %}
[Your modified HTML/CSS code segment goes here]
{% endblock %}