subject

1. Introduction Your task is to create an ebook reader that retrieves the book data from a network source and displays a portion of it.

2. Layout
Your screen should be designed in a responsive fashion, with the following requirements:
β€’ There should be a navigation area that:
– if the device is taller than wide is positioned on the left hand side of the display,
– if the device is wider than tall is positioned on the top of the display,
– this area should always be visible, and not scroll with the rest of the content,
– there should be some controls to navigate through the book in this area,
– at the top of this area the users location should be displayed, if permitted to do so, and if not then the exact text
Cannot Gather the Location Information from the User displayed in its place.
β€’ There should also be a content area that contains the ebook text, that should be scrollable if the text does not fit on the
screen.

3. Data
The data for the ebook reader will need to be retrieved from a web service. The service is located at http://tmaserv.
scem. westernsydney. edu. au/chapters/, which when called will return a JSON object with the number of
chunks available to be retrieved as the num attribute.

Retrieving these data is performed through the use of a valid n parameter between 0 and numβˆ’1. For example, using the
URL of: http://tmaserv. scem. westernsydney. edu. au/chapters/?n=0 will retrieve the first chunk of
data. This will be returned as a JSON object with two parameters; type and data. The type parameter will contain one
of three options; bigheading, heading or paragraph. The type parameter will determine the HTML tag used to
display the data in the DOM. Chunks can only be fetched one at a time. Note: For marking we will use different data, with a
different number of chunks and different distribution of types.

Your reader should only maintain 10 chunks of the ebook in the DOM at any one time, you will need to fetch the first 10 as
the document loads, and then fetch additional sections on request, via the controls in the navigation area. You should provide
controls for adding the next chunk, adding the previous chunk, and returning to the start. When you add a chunk to the end
of the display you must remove from the DOM the chunk at the other end, maintaining the requirement of 10 chunks being in
the DOM at any one time. You should not run past either the beginning or the end of the number of chunks.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:40
When running anti-virus software , what could be a reason where recipitent is not guaranteed that data being streamed will not get interrupted?
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
Who can provide you with a new password when you have forgotten your old one? your provide you with a new password in case you forget your old one.
Answers: 3
question
Computers and Technology, 23.06.2019 10:50
The volume v and paper surface area a of a conical paper cup are given by where r is the radius of the base of the cone and h is the height of the cone. a. by eliminating h, obtain the expression for a as a function of r and v. b. create a user-de ned function that accepts r as the only argument and computes a for a given value of v. declare v to be global within the function. c. for v ! 10 in.3 , use the function with the fminbnd function to compute the value of r that minimizes the area a. what is the corresponding value of the height h? investigate the sensitivity of the solution by plotting v versus r. how much can r vary about its optimal value before the area increases 10 percent above its minimum value?
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Choose the answers that best complete each sentence. on average,are more expensive than other kinds of postsecondary schools. the cost of room and board includes. to save money, some students attend auniversity in their home state.
Answers: 2
You know the right answer?
1. Introduction Your task is to create an ebook reader that retrieves the book data from a network...
Questions
question
Mathematics, 03.01.2021 06:20
question
Mathematics, 03.01.2021 06:20
question
English, 03.01.2021 06:20
Questions on the website: 13722363