Changeset 19015
- Timestamp:
- 2010/11/06 20:56:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camp/camp-2_5-E/data/class/SC_Display.php
r19014 r19015 61 61 62 62 function isSmartphone(){ 63 var useragents =[63 $useragents = array[ 64 64 'iPhone', // Apple iPhone 65 65 'iPod', // Apple iPod touch … … 77 77 ]; 78 78 79 if(preg_match('/'. .'/', $subject))79 if(preg_match('/'.user.'/', $subject)) 80 80 var pattern = new RegExp(useragents.join('|'), 'i'); 81 81 return pattern.test(navigator.userAgent);
Note: See TracChangeset
for help on using the changeset viewer.