Comp 416 – Web Programming

University of North Carolina at Chapel Hill

Assignment 13

Flashcards

Description

In this assignment you will create interactive, electronic flashcards. The basic, non-interactive web page is in the skeleton. Do not make any changes to the HTML of the skeleton. The necessary CSS is also provided, but you are free to make modifications if you like. The structure of the HTML in the skeleton is explained in this text file and screen shots of its behavior are here. A short example of buttons, form, input and checkboxes is here.

Requirements

It is strongly recommended that you grow this program one small step at a time. Suggested breakdown:

  1. jQuery for the expander. The HTML has all the classes and ids you will need. Similar to the tabs assignment, implement expansion by clicking on the expander icon (actually, the bounding box of the icon) to reveal the answer to the question. Unlike tabs, the expanders are independent. Any subset of them can be expanded at the same time.
  2. Shuffle button. Reuse the JS code from Assignment 9, Shuffle 'Em Up. This will give you an array of the problem numbers in random order. Next, as a separate method called reorder use the array to change the order of the problems on the page. The easiest way to do this is to create a new div for the reordered list of problems, and, one by one, copy them from the old div into the new one. When finished, you can remove the old div that is no longer needed. You can assume that the problems are sequentially numbered starting with 1.
  3. Erase button and delete box. You will not need to create a new div as with the Shuffle button. Simply remove the selected problems.


Turn in the following in the following order:

  1. Cover page.
  2. JS / jQuery code
  3. HTML of head element showing how you partitioned your JS into separate, external files. Please do not show the entire head element, just the JS files that are loaded. My solution has JS files: controlPanel (for Shuffle and Erase), expander, erase, reorder (Assignment 9), and shuffle. You are not required to have the exact same files.

Important Points

Grading

Objectives

More practice with jQuery. Create a large web program with multiple pieces.