Skip to content

Commit

Permalink
https://github.com/elmsln/issues/issues/1326
Browse files Browse the repository at this point in the history
  • Loading branch information
btopro committed May 2, 2024
1 parent d810171 commit cdcd07f
Show file tree
Hide file tree
Showing 19 changed files with 962 additions and 1,187 deletions.
1 change: 1 addition & 0 deletions elements/app-hax/demo/appstore.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"meme-maker": "@lrnwebcomponents/meme-maker/meme-maker.js",
"grid-plate": "@lrnwebcomponents/grid-plate/grid-plate.js",
"multiple-choice": "@lrnwebcomponents/multiple-choice/multiple-choice.js",
"true-false-question": "@lrnwebcomponents/multiple-choice/lib/true-false-question.js",
"person-testimonial": "@lrnwebcomponents/person-testimonial/person-testimonial.js",
"place-holder": "@lrnwebcomponents/place-holder/place-holder.js",
"q-r": "@lrnwebcomponents/q-r/q-r.js",
Expand Down
1 change: 1 addition & 0 deletions elements/cms-hax/demo/sample-store.json
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@
"meme-maker": "@lrnwebcomponents/meme-maker/meme-maker.js",
"grid-plate": "@lrnwebcomponents/grid-plate/grid-plate.js",
"multiple-choice": "@lrnwebcomponents/multiple-choice/multiple-choice.js",
"true-false-question": "@lrnwebcomponents/multiple-choice/lib/true-false-question.js",
"person-testimonial": "@lrnwebcomponents/person-testimonial/person-testimonial.js",
"place-holder": "@lrnwebcomponents/place-holder/place-holder.js",
"q-r": "@lrnwebcomponents/q-r/q-r.js",
Expand Down
1 change: 1 addition & 0 deletions elements/h-a-x/demo/appstore.json
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@
"meme-maker": "@lrnwebcomponents/meme-maker/meme-maker.js",
"grid-plate": "@lrnwebcomponents/grid-plate/grid-plate.js",
"multiple-choice": "@lrnwebcomponents/multiple-choice/multiple-choice.js",
"true-false-question": "@lrnwebcomponents/multiple-choice/lib/true-false-question.js",
"person-testimonial": "@lrnwebcomponents/person-testimonial/person-testimonial.js",
"place-holder": "@lrnwebcomponents/place-holder/place-holder.js",
"q-r": "@lrnwebcomponents/q-r/q-r.js",
Expand Down
1 change: 1 addition & 0 deletions elements/hax-body/demo/appstore.json
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@
"stop-note": "@lrnwebcomponents/stop-note/stop-note.js",
"video-player": "@lrnwebcomponents/video-player/video-player.js",
"multiple-choice": "@lrnwebcomponents/multiple-choice/multiple-choice.js",
"true-false-question": "@lrnwebcomponents/multiple-choice/lib/true-false-question.js",
"accent-card": "@lrnwebcomponents/accent-card/accent-card.js",
"a11y-gif-player": "@lrnwebcomponents/a11y-gif-player/a11y-gif-player.js",
"page-break": "@lrnwebcomponents/page-break/page-break.js",
Expand Down
1 change: 1 addition & 0 deletions elements/hax-body/demo/shoelace.json
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@
"meme-maker": "@lrnwebcomponents/meme-maker/meme-maker.js",
"grid-plate": "@lrnwebcomponents/grid-plate/grid-plate.js",
"multiple-choice": "@lrnwebcomponents/multiple-choice/multiple-choice.js",
"true-false-question": "@lrnwebcomponents/multiple-choice/lib/true-false-question.js",
"person-testimonial": "@lrnwebcomponents/person-testimonial/person-testimonial.js",
"place-holder": "@lrnwebcomponents/place-holder/place-holder.js",
"q-r": "@lrnwebcomponents/q-r/q-r.js",
Expand Down
1 change: 1 addition & 0 deletions elements/hax-bookmarklet/demo/appstore.json
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@
"meme-maker": "@lrnwebcomponents/meme-maker/meme-maker.js",
"grid-plate": "@lrnwebcomponents/grid-plate/grid-plate.js",
"multiple-choice": "@lrnwebcomponents/multiple-choice/multiple-choice.js",
"true-false-question": "@lrnwebcomponents/multiple-choice/lib/true-false-question.js",
"person-testimonial": "@lrnwebcomponents/person-testimonial/person-testimonial.js",
"place-holder": "@lrnwebcomponents/place-holder/place-holder.js",
"q-r": "@lrnwebcomponents/q-r/q-r.js",
Expand Down
1 change: 1 addition & 0 deletions elements/hax-cloud/demo/dist/dev/appstore.json
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@
"stop-note": "@lrnwebcomponents/stop-note/stop-note.js",
"video-player": "@lrnwebcomponents/video-player/video-player.js",
"multiple-choice": "@lrnwebcomponents/multiple-choice/multiple-choice.js",
"true-false-question": "@lrnwebcomponents/multiple-choice/lib/true-false-question.js",
"a11y-collapse": "@lrnwebcomponents/a11y-collapse/a11y-collapse.js",
"accent-card": "@lrnwebcomponents/accent-card/accent-card.js",
"a11y-gif-player": "@lrnwebcomponents/a11y-gif-player/a11y-gif-player.js",
Expand Down
1 change: 1 addition & 0 deletions elements/hax-cloud/lib/appstore.json
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@
"stop-note": "@lrnwebcomponents/stop-note/stop-note.js",
"video-player": "@lrnwebcomponents/video-player/video-player.js",
"multiple-choice": "@lrnwebcomponents/multiple-choice/multiple-choice.js",
"true-false-question": "@lrnwebcomponents/multiple-choice/lib/true-false-question.js",
"a11y-collapse": "@lrnwebcomponents/a11y-collapse/a11y-collapse.js",
"accent-card": "@lrnwebcomponents/accent-card/accent-card.js",
"a11y-gif-player": "@lrnwebcomponents/a11y-gif-player/a11y-gif-player.js",
Expand Down
1 change: 1 addition & 0 deletions elements/haxcms-elements/demo/dist/dev/appstore.json
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@
"stop-note": "@lrnwebcomponents/stop-note/stop-note.js",
"video-player": "@lrnwebcomponents/video-player/video-player.js",
"multiple-choice": "@lrnwebcomponents/multiple-choice/multiple-choice.js",
"true-false-question": "@lrnwebcomponents/multiple-choice/lib/true-false-question.js",
"a11y-collapse": "@lrnwebcomponents/a11y-collapse/a11y-collapse.js",
"accent-card": "@lrnwebcomponents/accent-card/accent-card.js",
"a11y-gif-player": "@lrnwebcomponents/a11y-gif-player/a11y-gif-player.js",
Expand Down
1 change: 1 addition & 0 deletions elements/haxcms-elements/demo/fake/dev/appstore.json
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@
"meme-maker": "@lrnwebcomponents/meme-maker/meme-maker.js",
"grid-plate": "@lrnwebcomponents/grid-plate/grid-plate.js",
"multiple-choice": "@lrnwebcomponents/multiple-choice/multiple-choice.js",
"true-false-question": "@lrnwebcomponents/multiple-choice/lib/true-false-question.js",
"person-testimonial": "@lrnwebcomponents/person-testimonial/person-testimonial.js",
"place-holder": "@lrnwebcomponents/place-holder/place-holder.js",
"q-r": "@lrnwebcomponents/q-r/q-r.js",
Expand Down
27 changes: 17 additions & 10 deletions elements/multiple-choice/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<script type="module">
import '@polymer/iron-demo-helpers/demo-snippet.js';
import '../multiple-choice.js';
import '../lib/true-false-question.js';
import "@lrnwebcomponents/simple-toast/simple-toast.js";

