Cool script, worked fine on the browsers on desktop PC. Thank you! Unfortunately, the script doesn't work for me on mobile iOS 15.6 (all Browsers, Firefox, Safari, Chrome). Is it the same for you?
I tested this site in my mobile it's working perfectly but I will try my best to solve your problem I need your little help run this code and check in your ios which is giving output
var a = document.getElementById("main").main.querySelectorAll('.img')[0].naturalWidth
var b = document.getElementById("main").main.querySelectorAll('.img')[0].offsetWidth
alert(a);
alert(b);
and tell me which js property not working
I changed your script in:
var a = document.getElementById("main").querySelectorAll('.img')[0].naturalWidth
var b = document.getElementById("main").querySelectorAll('.img')[0].offsetWidth
alert(a);
alert(b);
Cool script, worked fine on the browsers on desktop PC. Thank you! Unfortunately, the script doesn't work for me on mobile iOS 15.6 (all Browsers, Firefox, Safari, Chrome). Is it the same for you?
I tested this site in my mobile it's working perfectly but I will try my best to solve your problem I need your little help run this code and check in your ios which is giving output
var a = document.getElementById("main").main.querySelectorAll('.img')[0].naturalWidth
var b = document.getElementById("main").main.querySelectorAll('.img')[0].offsetWidth
alert(a);
alert(b);
and tell me which js property not working
I changed your script in:
var a = document.getElementById("main").querySelectorAll('.img')[0].naturalWidth
var b = document.getElementById("main").querySelectorAll('.img')[0].offsetWidth
alert(a);
alert(b);
var a is not working
that's mean naturalWidth property not work on ios 15.6