Skip to content

Commit

Permalink
Merge pull request #774 from pkbullock/main-listview
Browse files Browse the repository at this point in the history
Fix reference issue
  • Loading branch information
pkbullock authored Nov 2, 2024
2 parents 988e0ae + b487d86 commit 6811e89
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docfx/templates/material/styles/docfx.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ $(function () {
showSearch();

// if window url is site root then set first item in navbar to active
if (window.location.pathname === '/') {
if (window.location.pathname === '/' || window.location.pathname === '/script-samples/') {
$('#navbar ul li:first-child').addClass(active);
}

Expand Down Expand Up @@ -1205,7 +1205,9 @@ $(function () {

// Hide the contribution panel on home page, by-tool, by-product pages
if (window.location.pathname === '/' || window.location.pathname === '/index.html' || window.location.pathname === '/by-tool.html'
|| window.location.pathname === '/by-product.html' || window.location.pathname === '/compact-view.html') {
|| window.location.pathname === '/by-product.html' || window.location.pathname === '/compact-view.html' ||
window.location.pathname === '/script-samples/' || window.location.pathname === '/script-samples/index.html' || window.location.pathname === '/script-samples/by-tool.html'
|| window.location.pathname === '/script-samples/by-product.html' || window.location.pathname === '/script-samples/compact-view.html') {
$('.contribution-panel').hide();
}
});

0 comments on commit 6811e89

Please sign in to comment.