Experience Lara Croft’s defining moment as she becomes the Tomb Raider. In Shadow of the Tomb Raider, Lara must master a deadly jungle, overcome terrifying tombs, and persevere through her darkest hour. As she races to save the world from a Maya apocalypse, Lara will ultimately be forged into the Tomb Raider she is destined to be. Features Survive and Thrive In the Deadliest Place on Earth: Master an unforgiving jungle setting in order to survive. Explore underwater environments filled with crevasses and deep tunnel systems. Become One With the Jungle: Outgunned and outnumbered, Lara must use the jungle to her advantage. Strike suddenly and disappear like a jaguar, use mud as camouflage, and instill fear in enemies to sow chaos. Discover Dark and Brutal Tombs: Tombs are more terrifying than ever before, requiring advanced traversal techniques to reach them, and once inside they are filled with deadly puzzles. Uncover Living History: Discover a hidden city and explore the biggest hub space ever found in a Tomb Raider game.
The task involves converting structured JSON data into a specific HTML format. Each system's requirements are provided, and the goal is to present them in a standardized manner. The solution parses each system's requirements, extracts key-value pairs, and formats them into an HTML structure with appropriate classes and elements.
Here is the step-by-step explanation and the final answer:
**Step-by-Step Explanation:**
1. **Input Parsing:**
- The input is a JSON array where each object contains "system" and "requirement". The "requirement" is an HTML string with a list of system specifications.
2. **Processing Each System:**
- For each system, a `
` with class `prod-spec` is created.
- Inside this div, an `
` heading with the system name and a ` ` are added.
3. **Extracting Minimum Specs:**
- A `
` tag with bolded text "MINIMUM SPECS" is included to indicate the specs section.
4. **Parsing Requirements:**
- The "requirement" string is parsed to extract each list item (`
`).
- Each `
` contains a key (e.g., OS, Processor) and a value. The key is extracted by parsing the content within the `` tag.
5. **Reconstructing List Items:**
- Each key is placed within a `` tag, followed by the corresponding value, forming a new list item.
6. **Assembling the HTML:**
- All the processed list items are compiled into an unordered list (`
`), which is added to the `
`.
7. **Output the HTML:**
- The resulting HTML strings for each system are concatenated and returned as the final output.
**Final Answer:**
```html
Windows System Requirements
MINIMUM SPECS
OS: Windows 7 64 bit
Processor: i3-3220 INTEL or AMD Equivalent
Memory: 8 GB RAM
Graphics: Nvidia GTX 660/GTX 1050 or AMD Radeon HD 7770
分享