From 197c2af66edc22338bab2a750aac1016924778be Mon Sep 17 00:00:00 2001 From: Maciej Bowszys Date: Thu, 2 Jul 2026 21:55:13 +0200 Subject: [PATCH] 260702_215513 --- moira_db.go | 2 +- website/static/script.js | 12 ++++++++++++ website/templates/index.html | 2 ++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/moira_db.go b/moira_db.go index ca1aea5..69d0096 100644 --- a/moira_db.go +++ b/moira_db.go @@ -291,5 +291,5 @@ func main(){ //fmt.Println("Welcome to moira_db!"); - log.Fatal(http.ListenAndServe(":8091", nil)) + log.Fatal(http.ListenAndServe(":8000", nil)) } diff --git a/website/static/script.js b/website/static/script.js index 853df5c..75ee424 100644 --- a/website/static/script.js +++ b/website/static/script.js @@ -1,4 +1,16 @@ +var installPromptEvnt = null; + window.onload = () => { + window.addEventListener("beforeinstallprompt", (e) => { + installPromptEvnt = e; + document.getElementById("inp_bttn").disabled = false; + }); + + document.getElementById("inp_bttn").addEventListener("click", function(){ + installPromptEvnt.prompt(); + this.disabled = true; + }); + var fetch_filmInfo = async (in_url)=>{ // pretty good test redirect: https://share.google/mSDJehdZm6hp6vTYy var resp; diff --git a/website/templates/index.html b/website/templates/index.html index 2f5558c..ae10f8d 100644 --- a/website/templates/index.html +++ b/website/templates/index.html @@ -15,6 +15,8 @@ +
+