mirror of
https://github.com/medialab-prado/datamad2017.git
synced 2024-12-26 20:51:22 +01:00
Merge pull request #69 from tasomaniac/feature/install-banner
Install banner
This commit is contained in:
commit
f7ea5e4a55
3 changed files with 11 additions and 3 deletions
|
@ -131,6 +131,9 @@ layout: compress
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</script>
|
</script>
|
||||||
<script src="{{ "/js/scripts.min.js" | prepend: site.baseurl }}"></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/' %}
|
{% if page.permalink == '/schedule/' %}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
|
@ -8,13 +8,16 @@ layout: null
|
||||||
{
|
{
|
||||||
"src": "{{ site.baseurl }}/img/favicons/favicon-96x96.png",
|
"src": "{{ site.baseurl }}/img/favicons/favicon-96x96.png",
|
||||||
"sizes": "96x96",
|
"sizes": "96x96",
|
||||||
"type": "image/png"
|
"type": "image/png",
|
||||||
|
"density": "2.0"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"src": "{{ site.baseurl }}/img/favicons/apple-touch-icon-144x144.png",
|
"src": "{{ site.baseurl }}/img/favicons/apple-touch-icon-144x144.png",
|
||||||
"sizes": "144x144",
|
"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
2
service-worker.js
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
// Empty service worker for App Install banners to work.
|
||||||
|
// Can be implemented to have offline and sync support.
|
Loading…
Reference in a new issue