|
1. (50 points) The 'Top 100 Retailers for 2018' are shown in the textarea to the left (data from here). The textarea
is named ta1 which is in a form named f1. For each company the following data is provided:
1. rank in 2018 (followed by a semicolon)
Write the javascript function named p1() that: 1. retrieves the company data from the textarea.
Show only the javascript for p1. |
2. (50 points) The HTML elements shown to the left allow the user to create a square checkerboard pattern by choosing: two colors; a square size; and the number of rows/cols. This HTML is in a form named f2. The checkerboard is created by making an HTML table where each table cell has: a height; a width; and background color specified. The background colors of the table cells alternate to produce the checkerboard pattern.
Note: each cell contains a single blank character. Show NO HTML. Show only the javascript for p2. |