globalThis.SimpleToast.requestAvailability()
Expand All @@ -20,12 +21,18 @@
<h3>Basic multiple-choice progressive enhancement</h3>
<demo-snippet>
<template>
<true-false-question
question="Ducks have wings.">
<input correct value="True"/>
<input value="False"/>
<p slot="correct-feedback">Yay! Let's jump in the money pit.</p>
<p slot="incorrect-feedback">You're despicable. What a quack!</p>
</true-false-question>
<multiple-choice
id="basic"
name="basic"
title="Which are ducks????"
randomize
question="Which are ducks?">
question="Which are ducks????"
randomize>
<input correct value="Huey"/>
<input correct value="Duey"/>
<input correct value="Daffy"/>
Expand Down Expand Up @@ -105,7 +112,7 @@ <h3>Deprecated multiple-choice with input</h3>
<template>
<multiple-choice
id="deprecated"
title="Which are ducks?"
question="Which are ducks?"
correct-text="Yay! Let's jump in the money pit."
incorrect-text="You're despicable. What a quack!"
randomize>
Expand All @@ -118,7 +125,7 @@ <h3>Deprecated multiple-choice with input</h3>
<multiple-choice
id="deprecated2"
edit-mode
title="Which are ducks?"
question="Which are ducks?"
correct-text="Yay! Let's jump in the money pit."
incorrect-text="You're despicable. What a quack!"
randomize>
Expand All @@ -138,15 +145,15 @@ <h3>Importing from a list</h3>
<multiple-choice
id="deprecated3"
edit-mode
title="Which are ducks?"
question="Which are ducks?"
correct-text="Yay! Let's jump in the money pit."
incorrect-text="You're despicable. What a quack!"
randomize>
<ul>
<li value=">Huey</li>
<li value=">Duey</li>
<li value=">Daffy</li>
<li value=">Donald</li>
<li correct>Huey</li>
<li correct>Duey</li>
<li correct>Daffy</li>
<li correct>Donald</li>
<li>Mickey</li>
</ul>
</multiple-choice>
Expand Down
Loading

0 comments on commit cdcd07f

Please sign in to comment.