From 8ae63c33577271c94a5f6ba4f4a54b7e4bc05efe Mon Sep 17 00:00:00 2001 From: Paolo Arena Date: Tue, 30 Mar 2021 02:21:59 +0200 Subject: [PATCH] ECommerce Ordini Email 1 --- note.txt | 0 src-pwa/custom-service-worker.js | 10 +++- src/root/pr.html | 53 ++++++++++++++++++ src/statics/js/storage.js | 3 +- src/statics/js/track.js | 2 +- src/statics/upload/eventi/acroyoga.jpg | Bin src/statics/upload/eventi/orto_sinergico.jpg | Bin src/statics/upload/eventi/teatro.png | Bin .../laboratorio_teatrale_marco_giorgi.mp4 | Bin 9 files changed, 63 insertions(+), 5 deletions(-) mode change 100644 => 100755 note.txt create mode 100644 src/root/pr.html mode change 100644 => 100755 src/statics/upload/eventi/acroyoga.jpg mode change 100644 => 100755 src/statics/upload/eventi/orto_sinergico.jpg mode change 100644 => 100755 src/statics/upload/eventi/teatro.png mode change 100644 => 100755 src/statics/video/laboratorio_teatrale_marco_giorgi.mp4 diff --git a/note.txt b/note.txt old mode 100644 new mode 100755 diff --git a/src-pwa/custom-service-worker.js b/src-pwa/custom-service-worker.js index 1cbfb0f..7e560cb 100755 --- a/src-pwa/custom-service-worker.js +++ b/src-pwa/custom-service-worker.js @@ -6,7 +6,7 @@ // Questo è il swSrc -console.log(' [ VER-0.0.62 ] _---------________------ PAO: this is my custom service worker'); +console.log(' [ VER-0.0.83 ] _---------________------ PAO: this is my custom service worker'); importScripts('../statics/js/idb.js'); importScripts('../statics/js/storage.js'); @@ -23,7 +23,7 @@ if (self.location.hostname.startsWith('test')) { const cfgenv = { serverweb: self.location.protocol + "//" + self.location.hostname + ':' + port, dbname: 'mydb3', - dbversion: 11, + dbversion: 12, } // console.log('serverweb', cfgenv.serverweb) @@ -221,7 +221,11 @@ if (workbox) { } workbox.routing.registerRoute(function (routeData) { - return (routeData.event.request.headers.get('accept').includes('text/html')); + const myaccept = routeData.event.request.headers.get('accept') + if (myaccept) + return (myaccept.includes('text/html')); + else + return null }, function (args) { return caches.match(args.event.request) .then(function (response) { diff --git a/src/root/pr.html b/src/root/pr.html new file mode 100644 index 0000000..7481fb7 --- /dev/null +++ b/src/root/pr.html @@ -0,0 +1,53 @@ + + + + + Title + + + + +

E.M. Microrganismi Effettivi

Cosa sono e i loro molteplici usi e benefici.

Ambiente - Agricoltura - Acqua - Salute - Casa 


con il Dott. Vanni Ficola 

Agronomo, esperto della tecnologia EM nelle pratiche agricole utili e sane per l’Ambiente

e per la Salute, Fondatore dell’Associazione Nazionale “Puliti senza Chimica” 


Incontro In-formativo

E’ possibile sostenersi e vivere meglio con un’agricoltura Senza Chimica che rispetti la Vita e la nostra amata Madre Terra  Scopriamolo Insieme 

con INGRESSO LIBERO


+ + + diff --git a/src/statics/js/storage.js b/src/statics/js/storage.js index 97d6916..0d37e50 100755 --- a/src/statics/js/storage.js +++ b/src/statics/js/storage.js @@ -15,7 +15,8 @@ let idbKeyval = (() => { if (!db) { // console.log('CREO DB STORAGE JS !') db = new Promise((resolve, reject) => { - const openreq = indexedDB.open('mydb3', 11); + // console.log('open mydb3') + const openreq = indexedDB.open('mydb3', 12); openreq.onerror = () => { reject(openreq.error); diff --git a/src/statics/js/track.js b/src/statics/js/track.js index cdaf57d..f33182b 100755 --- a/src/statics/js/track.js +++ b/src/statics/js/track.js @@ -4,7 +4,7 @@ function geturl() { if (miaurl.includes('localhost')) { return 'http://localhost:8090/' } else { - return 'https://ayni.gifteconomy.app/' + return 'https://comunitanuovomondo.app/' } } diff --git a/src/statics/upload/eventi/acroyoga.jpg b/src/statics/upload/eventi/acroyoga.jpg old mode 100644 new mode 100755 diff --git a/src/statics/upload/eventi/orto_sinergico.jpg b/src/statics/upload/eventi/orto_sinergico.jpg old mode 100644 new mode 100755 diff --git a/src/statics/upload/eventi/teatro.png b/src/statics/upload/eventi/teatro.png old mode 100644 new mode 100755 diff --git a/src/statics/video/laboratorio_teatrale_marco_giorgi.mp4 b/src/statics/video/laboratorio_teatrale_marco_giorgi.mp4 old mode 100644 new mode 100755