Merge pull request #69 from tasomaniac/feature/install-banner

Install banner
This commit is contained in:
Oleh Zasadnyy 2015-03-15 12:04:54 +02:00
commit f7ea5e4a55
3 changed files with 11 additions and 3 deletions

View file

@ -131,6 +131,9 @@ layout: compress
{% endif %}
</script>
<script src="{{ "/js/scripts.min.js" | prepend: site.baseurl }}"></script>
<script>
navigator.serviceWorker.register('{{ site.baseurl }}/service-worker.js', {scope: '{{ site.baseurl }}/'});
</script>
{% if page.permalink == '/schedule/' %}
<script type="text/javascript">
$(document).ready(function () {

View file

@ -8,13 +8,16 @@ layout: null
{
"src": "{{ site.baseurl }}/img/favicons/favicon-96x96.png",
"sizes": "96x96",
"type": "image/png"
"type": "image/png",
"density": "2.0"
},
{
"src": "{{ site.baseurl }}/img/favicons/apple-touch-icon-144x144.png",
"sizes": "144x144",
"type": "image/png"
"type": "image/png",
"density": "3.0"
}
],
"display": "standalone"
"display": "standalone",
"start_url": "{{ site.baseurl }}/index.html"
}

2
service-worker.js Normal file
View file

@ -0,0 +1,2 @@
// Empty service worker for App Install banners to work.
// Can be implemented to have offline and sync support.