Fixes + PWA Progress

This commit is contained in:
JonatanRek 2024-10-02 12:35:15 +02:00
parent df80ce37ed
commit 4c07938a0d
5 changed files with 17 additions and 0 deletions

View File

@ -24,6 +24,7 @@ namespace FakeDeck.Class
" <link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css\" rel=\"stylesheet\">" + " <link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css\" rel=\"stylesheet\">" +
" <link href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css\" rel=\"stylesheet\">" + " <link href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css\" rel=\"stylesheet\">" +
" <link href=\"StaticFiles/style.css\" rel=\"stylesheet\">" + " <link href=\"StaticFiles/style.css\" rel=\"stylesheet\">" +
" <link rel=\"manifest\" href=\"StaticFiles/manifest.json\" />" +
" </head>" + " </head>" +
" <body>" + " <body>" +
" <div id=\"main\" class=\"d-flex flex-wrap\" style=\"transform-origin: left top;\">"; " <div id=\"main\" class=\"d-flex flex-wrap\" style=\"transform-origin: left top;\">";

View File

@ -56,6 +56,7 @@ namespace FakeDeck.Class
{".img", "application/octet-stream"}, {".img", "application/octet-stream"},
{".iso", "application/octet-stream"}, {".iso", "application/octet-stream"},
{".jar", "application/java-archive"}, {".jar", "application/java-archive"},
{".json", "application/json"},
{".jardiff", "application/x-java-archive-diff"}, {".jardiff", "application/x-java-archive-diff"},
{".jng", "image/x-jng"}, {".jng", "image/x-jng"},
{".jnlp", "application/x-java-jnlp-file"}, {".jnlp", "application/x-java-jnlp-file"},

View File

@ -19,6 +19,9 @@
<None Update="StaticFiles\app.js"> <None Update="StaticFiles\app.js">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None> </None>
<None Update="StaticFiles\manifest.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="StaticFiles\style.css"> <None Update="StaticFiles\style.css">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None> </None>

View File

@ -68,6 +68,8 @@ function formToAjax(){
const target = event.currentTarget; const target = event.currentTarget;
target.style.opacity = "0.5" target.style.opacity = "0.5"
navigator.vibrate(200);
console.log(target.method, target.action); console.log(target.method, target.action);
console.log(form.method, form.action); console.log(form.method, form.action);
console.log(form === target); console.log(form === target);

View File

@ -0,0 +1,10 @@
{
"name": "FakeDeck",
"short_name": "FakeDeck",
"theme_color": "#fff",
"background_color": "#fff",
"display": "fullscreen",
"orientation": "landscape",
"scope": "/",
"start_url": "/"
}