Skip to content

Commit

Permalink
data event location attributes added
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartek Musiał committed Jan 10, 2025
1 parent 99f98c4 commit cd76ac7
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions theme/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
class="md-header__button md-logo desktop"
aria-label="{{ config.site_name }}"
data-md-component="logo"
data-event-location="docs_nav_top_logo_home"
>
<img src="{{ 'API/images/flotiq-logo-wt.svg' | url }}" alt="Flotiq">
</a>
Expand All @@ -46,6 +47,7 @@
class="md-header__button md-logo docs-badge desktop"
aria-label="{{ config.site_name }}"
data-md-component="logo"
data-event-location="docs_nav_top_logo_docs"
>
<img src="{{ 'API/images/docs-badge.svg' | url }}" alt="Flotiq">
</a>
Expand All @@ -57,6 +59,7 @@
class="md-header__button md-logo mobile"
aria-label="{{ config.site_name }}"
data-md-component="logo"
data-event-location="docs_nav_top_logo_home"
>
<img src="{{ 'API/images/flotiq-badge-logo.svg' | url }}" alt="Flotiq">
</a>
Expand All @@ -66,6 +69,7 @@
class="md-header__button md-logo docs-badge mobile"
aria-label="{{ config.site_name }}"
data-md-component="logo"
data-event-location="docs_nav_top_logo_docs"
>
<img src="{{ 'API/images/docs-badge.svg' | url }}" alt="Flotiq">
</a>
Expand Down Expand Up @@ -98,6 +102,7 @@
class="md-header__button md-icon"
title="{{ option.toggle.name }}"
for="__palette_{{ loop.index0 or loop.length }}"
data-event-location="docs_nav_top_dark_mode"
hidden
>
{% include ".icons/" ~ option.toggle.icon ~ ".svg" %}
Expand All @@ -106,7 +111,7 @@
{% endfor %}
</form>
{% endif %}

<!-- Site language selector -->
{% if config.extra.alternate %}
<div class="md-header__option">
Expand Down Expand Up @@ -140,29 +145,29 @@
<div class="md-header__inner">
<!-- Button to open search modal -->
{% if "material/search" in config.plugins %}
<label class="md-header__button md-icon" for="__search">
<label class="md-header__button md-icon" for="__search">
{% include ".icons/material/magnify.svg" %}
</label>
{% include "partials/search.html" %}
</label>
{% include "partials/search.html" %}
{% endif %}

<!-- Repository information -->
{% if config.repo_url %}
<div class="md-header__source">
{% include "partials/source.html" %}
</div>
{% endif %}

<!-- Button to open drawer -->
<label class="md-header__button md-icon" for="__drawer">
{% include ".icons/material/menu" ~ ".svg" %}
</label>
<a href="https://flotiq.com/request-a-demo/" target="_blank" class="nav-additional-element">Request a demo</a>
<a href="https://editor.flotiq.com/login" target="_blank" class="nav-additional-element">Log in</a>
<a href="https://editor.flotiq.com/register" target="_blank" class="nav-additional-element nav-button">Try Flotiq for free</a>
<a href="https://flotiq.com/request-a-demo/" target="_blank" class="nav-additional-element" data-event-location="docs_nav_top_demo">Request a demo</a>
<a href="https://editor.flotiq.com/login" target="_blank" class="nav-additional-element" data-event-location="docs_nav_top_login">Log in</a>
<a href="https://editor.flotiq.com/register" target="_blank" class="nav-additional-element nav-button" data-event-location="docs_nav_top_signup">Try Flotiq for free</a>
</div>
</nav>

<!-- Navigation tabs (sticky) -->
{% if "navigation.tabs.sticky" in features %}
{% if "navigation.tabs" in features %}
Expand Down

0 comments on commit cd76ac7

Please sign in to comment.