|
83 | 83 | <li><a href="https://blog.roboflow.com">Blog</a></li>
|
84 | 84 | <li><a href="https://discuss.roboflow.com">Community Forum</a></li>
|
85 | 85 | <li><a href="https://roboflow.com/sales">Contact Sales</a></li>
|
| 86 | + <li><a href="https://universe.roboflow.com">Universe</a></li> |
86 | 87 | </ul>
|
87 | 88 | </li>
|
88 | 89 | <li style="align-items: center;" id="products-list">
|
89 |
| - <label for="dropdown-products"><span>Products <img src="https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/chevron-down.svg?v=2&token=a463935e93" style="height: 0.5rem;" /></span></label> |
| 90 | + <label for="dropdown-products"><span>Docs <img src="https://ka-p.fontawesome.com/releases/v6.6.0/svgs/regular/chevron-down.svg?v=2&token=a463935e93" style="height: 0.5rem;" /></span></label> |
90 | 91 | <input type="radio" name="dropdown" id="dropdown-products" style="display: none;" />
|
91 | 92 | <ul class="products-sublist sublist">
|
92 | 93 | <li><a href="https://inference.roboflow.com">Inference</a></li>
|
93 | 94 | <li><a href="https://supervision.roboflow.com">Supervision</a></li>
|
94 | 95 | <li><a href="https://trackers.roboflow.com">Trackers</a></li>
|
95 |
| - <li><a href="https://universe.roboflow.com">Universe</a></li> |
| 96 | + <li><a href="https://maestro.roboflow.com">Maestro</a></li> |
| 97 | + <li><a href="https://docs.roboflow.com">Roboflow</a></li> |
96 | 98 | </ul>
|
97 | 99 | </li>
|
98 | 100 | <script>
|
|
109 | 111 | dropdownProducts.checked = false;
|
110 | 112 | }
|
111 | 113 | });
|
| 114 | + // on mouse over |
| 115 | + document.getElementById('resources-list').addEventListener('mouseover', function() { |
| 116 | + document.getElementById('dropdown-resources').checked = true; |
| 117 | + }); |
| 118 | + document.getElementById('products-list').addEventListener('mouseover', function() { |
| 119 | + document.getElementById('dropdown-products').checked = true; |
| 120 | + }); |
| 121 | + // on mouse out |
| 122 | + document.getElementById('resources-list').addEventListener('mouseout', function() { |
| 123 | + // if not hovering over the sublist or the label, uncheck the dropdown |
| 124 | + // wait 1 sec |
| 125 | + setTimeout(function() { |
| 126 | + if (!document.querySelector('.resources-sublist:hover') && !document.querySelector('#resources-list:hover')) { |
| 127 | + document.getElementById('dropdown-resources').checked = false; |
| 128 | + } |
| 129 | + }, 350); |
| 130 | + }); |
| 131 | + // if mouseout of sublist, uncheck immediately |
| 132 | + document.querySelector('.resources-sublist').addEventListener('mouseout', function() { |
| 133 | + setTimeout(function() { |
| 134 | + if (!document.querySelector('.resources-sublist:hover') && !document.querySelector('#resources-list:hover')) { |
| 135 | + document.getElementById('dropdown-resources').checked = false; |
| 136 | + } |
| 137 | + }, 450); |
| 138 | + }); |
| 139 | + document.getElementById('products-list').addEventListener('mouseout', function() { |
| 140 | + // if not hovering over the sublist, uncheck the dropdown |
| 141 | + // wait 1 sec |
| 142 | + setTimeout(function() { |
| 143 | + if (!document.querySelector('.products-sublist:hover') && !document.querySelector('#products-list:hover')) { |
| 144 | + document.getElementById('dropdown-products').checked = false; |
| 145 | + } |
| 146 | + }, 500); |
| 147 | + }); |
| 148 | + // if mouseout of sublist, uncheck immediately |
| 149 | + document.querySelector('.products-sublist').addEventListener('mouseout', function() { |
| 150 | + setTimeout(function() { |
| 151 | + if (!document.querySelector('.products-sublist:hover') && !document.querySelector('#products-list:hover')) { |
| 152 | + document.getElementById('dropdown-products').checked = false; |
| 153 | + } |
| 154 | + }, 500); |
| 155 | + }); |
| 156 | + |
112 | 157 | </script>
|
113 | 158 | <style>
|
114 | 159 | #dropdown-resources:checked ~ .resources-sublist {
|
|
123 | 168 | display: none;
|
124 | 169 | }
|
125 | 170 | </style>
|
126 |
| - <a href="https://app.roboflow.com"><li class="header-btn" style="border-radius: 5px; color: white; background: var(--md-typeset-a-color); padding-top: 0.25rem; padding-left: 0.5rem; padding-bottom: 0.25rem; padding-right: 0.5rem; border: 1px solid #8315F9;">Go to Roboflow</li></a> |
| 171 | + <a href="https://github.com/roboflow/trackers"><li class="header-btn" style="border-radius: 5px; color: white; background: var(--md-typeset-a-color); padding-top: 0.25rem; padding-left: 0.5rem; padding-bottom: 0.25rem; padding-right: 0.5rem; border: 1px solid #8315F9;">Go to GitHub</li></a> |
127 | 172 | </ul>
|
128 | 173 | </nav>
|
129 | 174 |
|
|
0 commit comments