diff --git a/assets/JsStuff/manifest.webmanifest b/assets/JsStuff/manifest.webmanifest new file mode 100644 index 0000000..e7bbaf0 --- /dev/null +++ b/assets/JsStuff/manifest.webmanifest @@ -0,0 +1,14 @@ +{ + "name": "Tinder for pokemons 2022", + "short_name": "Pokinder", + "start_url": "/es2-2022-2023/rhmr/PokemonTinder/index.html", + "id": "/es2-2022-2023/rhmr/PokemonTinder/index.html", + "display": "fullscreen", + "icons": [ + { + "src": "/es2-2022-2023/rhmr/PokemonTinder/assets/img/Icon2.png", + "sizes": "144x144", + "type": "image/png" + } + ] +} \ No newline at end of file diff --git a/assets/img/Icon.png b/assets/img/Icon.png index 9102fcd..2706f61 100644 Binary files a/assets/img/Icon.png and b/assets/img/Icon.png differ diff --git a/assets/img/Icon.png:Zone.Identifier b/assets/img/Icon.png:Zone.Identifier new file mode 100644 index 0000000..b37ac78 --- /dev/null +++ b/assets/img/Icon.png:Zone.Identifier @@ -0,0 +1,3 @@ +[ZoneTransfer] +ZoneId=3 +HostUrl=https://www.piskelapp.com/ diff --git a/assets/img/Icon2.png b/assets/img/Icon2.png new file mode 100644 index 0000000..2706f61 Binary files /dev/null and b/assets/img/Icon2.png differ diff --git a/index.html b/index.html index ca46f63..b7fe0ec 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,24 @@ Tinder Pokemon + +
@@ -30,15 +47,6 @@

Home

-
response.text()) .then(result => { let addedPokemon = JSON.parse(result); console.log(addedPokemon); - saveToIndexedDB(storeName,addedPokemon); + saveToIndexedDB(storeName, addedPokemon); }) .catch(error => console.log('error', error)); } diff --git a/sw.js b/sw.js new file mode 100644 index 0000000..8bbe9cb --- /dev/null +++ b/sw.js @@ -0,0 +1,7 @@ +// This code executes in its own worker or thread +self.addEventListener("install", event => { + console.log("Service worker installed"); + }); + self.addEventListener("activate", event => { + console.log("Service worker activated"); + }); \ No newline at end of file