text: /*
   *
   *  Air Horner
   *  Copyright 2015 Google Inc. All rights reserved.
   *
   *  Licensed under the Apache License, Version 2.0 (the "License");
   *  you may not use this file except in compliance with the License.
   *  You may obtain a copy of the License at
   *
   *      https://www.apache.org/licenses/LICENSE-2.0
   *
   *  Unless required by applicable law or agreed to in writing, software
   *  distributed under the License is distributed on an "AS IS" BASIS,
   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   *  See the License for the specific language governing permissions and
   *  limitations under the License
   *
   */
  
  // Version 0.57
  
  
  /*<script src="js/jquery-3.1.1.min.js" type="text/javascript"></script>
      <script src="js/materialize.js" type="text/javascript"></script>
      <script src="js/myscripts.js" type="text/javascript"></script>
      <script src="js/jquery.countdown.js" type="text/javascript"></script>*/
  
  
  self.addEventListener('install', e => {
    e.waitUntil(
      caches.open('airhorner').then(cache => {
        return cache.addAll([
          '/',
          '/index.html',
          '/index.html?homescreen=1',
          '/?homescreen=1',
          '/css/materialize.css',
          '/css/style.css',
          '/js/jquery-3.1.1.min.js',
          'js/materialize.js',
          'js/myscripts.js',
          'js/jquery.countdown.js'
        ])
        .then(() => self.skipWaiting());
      })
    )
  });
  
  self.addEventListener('activate',  event => {
    event.waitUntil(self.clients.claim());
  });
  
  self.addEventListener('fetch', event => {
    event.respondWith(
      caches.match(event.request).then(response => {
        return response || fetch(event.request);
      })
    );
  });