1
1
<!DOCTYPE html>
2
2
< html >
3
3
< head >
4
- < meta charset ="utf-8 " />
5
4
< meta name ="viewport " content ="width=device-width ">
6
- < title > BlazorDemoApp</ title >
7
- < base href ="/ " />
8
- < link href ="css/bootstrap/bootstrap.min.css " rel ="stylesheet " />
9
- < link href ="css/site.css " rel ="stylesheet " />
5
+ < link rel ="stylesheet " href ="/css/bootstrap/bootstrap.min.css " />
6
+ < link rel ="stylesheet " href ="/css/site.css " />
10
7
</ head >
11
8
< body >
12
- < app > Loading...</ app >
9
+ < div id =" app " > Loading...</ div >
13
10
14
- < script src ="_framework/blazor.js " main ="BlazorDemoApp.dll " entrypoint ="BlazorDemoApp.Program::Main " references ="Blazorous.dll,Microsoft.AspNetCore.Blazor.Browser.dll,Microsoft.AspNetCore.Blazor.dll,Microsoft.Extensions.DependencyInjection.Abstractions.dll,Microsoft.Extensions.DependencyInjection.dll,mscorlib.dll,netstandard.dll,System.Core.dll,System.dll,System.Net.Http.dll " linker-enabled ="true "> </ script >
15
- < script src ="_content/Blazorous/BlazorousInterop.js " defer > </ script >
16
- < script src ="_content/Blazorous/glamor.min.js " defer > </ script >
17
- < script src ="_content/Blazorous/polished.js " defer > </ script >
18
- < script src ="_content/Blazorous/polished.min.js " defer > </ script >
11
+ <!-- Start Single Page Apps for GitHub Pages -->
12
+ < script type ="text/javascript ">
13
+ // Single Page Apps for GitHub Pages
14
+ // https://github.com/rafrex/spa-github-pages
15
+ // Copyright (c) 2016 Rafael Pedicini, licensed under the MIT License
16
+ // ----------------------------------------------------------------------
17
+ // This script checks to see if a redirect is present in the query string
18
+ // and converts it back into the correct url and adds it to the
19
+ // browser's history using window.history.replaceState(...),
20
+ // which won't cause the browser to attempt to load the new url.
21
+ // When the single page app is loaded further down in this file,
22
+ // the correct url will be waiting in the browser's history for
23
+ // the single page app to route accordingly.
24
+ ( function ( l ) {
25
+ if ( l . search ) {
26
+ var q = { } ;
27
+ l . search . slice ( 1 ) . split ( '&' ) . forEach ( function ( v ) {
28
+ var a = v . split ( '=' ) ;
29
+ q [ a [ 0 ] ] = a . slice ( 1 ) . join ( '=' ) . replace ( / ~ a n d ~ / g, '&' ) ;
30
+ } ) ;
31
+ if ( q . p !== undefined ) {
32
+ window . history . replaceState ( null , null ,
33
+ l . pathname . slice ( 0 , - 1 ) + ( q . p || '' ) +
34
+ ( q . q ? ( '?' + q . q ) : '' ) +
35
+ l . hash
36
+ ) ;
37
+ }
38
+ }
39
+ } ( window . location ) )
40
+ </ script >
41
+ <!-- End Single Page Apps for GitHub Pages -->
42
+ <!-- Temporary polyfill for IE support -->
43
+ < script src ="https://cdn.polyfill.io/v2/polyfill.min.js?features=Promise,fetch "> </ script >
44
+
45
+ < script src ="/_framework/Blazor.Host.min.js " main ="MicroApp.dll "> </ script >
19
46
</ body >
20
- </ html >
47
+ </ html >
0 commit comments