Fixed skeleton scale by depending on the system

This commit is contained in:
Alexander Yuzhin 2019-10-02 11:49:44 +03:00
parent e941f2c87d
commit f052e70417
6 changed files with 12 additions and 0 deletions

View file

@ -113,6 +113,8 @@
</style>
<script>
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / window.devicePixelRatio + ';');
var userAgent = navigator.userAgent.toLowerCase(),
check = function(regex){ return regex.test(userAgent); },
stopLoading = false;

View file

@ -114,6 +114,8 @@
</style>
<script>
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / window.devicePixelRatio + ';');
var userAgent = navigator.userAgent.toLowerCase(),
check = function(regex){ return regex.test(userAgent); },
stopLoading = false;

View file

@ -131,6 +131,8 @@
</style>
<script>
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / window.devicePixelRatio + ';');
window.onbeforeunload = function() {
window.postMessage("{ \"reporter_command\" : \"end\" }", "*");
};

View file

@ -131,6 +131,8 @@
</style>
<script>
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / window.devicePixelRatio + ';');
var userAgent = navigator.userAgent.toLowerCase(),
check = function(regex){ return regex.test(userAgent); },
stopLoading = false;

View file

@ -128,6 +128,8 @@
</style>
<script>
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / window.devicePixelRatio + ';');
var userAgent = navigator.userAgent.toLowerCase(),
check = function(regex){ return regex.test(userAgent); },
stopLoading = false;

View file

@ -130,6 +130,8 @@
</style>
<script>
document.getElementsByTagName('html')[0].setAttribute('style', 'zoom: ' + 1 / window.devicePixelRatio + ';');
var userAgent = navigator.userAgent.toLowerCase(),
check = function(regex){ return regex.test(userAgent); },
stopLoading = false;