Skip to content

Commit

Permalink
select name
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperordrup committed Jan 24, 2025
1 parent 375724c commit 2a69d05
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions weekdays.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
Viser planlagte
</button>
<select id="nameDropdown">
<option value="">Select a name</option>
<option value="">All</option>
</select>
</div>
<div class="planner">
Expand Down Expand Up @@ -170,7 +170,7 @@ <h3>Friday</h3>
dates = window.dates;

const distinctNames = [
...new Set(dates.map((obj) => dates.assigned)),
...new Set(dates.map((d) => d.assigned)),
];

//##dates##
Expand Down Expand Up @@ -452,7 +452,8 @@ <h3>Friday</h3>
function handleChange(event) {
const selectedName = event.target.value;
console.log('Selected:', selectedName);
// Do something with the selected name
window.currentAssigned = selectedName;
runthis(window.currentStartDay, window.currentAssigned);
}

// Attach event listener
Expand Down Expand Up @@ -510,7 +511,7 @@ <h3>Friday</h3>
text-align: center;
margin-top: 16px;
">
V1.1.2</span
V1.1.3</span
>
</body>
</html>

0 comments on commit 2a69d05

Please sign in to comment.