This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onload = function() { | |
if ('serviceWorker' in navigator) { | |
navigator.serviceWorker.register('sw.js').then(function() { | |
console.log('Service Worker Registered'); | |
}); | |
} | |
let deferredPrompt; | |
const addBtn = document.querySelector('#enable-banner-install'); | |
window.addEventListener('beforeinstallprompt', (e) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''A round menu that appears on a long touch | |
''' | |
from kivy.uix.widget import Widget | |
from kivy.uix.label import Label | |
from kivy.uix.behaviors import ButtonBehavior | |
from kivy.lang import Builder | |
from kivy.clock import Clock | |
from kivy.animation import Animation | |
from kivy.properties import ( | |
NumericProperty, ListProperty, ObjectProperty, DictProperty) |