Skip to content

Commit e36a998

Browse files
committed
add AdvSearch new
1 parent ab96300 commit e36a998

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

AspNetCore/Razor-Mvc/Razor.AdvancedSearch.New/Pages/About.cshtml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,12 @@ ViewData["Title"] = "About Project";
66
<h1>@ViewData["Title"]</h1>
77

88
<p>Use this page to detailed your site's about.</p>
9+
10+
@section Scripts {
11+
<script>
12+
const toolbar = document.querySelector('.main-toolbar');
13+
if (toolbar) {
14+
toolbar.classList.add("disabled");
15+
}
16+
</script>
17+
}

AspNetCore/Razor-Mvc/Razor.AdvancedSearch.New/Pages/Privacy.cshtml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,12 @@
66
<h1>@ViewData["Title"]</h1>
77

88
<p>Use this page to detail your site's privacy policy.</p>
9+
10+
@section Scripts {
11+
<script>
12+
const toolbar = document.querySelector('.main-toolbar');
13+
if (toolbar) {
14+
toolbar.classList.add("disabled");
15+
}
16+
</script>
17+
}

AspNetCore/Razor-Mvc/Razor.AdvancedSearch.New/wwwroot/css/index.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,4 +423,9 @@ body.expand-result {
423423
height: 100%;
424424
inset: 4px;
425425
}
426+
}
427+
428+
.disabled {
429+
opacity: 0.5;
430+
pointer-events: none;
426431
}

0 commit comments

Comments
 (0)