Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
Menu changes
Browse files Browse the repository at this point in the history
  • Loading branch information
noahc3 committed Aug 16, 2018
1 parent 519d712 commit 6ce3160
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 54 deletions.
18 changes: 0 additions & 18 deletions SDSetupBlazor/Pages/FAQ.cshtml
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
@page "/faq"

<div class="ui secondary pointing menu red">
<a href="/" class="item">
Home
</a>
<a href="/switch" class="item">
Switch
</a>
<a href="/faq" class="active item">
FAQ
</a>
<a href="https://github.com/noahc3/SDSetup" class="item">
Source
</a>
<a href="https://github.com/noahc3/SDSetup/issues" class="item">
Issues
</a>
</div>

<h1 style="text-align:center">Frequently Asked Questions</h1>
<h4 style="text-align:center">And other things that aren't questions but you might want to know</h4>

Expand Down
18 changes: 1 addition & 17 deletions SDSetupBlazor/Pages/Index.cshtml
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
@page "/"
@inject Microsoft.AspNetCore.Blazor.Services.IUriHelper UriHelper

<div class="ui secondary pointing menu red">
<a href="/" class="active item">
Home
</a>
<a href="/switch" class="item">
Switch
</a>
<a href="/faq" class="item">
FAQ
</a>
<a href="https://github.com/noahc3/SDSetup" class="item">
Source
</a>
<a href="https://github.com/noahc3/SDSetup/issues" class="item">
Issues
</a>
</div>


<h1 style="text-align:center">Homebrew SD Setup</h1>

Expand Down
17 changes: 0 additions & 17 deletions SDSetupBlazor/Pages/Switch.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,6 @@
@if (!gettingZip) {

<div>
<div class="ui secondary pointing menu red">
<a href="/" class="item">
Home
</a>
<a href="/switch" class="active item">
Switch
</a>
<a href="/faq" class="item">
FAQ
</a>
<a href="https://github.com/noahc3/SDSetup" class="item">
Source
</a>
<a href="https://github.com/noahc3/SDSetup/issues" class="item">
Issues
</a>
</div>

@if (zipDoneMessage == true) {
<div class="ui success message">
Expand Down
20 changes: 19 additions & 1 deletion SDSetupBlazor/Shared/MainLayout.cshtml
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
@inherits BlazorLayoutComponent
@inject Microsoft.AspNetCore.Blazor.Services.IUriHelper UriHelper

<div class="main" style="min-height:100%;height:auto">

<div class="ui menu stackable red">
<a href="/" class="@(GetRelativePath().ToLower() == "" ? "active" : "") item">Home</a>
<a href="/switch" class="@(GetRelativePath().ToLower() == "switch" ? "active" : "") item">Switch</a>
<a href="/faq" class="@(GetRelativePath().ToLower() == "faq" ? "active" : "") item">FAQ</a>
<div class="right menu">
<a href="https://github.com/noahc3/SDSetup/issues" class="ui item">Issues</a>
<a href="https://github.com/noahc3/SDSetup" class="ui item">Source</a>
</div>
</div>

<div class="container" style="padding-bottom:1.5rem">
<div class="content px-4">
@Body
</div>
</div>
<h5 style="text-align:center">Made by noahc3</h5>
<h5 style="text-align:center;color:#d4d4d4;margin-bottom:1.5em">2018.08.16.01</h5>
</div>
</div>

@functions {
private string GetRelativePath() {
return UriHelper.ToBaseRelativePath(UriHelper.GetBaseUri(), UriHelper.GetAbsoluteUri());
}
}
3 changes: 2 additions & 1 deletion SDSetupBlazor/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<p></p>
</app>

<script src="libs/jquery-1.10.2.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="libs/FileSaver.js"></script>
<script src="libs/jszip.js"></script>
<script src="scripts/methods.js"></script>
Expand Down Expand Up @@ -59,5 +59,6 @@
return true;
};
</script>
<script src="/scripts/menu.js"></script>
</body>
</html>
11 changes: 11 additions & 0 deletions SDSetupBlazor/wwwroot/scripts/menu.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
window.menu_interop = {
interop_registerClick: function () {
console.log("fucking haha");
$('.ui .item').on('click', function () {
console.log("fucking haha numero dos");
$('.ui .item').removeClass('active');
$(this).addClass('active');
});
return 1;
}
};

0 comments on commit 6ce3160

Please sign in to comment.