Skip to content

Commit

Permalink
Move jquery include up to fix an issue. (#157)
Browse files Browse the repository at this point in the history
* Move jquery include up to fix an issue.

* Move jquery include up to fix an issue.
  • Loading branch information
gfs committed Apr 25, 2019
1 parent b130802 commit 297c1f1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
8 changes: 4 additions & 4 deletions Gui/Startup.cs
Expand Up @@ -70,11 +70,11 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
browserWindowOptions.Resizable = true;
browserWindowOptions.Center = true;
browserWindowOptions.Title = "Attack Surface Analyzer Preview";
#if DEBUG
//#if DEBUG
browserWindowOptions.AutoHideMenuBar = false;
#else
browserWindowOptions.AutoHideMenuBar = true;
#endif
//#else
//browserWindowOptions.AutoHideMenuBar = true;
//#endif

Task.Run(async () =>
{
Expand Down
18 changes: 10 additions & 8 deletions Gui/Views/Shared/_Layout.cshtml
Expand Up @@ -20,6 +20,16 @@
}
<script defer src="https://use.fontawesome.com/releases/v5.7.2/js/all.js" integrity="sha384-0pzryjIRos8mFBWMzSSZApWtPl/5++eIfzYmTgBBmXYdhvxPc+XcFEk+zJwDgWbP" crossorigin="anonymous"></script>
@Html.Raw(JavaScriptSnippet.FullScript)

<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-3.3.1.min.js"
asp-fallback-src="~/lib/jquery.min.js"
asp-fallback-test="window.jQuery"
crossorigin="anonymous"
integrity=""></script>
<script src="~/lib/l10n.js"></script>
<script src="~/lib/popper.min.js"></script>
<script src="~/lib/bootstrap.min.js"></script>

</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top">
Expand Down Expand Up @@ -79,15 +89,7 @@
<nav class="navbar fixed-bottom navbar-light bg-light">
<img src="~/images/microsoft-gray.png" style="height:30px" alt="Microsoft Corporation Logo" /> v. @Helpers.GetVersionString()
</nav>

<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-3.3.1.min.js"
asp-fallback-src="~/lib/jquery/dist/jquery.min.js"
asp-fallback-test="window.jQuery"
crossorigin="anonymous"
integrity=""></script> <script src="~/lib/popper.min.js"></script>
<script src="~/lib/bootstrap.min.js"></script>
<script src="~/js/site.js" asp-append-version="true"></script>
<script src="~/lib/l10n.js"></script>

@RenderSection("Scripts", required: false)
</body>
Expand Down

0 comments on commit 297c1f1

Please sign in to comment.