試行錯誤ページ637、並び替え問題を作る8、7を応用


並び替えクイズ


shikousakugo636のCSS切り替えを使って
mainchangewords.js使用中

function showQuestion(フォーマット、6語)をまず読み込む
function showQuestionfivewords、function showQuestionsixwords で語数を変える

『次の問題』を押すと、いらない選択肢を消して、語数も異なるJSを呼ぶ
→getElementsixthgome2はいらない選択肢を消す

※getElementssixthgome1はボタンの背景色を変える

class=sixthgome を消す(document.getElementsByClassName('sixthgome');)

id=sixthgome をけす(document.getElementById('sixthgome').style.display = "none";)
※選択肢の6番目

class="sixthgome"
id="sixth検証gome"

ゲームを始める

選択肢が六つ出てきます。問題文の通りに並べ替えてください。

クリックするとスタートします

id="target"

 spanclass

↓answer-area

1
2
3
4
5
6

↓select-area

1
2
3
4
5
6

↓btn オンクリックでshowQuestion()

  

↓next ボタン (最初は見えない)


://bubudoufu.com/narabekaequiz/