Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1a0bb71

Browse files
committed
add default loading screen
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parente8d10b8 commit1a0bb71

File tree

1 file changed

+30
-20
lines changed

1 file changed

+30
-20
lines changed

‎web-app/public/index.html

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
<!DOCTYPE html>
22
<htmllang="en">
3-
4-
<head>
5-
<metacharset="utf-8"/>
6-
<metaname="viewport"content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
7-
<metaname="theme-color"content="#000000"/>
8-
<!--
3+
<head>
4+
<metacharset="utf-8"/>
5+
<metaname="viewport"content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
6+
<metaname="theme-color"content="#000000"/>
7+
<!--
98
manifest.json provides metadata used when your web app is added to the
109
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
1110
-->
12-
<linkrel="manifest"href="manifest.json"/>
13-
<linkrel="shortcut icon"href="favicon.ico"/>
14-
<!--
11+
<linkrel="manifest"href="manifest.json"/>
12+
<linkrel="shortcut icon"href="favicon.ico"/>
13+
<!--
1514
Notice the use of %PUBLIC_URL% in the tags above.
1615
It will be replaced with the URL of the `public` folder during the build.
1716
Only files inside the `public` folder can be referenced from the HTML.
@@ -20,15 +19,27 @@
2019
work correctly both with client-side routing and a non-root public URL.
2120
Learn how to configure a non-root public URL by running `npm run build`.
2221
-->
23-
<title>CodeRoad</title>
24-
</head>
22+
<title>CodeRoad</title>
23+
</head>
2524

26-
<body>
27-
<noscript>
28-
You need to enable JavaScript to run this app.
29-
</noscript>
30-
<divid="root"></div>
31-
<!--
25+
<body>
26+
<script>
27+
window.onerror=function(message,source,lineno,colno,error){
28+
console.log(`message:${message}`)
29+
console.log(`source:${source}`)
30+
console.log(`lineno:${lineno},${colno}`)
31+
console.log(`error:${JSON.stringify(error)}`)
32+
}
33+
</script>
34+
<divid="root">
35+
<divstyle="position: absolute; top: 40%; left: 0; right: 0; text-align: center;">
36+
<h1>CodeRoad</h1>
37+
<h3>
38+
Loading...
39+
</h3>
40+
</div>
41+
</div>
42+
<!--
3243
This HTML file is a template.
3344
If you open it directly in the browser, you will see an empty page.
3445
@@ -38,6 +49,5 @@
3849
To begin the development, run `npm start` or `yarn start`.
3950
To create a production bundle, use `npm run build` or `yarn build`.
4051
-->
41-
</body>
42-
43-
</html>
52+
</body>
53+
</html>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp