Skip to content

Commit 3a461d7

Browse files
add baseline license rec output into body
1 parent 7347d3d commit 3a461d7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/index.html

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

311311
<aside>
312-
<p>[license recommendation info here]</p>
312+
<div id="license-recommendation">
313+
<p>[license recommendation info here]</p>
314+
</div>
313315
<p>[attribution info here]</p>
314316
</aside>
315317

src/scripts.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ fieldsets.forEach((element, index) => {
199199
console.log(state.props.license);
200200
console.log(state.possibilities);
201201

202+
// rough output of license in body
203+
document.querySelector('#license-recommendation p').textContent = state.props.license;
204+
202205
// if (state.current == 'do-you-know-which-license-you-need/yes/which-license-do-you-need/cc-0/') {
203206
// let chosenLicense = 'cc-0';
204207
// console.log(chosenLicense);

0 commit comments

Comments
 (0)