Skip to content

Commit

Permalink
Get out, service worker
Browse files Browse the repository at this point in the history
  • Loading branch information
AhoyLemon committed Feb 6, 2024
1 parent d61e217 commit 41a60cf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 91 deletions.
44 changes: 3 additions & 41 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<title>DAMN DOG</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Slab:100,400,300,700|Roboto:400,300,700,400italic">
<link rel="stylesheet" href="css/damn.css?v=2024-02-06T04:46:07.057Z">
<link rel="stylesheet" href="css/damn.css?v=2024-02-06T04:50:03.041Z">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="The guessing game for wikiHow illustrations.">
<meta http-equiv="last-modified" content="2024-02-06T04:46:07.057Z">
<meta http-equiv="last-modified" content="2024-02-06T04:50:03.041Z">
<link rel="canonical" href="https://damn.dog">
<!-- favicons-->
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
Expand Down Expand Up @@ -211,37 +211,6 @@ <h2>GAME OVER</h2>
<script>
const testing = false;

</script>
<script type="text/javascript">
if ('serviceWorker' in navigator) {
// Register a service worker hosted at the root of the
// site using the default scope.
navigator.serviceWorker.register('/service-worker.js').then(function(registration) {
console.log('Service worker registration succeeded:', registration);

}, function(error) {
console.log('Service worker registration failed:', error);
});
} else {
console.log('Service workers are not supported.');
}

/*
Notification.requestPermission(result => {
if (result === 'granted') {
//permission granted.
navigator.serviceWorker.ready.then(registration => {
registration.showNotification('Damn Dog has been updated', {
icon: '/android-chrome-96x96.png',
vibrate: [500, 100, 500],
body: '7 new rounds have been added to damn.dog, bringing the total up to 358.',
tag: 'vibration-sample'
});
});
}
});
*/

</script>
<!-- Global site tag (gtag.js) - Google Analytics-->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-15129990-16"></script>
Expand All @@ -252,14 +221,7 @@ <h2>GAME OVER</h2>
gtag('config', 'UA-15129990-16');

</script>
<script src="js/min/damn.vue.min.js?v=2024-02-06T04:46:07.057Z"></script>
<script src="https://cdn.trackjs.com/agent/v3/latest/t.js" crossorigin></script>
<script>
window.TrackJS && TrackJS.install({
token: "9947e081831c42b8aeb3a5fb81a152c4",
application: "damndog"
});
</script>
<script src="js/min/damn.vue.min.js?v=2024-02-06T04:50:03.041Z"></script>
<script type="application/ld+json">
{
"@context": "http://schema.org",
Expand Down
44 changes: 3 additions & 41 deletions offline.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<title>DAMN DOG</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Slab:100,400,300,700|Roboto:400,300,700,400italic">
<link rel="stylesheet" href="css/damn.css?v=2024-02-06T04:46:07.013Z">
<link rel="stylesheet" href="css/damn.css?v=2024-02-06T04:50:02.966Z">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="The guessing game for wikiHow illustrations.">
<meta http-equiv="last-modified" content="2024-02-06T04:46:07.013Z">
<meta http-equiv="last-modified" content="2024-02-06T04:50:02.966Z">
<link rel="canonical" href="https://damn.dog">
<!-- favicons-->
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
Expand Down Expand Up @@ -181,37 +181,6 @@ <h2>GAME OVER</h2>
<script>
const testing = false;

</script>
<script type="text/javascript">
if ('serviceWorker' in navigator) {
// Register a service worker hosted at the root of the
// site using the default scope.
navigator.serviceWorker.register('/service-worker.js').then(function(registration) {
console.log('Service worker registration succeeded:', registration);

}, function(error) {
console.log('Service worker registration failed:', error);
});
} else {
console.log('Service workers are not supported.');
}

/*
Notification.requestPermission(result => {
if (result === 'granted') {
//permission granted.
navigator.serviceWorker.ready.then(registration => {
registration.showNotification('Damn Dog has been updated', {
icon: '/android-chrome-96x96.png',
vibrate: [500, 100, 500],
body: '7 new rounds have been added to damn.dog, bringing the total up to 358.',
tag: 'vibration-sample'
});
});
}
});
*/

</script>
<!-- Global site tag (gtag.js) - Google Analytics-->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-15129990-16"></script>
Expand All @@ -222,14 +191,7 @@ <h2>GAME OVER</h2>
gtag('config', 'UA-15129990-16');

</script>
<script src="js/min/damn.vue.min.js?v=2024-02-06T04:46:07.013Z"></script>
<script src="https://cdn.trackjs.com/agent/v3/latest/t.js" crossorigin></script>
<script>
window.TrackJS && TrackJS.install({
token: "9947e081831c42b8aeb3a5fb81a152c4",
application: "damndog"
});
</script>
<script src="js/min/damn.vue.min.js?v=2024-02-06T04:50:02.966Z"></script>
<script type="application/ld+json">
{
"@context": "http://schema.org",
Expand Down
16 changes: 7 additions & 9 deletions pug/partials/_javascripts.pug
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ else

//- ServiceWorker
script(type="text/javascript").
//-script(type="text/javascript").
if ('serviceWorker' in navigator) {
// Register a service worker hosted at the root of the
// site using the default scope.
navigator.serviceWorker.register('/service-worker.js').then(function(registration) {
console.log('Service worker registration succeeded:', registration);
Expand Down Expand Up @@ -53,9 +51,9 @@ script.
script(src="js/min/damn.vue.min.js?v="+lastUpdated)

//- trackJS
script(src="https://cdn.trackjs.com/agent/v3/latest/t.js" crossorigin)
script.
window.TrackJS && TrackJS.install({
token: "9947e081831c42b8aeb3a5fb81a152c4",
application: "damndog"
});
//- script(src="https://cdn.trackjs.com/agent/v3/latest/t.js" crossorigin)
//- script.
//- window.TrackJS && TrackJS.install({
//- token: "9947e081831c42b8aeb3a5fb81a152c4",
//- application: "damndog"
//- });

0 comments on commit 41a60cf

Please sign in to comment.