Vendor reveal.js, wew
This commit is contained in:
parent
27dd9c2249
commit
5907908ba8
144 changed files with 40660 additions and 0 deletions
8
content/pages/nixcon2022/js/utils/device.js
Normal file
8
content/pages/nixcon2022/js/utils/device.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
const UA = navigator.userAgent;
|
||||
|
||||
export const isMobile = /(iphone|ipod|ipad|android)/gi.test( UA ) ||
|
||||
( navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1 ); // iPadOS
|
||||
|
||||
export const isChrome = /chrome/i.test( UA ) && !/edge/i.test( UA );
|
||||
|
||||
export const isAndroid = /android/gi.test( UA );
|
||||
Loading…
Add table
Add a link
Reference in a new issue