Spaces:
Sleeping
Sleeping
Update templates/proposed-GUI.html
Browse files- templates/proposed-GUI.html +0 -21
templates/proposed-GUI.html
CHANGED
|
@@ -1993,27 +1993,6 @@ let selectedValues = []; // global
|
|
| 1993 |
item.style.backgroundColor = checkbox.checked ? '#d3f8d3' : '';
|
| 1994 |
});
|
| 1995 |
console.log("Selected projects:", selectedValues);
|
| 1996 |
-
|
| 1997 |
-
// Uncheck all checkboxes before checking the current one
|
| 1998 |
-
document.querySelectorAll('input[name="measureCheckbox"]').forEach(checkbox => {
|
| 1999 |
-
checkbox.checked = false;
|
| 2000 |
-
});
|
| 2001 |
-
|
| 2002 |
-
// Check the current checkbox
|
| 2003 |
-
event.target.checked = true;
|
| 2004 |
-
|
| 2005 |
-
// Action when checkbox is clicked (e.g., log the selected project)
|
| 2006 |
-
let selectedValue = event.target.value;
|
| 2007 |
-
measSelect.value=selectedValue;
|
| 2008 |
-
console.log("Selected project:", selectedValue);
|
| 2009 |
-
|
| 2010 |
-
// Highlight the selected item
|
| 2011 |
-
document.querySelectorAll(".measure-item").forEach(item => {
|
| 2012 |
-
item.style.backgroundColor = ''; // Reset background color for all items
|
| 2013 |
-
});
|
| 2014 |
-
event.target.closest(".measure-item").style.backgroundColor = '#d3f8d3'; // Highlight the selected item
|
| 2015 |
-
|
| 2016 |
-
|
| 2017 |
|
| 2018 |
// Show alert immediately to prompt the user
|
| 2019 |
if (projsec.value.startsWith('3.2') || projsec.value.startsWith('3.3') || projsec.value.startsWith('2.7')) {
|
|
|
|
| 1993 |
item.style.backgroundColor = checkbox.checked ? '#d3f8d3' : '';
|
| 1994 |
});
|
| 1995 |
console.log("Selected projects:", selectedValues);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1996 |
|
| 1997 |
// Show alert immediately to prompt the user
|
| 1998 |
if (projsec.value.startsWith('3.2') || projsec.value.startsWith('3.3') || projsec.value.startsWith('2.7')) {
|