The idea is to create a plugin for wordpress and angular. only front end, in which by means of a shortcode that puts a field "name opposition (string)" another field "theme opposition (string)", another field "number of questions returned (integer)" another field "the number of questions to the time (integer) "perform a type test on angular loading from the mysql database a json.
"name opposition" = select * where opposition like 'filled in shortcode'
"theme" = select * where theme like 'fill in the shortcode'
"number of questions returned" = Returns the first n questions.
"number of questions at a time", the number of questions that will appear at the same time. If it is one, it will be repeated as you give the next until you reach the total number of questions. If it is equal 5, if it is 0 they will all be on the same screen.
Obvious that they are conditions for the sql, you can put a field, two, three or four, depending on which one you fill or fill in, one result or another will appear. The result must be a table that will be passed to json with all the columns of the query.
The test should be type what appears in [login to view URL] but made in angular, only making a request to the server for each shortcode that is made the first Once I go to do each test.
* Each test question has 4 answers or 3 and at the time of showing it you will have to detect it since the 4th answer can take a space in "white" or "-"
* Once the user clicks one of the answers, you will have to change the background color to green with the correct answer, and in red if the answer selected by the user.
* Two buttons will appear:
1st "next" that will lead to the next or following questions without making a request to the server, by angular.
2nd "Finish test" A text will appear in h2 on the screen with the following shortcode data.
* A second shortcode that will put a box on the upper right corner if it is desktop or down in fixed form if it is mobile or table in which the following will appear:
1º A chronometer with how much backwards. 5 elements Two buttons Stop or start. And a radiobotton three levels: easy, medium, high. The chronometer will show the number of questions multiplied by 3 minutes if it is easy, by 2 minutes if it is medium and by 1 minute if it is difficult.
2º The user will keep in real time (cookie or session) the number of hits (integer) and failures (integer). by means of a simple mathematical formula you will have to appear:
-Total = total number of questions.
-Accepted = integer hits
-fallos = integer failures
-Note = Simple mathematical operation (success-failures) / number of questions