Skip to content

Commit

Permalink
Update Demo
Browse files Browse the repository at this point in the history
Minor Improvement
  • Loading branch information
SheepChef committed Nov 23, 2024
1 parent bd5854f commit 7b178bf
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 47 deletions.
82 changes: 41 additions & 41 deletions docs/assets/index-CDNxQT5U.js → docs/assets/index-BUiq8LRJ.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/assets/index-CVSA6z77.css

This file was deleted.

1 change: 1 addition & 0 deletions docs/assets/index-DCctfoWb.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
return this._attachShadow({ mode: "open" });
};
</script>
<script type="module" crossorigin src="./assets/index-CDNxQT5U.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-CVSA6z77.css">
<script type="module" crossorigin src="./assets/index-BUiq8LRJ.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-DCctfoWb.css">
<link rel="manifest" href="./manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="./registerSW.js"></script></head>
<body>
<div id="app"></div>
Expand Down
2 changes: 1 addition & 1 deletion docs/sw.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions src/assets/ImMainView.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
}

@media screen and (max-width: 700px) {
body {
background: url("./bg.webp");
background-size: cover;
background-position: -480px;
}
#MagicBadge {
position: absolute;
display: grid;
Expand Down Expand Up @@ -94,6 +99,10 @@
}

@media screen and (min-width: 700px) {
body {
background: url("./bg.webp");
background-size: cover;
}
#MagicBadge {
position: absolute;
display: grid;
Expand Down
2 changes: 0 additions & 2 deletions src/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ body {
margin: 0;
padding: 0;
font-family: "SamsungSans", "sans-serif";
background: url("./bg.webp");
background-size: cover;
}
h1 {
margin-top: unset;
Expand Down
6 changes: 6 additions & 0 deletions src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ function ControlEncq() {
}
}
async function KeyEnter() {
document.getElementById("KeyCard").blur();
await ProcessGo();
}
async function ProcessGo() {
let Abra = new Abracadabra(InputMode.value, OutputMode.value);
let key;
Expand Down Expand Up @@ -280,6 +285,7 @@ onBeforeUnmount(() => {});
</Card>
<div id="controlBar" style="grid-area: 2; display: grid; grid-template-columns: 360px">
<mdui-text-field
@keydown.enter="KeyEnter"
id="KeyCard"
variant="outlined"
rows="1"
Expand Down

0 comments on commit 7b178bf

Please sign in to comment.