mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-12 10:00:39 -04:00
fix(curriculum): update editable regions for step 47 of calorie counter (#54424)
This commit is contained in:
@@ -206,12 +206,12 @@ function isInvalidInput(str) {
|
||||
return str.match(regex);
|
||||
}
|
||||
|
||||
--fcc-editable-region--
|
||||
function addEntry() {
|
||||
const targetInputContainer = document.querySelector(`#${entryDropdown.value} .input-container`);
|
||||
const entryNumber = targetInputContainer.querySelectorAll('input[type="text"]').length;
|
||||
const HTMLString = `
|
||||
--fcc-editable-region--
|
||||
<label>Entry ${entryNumber} Name</label>`;
|
||||
--fcc-editable-region--
|
||||
}
|
||||
--fcc-editable-region--
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user