-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48250 from Faless/js/3.x_pwa_final
- Loading branch information
Showing
5 changed files
with
551 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<title>You are offline</title> | ||
<style> | ||
html { | ||
background-color: #000000; | ||
color: #ffffff; | ||
} | ||
|
||
body { | ||
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; | ||
margin: 2rem; | ||
} | ||
|
||
p { | ||
margin-block: 1rem; | ||
} | ||
|
||
button { | ||
display: block; | ||
padding: 1rem 2rem; | ||
margin: 3rem auto 0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1>You are offline</h1> | ||
<p>This application requires an Internet connection to run for the first time.</p> | ||
<p>Press the button below to try reloading:</p> | ||
<button type="button">Reload</button> | ||
|
||
<script> | ||
document.querySelector("button").addEventListener("click", () => { | ||
window.location.reload(); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.