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 @@ +
+