Skip to content

Commit f16c749

Browse files
change classes on tool-rec
1 parent 7b3ebd9 commit f16c749

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ <h1>Choose a License for Your Work</h1>
309309
<!-- <button>submit</button> -->
310310

311311
<aside>
312-
<div id="license-recommendation">
312+
<div id="tool-recommendation">
313313
<h2>Recommended License</h2>
314314

315315
<article class="tool">

src/scripts.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -214,24 +214,24 @@ function clearStepsAfterCursor(fieldsets, state) {
214214
});
215215
}
216216

217-
// function to render "license recommendation",
217+
// function to render "tool recommendation",
218218
// if valid tool from state.parts and/or state.current
219-
function renderLicenseRec(state) {
220-
// document.querySelector('#license-recommendation header h3').textContent = state.props.tool;
219+
function renderToolRec(state) {
220+
// document.querySelector('#tool-recommendation header h3').textContent = state.props.tool;
221221

222222
if (state.props.tool != 'unknown' ) {
223-
document.querySelector('#license-recommendation').classList.remove('disable');
223+
document.querySelector('#tool-recommendation').classList.remove('disable');
224224

225225
let tool = state.props.tool;
226226
let template = document.getElementById(tool);
227227
let templateContent = template.content.cloneNode(true);
228-
document.querySelector('#license-recommendation .tool').textContent = '';
229-
document.querySelector('#license-recommendation .tool').appendChild(templateContent);
228+
document.querySelector('#tool-recommendation .tool').textContent = '';
229+
document.querySelector('#tool-recommendation .tool').appendChild(templateContent);
230230
console.log('tool set to: ' + tool);
231231
}
232232
else if (state.props.tool == 'unknown') {
233-
document.querySelector('#license-recommendation').classList.add('disable');
234-
document.querySelector('#license-recommendation .tool').textContent = '';
233+
document.querySelector('#tool-recommendation').classList.add('disable');
234+
document.querySelector('#tool-recommendation .tool').textContent = '';
235235
}
236236
}
237237

@@ -405,7 +405,7 @@ function watchFieldsets(fieldsets, state) {
405405

406406
renderSteps(applyDefaults, state);
407407

408-
renderLicenseRec(state);
408+
renderToolRec(state);
409409

410410
renderMarkYourWork(state);
411411

0 commit comments

Comments
 (0)