Cold Storage Singapore is a local homegrown supermarket and speciality mart with more than 53 stores islandwide. It provides the finest quality and exclusive products from around the world, including air-flown fresh produce to niche grocery labels. Cold Storage holds a wide variety of premium home goods brands that cater to any dietary needs, making Cold Storage Gift Cards the perfect corporate gift for any employee rewards and recognitions or corporate gifting. Cold Storage Gift Cards are only valid in Cold Storage outlets (except for airport stores).
To reformat the given HTML for system requirements based on the provided examples, follow these steps:
1. **Check for Multiple Systems**: Determine if the input contains system-specific entries by checking for the presence of a "system" key in any object.
2. **Structure the Output**:
- For each system:
- Create a div with class "prod-spec".
- Include an h4 header with the system name followed by "System Requirements".
- Add a br followed by a bold "MINIMUM SPECS" paragraph.
- Extract and format each requirement into a list item with a span for the label (appended with a colon) and the value.
3. **Parse Requirement HTML**: If requirements are provided as HTML strings, parse each li to extract labels and values, ensuring correct formatting.
4. **Combine Results**: Concatenate the formatted HTML for each system, separating them with appropriate line breaks if there are multiple systems.
Here's the formatted HTML output for the given examples:
Example 1 Output:
```div class="prod-spec">
PC System Requirements
MINIMUM SPECS
- Operating System: Windows XP or Windows Vista
- Processor: 1.8 GHz
- Memory: 512MB RAM (1 GB recommended)
- Graphics: 3D graphics card compatible with DirectX 8 (compatible with DirectX 9 recommended)
- Hard Drive: 2GB
- Additional: Mouse, Keyboard
```
Example 2 Output:
```div class="prod-spec">
Windows System Requirements
MINIMUM SPECS
- OS: Windows 7 or higher
- Processor: 1.5 GHz
- Memory: 2 GB RAM
- Graphics: 256MB DirectX 9 or higher
- Storage: 1 GB available space
- Additional Notes: A printed copy of the Bomb Defusal Manual or an additional web-enabled device to view the Bomb Defusal Manual is required. The Bomb Defusal Manual is freely available at www.bombmanual.com. HTC Vive or Oculus Rift/DK2 required for VR play. Gamepad or motion controllers required for VR play.
```
This output adheres to the specified structure, ensuring each system's requirements are clearly presented.
Share