Download tasks/apple/environment/reference/clone/frontend/templates/_globalnav.html from TIGER-Lab/WebsiteBench: direct link, hf CLI and curl.
- Browser
- Download file 2.21 kB
-
https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/apple/environment/reference/clone/frontend/templates/_globalnav.html
- Command line
-
hf download hf://datasets/TIGER-Lab/WebsiteBench/tasks/apple/environment/reference/clone/frontend/templates/_globalnav.html
-
curl -L -o _globalnav.html https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/apple/environment/reference/clone/frontend/templates/_globalnav.html
2.21 kB
| <nav class="globalnav" aria-label="Global" data-menu="closed"> | |
| <div class="globalnav-content"> | |
| <a class="globalnav-link globalnav-logo" href="/" aria-label="Apple"> | |
| <svg width="14" height="17" viewBox="0 0 14 17" aria-hidden="true" focusable="false"> | |
| <path fill="currentColor" d="M11.6 9c0-2 1.6-2.9 1.7-3-0.9-1.4-2.4-1.5-2.9-1.6-1.2-0.1-2.4 0.7-3 0.7-0.6 0-1.6-0.7-2.6-0.7-1.3 0-2.6 0.8-3.3 2C0 8.9 1 12.5 2.4 14.4c0.7 0.9 1.5 2 2.6 1.9 1-0.1 1.4-0.7 2.6-0.7 1.2 0 1.6 0.7 2.6 0.6 1.1 0 1.8-1 2.5-1.9 0.8-1.1 1.1-2.2 1.1-2.2C13.7 12.1 11.6 11.3 11.6 9zM9.7 3.2C10.3 2.5 10.7 1.6 10.6 0.6 9.7 0.7 8.7 1.2 8.1 1.9 7.6 2.6 7.1 3.5 7.2 4.4 8.2 4.5 9.1 4 9.7 3.2z"/> | |
| </svg> | |
| </a> | |
| <ul class="globalnav-list"> | |
| {% for item in nav %} | |
| <li class="globalnav-item" data-open="false"> | |
| <button class="globalnav-trigger" type="button" | |
| aria-expanded="false" aria-controls="flyout-{{ item.id }}">{{ item.label }}</button> | |
| <div class="globalnav-flyout" id="flyout-{{ item.id }}"> | |
| <div class="globalnav-flyout-inner"> | |
| {% for group in item.groups %} | |
| <div class="globalnav-group" style="--column: {{ loop.index0 }}"> | |
| <h2>{{ group.title }}</h2> | |
| <ul> | |
| {% for link in group.links %} | |
| <li style="--row: {{ loop.index0 }}"><a href="{{ link.href }}">{{ link.label }}</a></li> | |
| {% endfor %} | |
| </ul> | |
| </div> | |
| {% endfor %} | |
| </div> | |
| </div> | |
| </li> | |
| {% endfor %} | |
| </ul> | |
| <a class="globalnav-link" href="/us/search" aria-label="Search apple.com">Search</a> | |
| <a class="globalnav-link" href="{{ '/shop/account' if visitor.authenticated else '/shop/signin' }}" | |
| data-testid="account-link">{{ 'Account' if visitor.authenticated else 'Sign In' }}</a> | |
| <a class="globalnav-link globalnav-bag" href="/shop/bag" aria-label="Shopping Bag"> | |
| Bag{% if bag_count %}<span class="globalnav-bag-count">{{ bag_count }}</span>{% endif %} | |
| </a> | |
| <button class="globalnav-trigger menu-toggle" type="button" aria-expanded="false" | |
| aria-label="Menu">Menu</button> | |
| </div> | |
| </nav> | |