Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

130
Views
window.screen.width do not work on ios devices?

I have sphere animation on my site, for desktop, tablet and mobile I m using different sizes of sphere. Here you can see conditions of every type of device:

desktop:
var screen_size = window.screen.width;
if(screen_size < 1025){
    false;
}else{
    sphere animation code;
}
Tablet:
var screen_size = window.screen.width;
if(screen_size >= 1025  || screen_size  < 668){
    false;
}else{
    sphere animation code;
}
Mobile:
var screen_size = window.screen.width;
if((screen_size > 667)){
    false;
}else{
    sphere animation code;
}

If I use one script separately its - works, other operation system - its works. I think suppose main problem in "window.screen.width".

Here you an see my site with full code: thesevenwang

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Thank all for replies, problem was not in ("window.screen.width" not work on IOS) or conditions.

Problem was in 3 spheres with same code, after I deleted all repeated code it start work. May be some double variables cause an error implementation.

And window.screen.width now work well on IOS, so my main problem statement was wrong.

Anyway thank you all, you comments helped me think under the problem more clearly.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!