Skip to content

code4fukui/q4js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

4択クイズフレームワーク - q4js

Usage

<!DOCTYPE html><html lang="ja"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><link rel="icon" href="data:">
<script type="module">
import { startQuiz } from "https://code4fukui.github.io/q4js/q4.js";

const point = await startQuiz({
  quiz: [
    [ "IchigoJamでLEDをつけるには?", "LED1", "LED0", "PRINT1", "CLS", "LED" ],
    [ "IchigoJamの誕生日は?", "4/1", "1/5", "10/15", "10/10", "1/1", "12/31" ],
  ],
});
console.log("正答数: " + point);
</script>

options

  • title タイトル
  • quiz 「問題文、正答、誤答1、誤答2、誤答3、誤答4」の配列
  • parent クイズ画面の親エレメント

history

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published