Advertisement
Stepan1404

Untitled

Oct 4th, 2022
805
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. window.mcefQuery({
  2.         "request": JSON.stringify({
  3.             type: "GET_RESOLUTION"
  4.         }),
  5.         "persistent": false,
  6.         "onSuccess": function(msg) {
  7.             var resolution = JSON.parse(msg);
  8.            
  9.             var width = resolution.width;
  10.             var height = resolution.height;
  11.             var scaledWidth = resolution.scaledWidth;
  12.             var scaledHeight = resolution.scaledHeight;
  13.             var scaleFactor = resolution.scaleFactor;
  14.         },
  15.         "onFailure": function(err, msg) {
  16.             alert("Пиздец, я получил статус " + err + " и сообщение с ошибкой " + msg);
  17.         }
  18.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement