diff options
author | root <root@bawker.net> | 2014-05-10 11:15:27 -0700 |
---|---|---|
committer | root <root@bawker.net> | 2014-05-10 11:15:27 -0700 |
commit | ed5cebd3d6b87a5c2254f3fa48b03d93558fa7bc (patch) | |
tree | 1de11f75a72d95600350dea9949d0ed478109e50 /view/tpl/head.tpl | |
parent | 80796c78f5326c670893476fe8e9024c30ebffcc (diff) | |
download | volse-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/tpl/head.tpl')
-rwxr-xr-x | view/tpl/head.tpl | 3 |
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}} |