Aggiunto recupero dati della PixelRatio
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user