saasbook/ruql

View on GitHub
examples/file.html

Summary

Maintainability
Test Coverage
<html>
  <head>
    <title>Example quiz</title>
  </head>
  <body>
    <!-- Seed: 193198071281985290800198331169288892539 -->
    <form>
      <ol class="questions">
        <li id="question-0" class="question fillin ">
          <div class="text">
            <p>
[2 points] The capital of California is               <input type="text" class="fillin"/>
            </p>
          </div>
        </li>
        <li id="question-1" class="question multiplechoice ">
          <div class="text">
            <p>
[1 point] What is the largest US state?            </p>
          </div>
          <ol class="answers">
            <input type="radio" name="a" class="select">
Alaska</br>            </input>
            <input type="radio" name="a" class="select">
Texas</br>            </input>
            <input type="radio" name="a" class="select">
Hawaii</br>            </input>
          </ol>
        </li>
        <li id="question-2" class="question selectmultiple multiple">
          <div class="text">
            <p>
[1 point] Select ALL that apply: Which are American political parties?            </p>
          </div>
          <ol class="answers">
            <input type="checkbox" name="b" class="check">
Democrats</br>            </input>
            <input type="checkbox" name="b" class="check">
Republicans</br>            </input>
            <input type="checkbox" name="b" class="check">
Greens</br>            </input>
            <input type="checkbox" name="b" class="check">
Tories</br>            </input>
            <input type="checkbox" name="b" class="check">
Social Democrats</br>            </input>
          </ol>
        </li>
        <li id="question-3" class="question selectmultiple multiple">
          <div class="text">
            <p>
[1 point] Select ALL that apply: Which are American political parties?            </p>
          </div>
          <ol class="answers">
            <input type="checkbox" name="b" class="check">
Democrats</br>            </input>
            <input type="checkbox" name="b" class="check">
Republicans</br>            </input>
            <input type="checkbox" name="b" class="check">
Greens</br>            </input>
            <input type="checkbox" name="b" class="check">
Tories</br>            </input>
            <input type="checkbox" name="b" class="check">
Social Democrats</br>            </input>
          </ol>
        </li>
        <li id="question-4" class="question truefalse ">
          <div class="text">
            <p>
[1 point] True or False: The week has 7 days.            </p>
          </div>
          <ol class="answers">
            <input type="radio" name="a" class="select">
True</br>            </input>
            <input type="radio" name="a" class="select">
False</br>            </input>
          </ol>
        </li>
        <li id="question-5" class="question truefalse ">
          <div class="text">
            <p>
[1 point] True or False: The earth is flat.            </p>
          </div>
          <ol class="answers">
            <input type="radio" name="a" class="select">
True</br>            </input>
            <input type="radio" name="a" class="select">
False</br>            </input>
          </ol>
        </li>
      </ol>
      <input type="submit" value="Enviar"/>
    </form>
  </body>
</html>