aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorroot <root@bawker.net>2014-05-10 11:15:27 -0700
committerroot <root@bawker.net>2014-05-10 11:15:27 -0700
commited5cebd3d6b87a5c2254f3fa48b03d93558fa7bc (patch)
tree1de11f75a72d95600350dea9949d0ed478109e50 /view
parent80796c78f5326c670893476fe8e9024c30ebffcc (diff)
downloadvolse-hubzilla-ed5cebd3d6b87a5c2254f3fa48b03d93558fa7bc.tar.gz
volse-hubzilla-ed5cebd3d6b87a5c2254f3fa48b03d93558fa7bc.tar.bz2
volse-hubzilla-ed5cebd3d6b87a5c2254f3fa48b03d93558fa7bc.zip
Made code changes to serve higher resolution images in displays with high pixel density.
Diffstat (limited to 'view')
-rwxr-xr-xview/tpl/head.tpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/view/tpl/head.tpl b/view/tpl/head.tpl
index 54aa5d41c..496758079 100755
--- a/view/tpl/head.tpl
+++ b/view/tpl/head.tpl
@@ -7,6 +7,9 @@
<script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
+<script>(function(w){var dpr=((w.devicePixelRatio===undefined)?1:w.devicePixelRatio);if(!!w.navigator.standalone){var r=new XMLHttpRequest();r.open('GET','/retinaimages.php?devicePixelRatio='+dpr,false);r.send()}else{document.cookie='devicePixelRatio='+dpr+'; path=/'}})(window)</script>
+<noscript><style id="devicePixelRatio" media="only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2)">html{background-image:url("/retinaimages.php?devicePixelRatio=2")}</style></noscript>
+
{{$head_css}}
{{$js_strings}}