-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close edit dialog on escape key hit (#24)
* Close edit dialog on escape key hit * Change id to be more semantically correct
- Loading branch information
1 parent
e4ab67e
commit 9b587a4
Showing
3 changed files
with
54 additions
and
23 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
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 |
---|---|---|
@@ -1,32 +1,54 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" | ||
/> | ||
<title>Shifty</title> | ||
<base href="/" /> | ||
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" /> | ||
<link | ||
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" /> | ||
<link href="manifest.json" rel="manifest" /> | ||
<link rel="apple-touch-icon" sizes="512x512" href="icon-512.png" /> | ||
</head> | ||
</head> | ||
|
||
<body> | ||
<div id="app" style="background: #e9e9e9; display: flex; justify-content: center"> | ||
<div style="padding: 20vh"> | ||
<img src="./coffee_loading.png" alt="Loading animation" style="height: 60vh"> | ||
<body> | ||
<div | ||
id="app" | ||
style="background: #e9e9e9; display: flex; justify-content: center" | ||
> | ||
<div style="padding: 20vh"> | ||
<img | ||
src="./coffee_loading.png" | ||
alt="Loading animation" | ||
style="height: 60vh" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div id="blazor-error-ui"> | ||
An unhandled error has occurred. | ||
<a href="" class="reload">Reload</a> | ||
<a class="dismiss">🗙</a> | ||
</div> | ||
<script src="_framework/blazor.webassembly.js"></script> | ||
<script>navigator.serviceWorker.register('service-worker.js');</script> | ||
<script src="_content/MudBlazor/MudBlazor.min.js"></script> | ||
</body> | ||
|
||
</html> | ||
<div id="blazor-error-ui"> | ||
An unhandled error has occurred. | ||
<a href="" class="reload">Reload</a> | ||
<a class="dismiss">🗙</a> | ||
</div> | ||
<script> | ||
const focusElement = (id) => { | ||
setTimeout(() => { | ||
const element = document.getElementById(id); | ||
element.focus(); | ||
}, 50); // Race conditions 💀💀💀 | ||
}; | ||
window.focusElement = focusElement; | ||
</script> | ||
<script src="_framework/blazor.webassembly.js"></script> | ||
<script> | ||
navigator.serviceWorker.register("service-worker.js"); | ||
</script> | ||
<script src="_content/MudBlazor/MudBlazor.min.js"></script> | ||
</body> | ||
</html> |