From 055dbfaaaf187080b064f6723a44d7bab77752d2 Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Mon, 4 Nov 2019 21:19:39 +0100 Subject: [PATCH] service worker resources, php import js scripts in file --- html/include/html_head.php | 2 +- html/include/html_script_bottom_head.php | 18 +++++++++--------- html/include/info.php | 15 +++++---------- html/sw.js | 6 ++---- 4 files changed, 17 insertions(+), 24 deletions(-) diff --git a/html/include/html_head.php b/html/include/html_head.php index 44bbcca..521cbf1 100644 --- a/html/include/html_head.php +++ b/html/include/html_head.php @@ -23,7 +23,7 @@ echo " - + diff --git a/html/include/html_script_bottom_head.php b/html/include/html_script_bottom_head.php index 4e9b75d..0ea1ebc 100644 --- a/html/include/html_script_bottom_head.php +++ b/html/include/html_script_bottom_head.php @@ -1,19 +1,19 @@ - - - - - - - -"; \ No newline at end of file +"; diff --git a/html/sw.js b/html/sw.js index 0b32b68..50bed54 100644 --- a/html/sw.js +++ b/html/sw.js @@ -22,13 +22,11 @@ self.addEventListener('install', function(e) { '/assets/img/favicon/favicon-32x32.png', '/assets/img/favicon/favicon-16x16.png', '/assets/img/favicon/favicon.ico', - 'https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/fonts/roboto/Roboto-Regular.woff2', - 'https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/fonts/roboto/Roboto-Regular.woff', + '/assets/js/softscrollscript.js', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css', - 'https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2', 'https://fonts.googleapis.com/icon?family=Material+Icons', 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700', - 'https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css' + 'https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.2/css/materialize.min.css', ]); }) );