Aggiunto recupero dati della PixelRatio

This commit is contained in:
Samuele E. Locatelli
2018-03-07 17:42:10 +01:00
parent edfde73ddd
commit 515aa10be9
4 changed files with 91 additions and 6 deletions
+13 -1
View File
@@ -8,11 +8,23 @@ function SetWidthHeight() {
//var height = $(window).height();
//var width = $(window).width();
//$(window).innerHeight() * $(window).devicePixelRatio();
//w = window.screen.width;
//h = window.screen.height;
//if (window.devicePixelRatio < 1) {
// w = window.screen.width / window.devicePixelRatio;
// h = window.screen.height / window.devicePixelRatio;
//}
$.ajax({
url: "./windowSize.ashx",
data: {
'Height': height,
'Width': width
'Width': width,
'PixRat': devicePixelRatio,
'scrWidth': screen.width,
'scrHeight': screen.height
},
contentType: "application/json; charset=utf-8",
dataType: "json"