Aos: Mysterious code in aos.js

Created on 13 Feb 2018  路  2Comments  路  Source: michalsnik/aos

What's the purpose of

,r=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp etc?

question

Most helpful comment

Looks like it is for mobile detection, similar to:
https://github.com/hgoebl/mobile-detect.js/blob/master/mobile-detect.js

All 2 comments

Looks like it is for mobile detection, similar to:
https://github.com/hgoebl/mobile-detect.js/blob/master/mobile-detect.js

Exactly 鈽濓笍

Was this page helpful?
0 / 5 - 0 ratings

Related issues

webdevnerdstuff picture webdevnerdstuff  路  3Comments

VeronikaMilic picture VeronikaMilic  路  4Comments

Ahearys picture Ahearys  路  4Comments

junaidfarooqui picture junaidfarooqui  路  3Comments

jodriscoll picture jodriscoll  路  4Comments