Skip to content

sharadcodes/quizzo_web_component

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 

Quizzo Web Component

An Open Source web component for your quizzes.

Developer: Sharad Raj

UI

Quizzo Web Component Snap

Live Demo

USAGE

The json file should be in the following format. For example file check ques.json

[
    {
        "que": "Which among the following is not an operating system ?",
        "opt": [
            "Fedora",
            "MacOS",
            "Windows",
            "Android"
        ],
        "ans": 3
    },
    {
        "que": "Is Windows good",
        "opt": [
            "Yes",
            "No"
        ],
        "ans": 2
    }
]    
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Quizzo Web Component Example</title>

    <!-- Include the script -->
    <script src="https://sharadcodes.github.io/quizzo_web_component/src/quizzo_web_component.js" async></script>
    
  </head>
  <body>
    
    <!-- add the tag with all attributes -->
    <quizzo-web-comp
      json-file="./ques.json" 
      name="This is a demo quiz"
    />
    
  </body>
</html>

About

An Open Source web component for your json quizzes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published