Desc:
One qrcode, can accroding to user Agent division different platforms
1 varPlatform = "Unknow"2 vardesc = "Unknow"3 4 varTerminal = { 5Platform:function(){ 6 varU = navigator.useragent, app =navigator.appversion; 7 return { 8Trident:u.indexof (' Trident ') >-1,//IE9Presto:u.indexof (' presto ') >-1,//OperTenWebkit:u.indexof (' AppleWebKit ') >-1,//Apple or Goolge OneGecko:u.indexof (' Gecko ') >-1 && u.indexof (' khtml ') = =-1,//Firefox AMobile:!! U.match (/applewebkit.*mobile.*/),//Mobile -Ios:!! U.match (/\ (i[^;] +;( U;)? Cpu.+mac OS x/),//iOS -Android:u.indexof (' Android ') >-1 | | U.indexof (' Linux ') >-1,//Android or UC theIphone:u.indexof (' IPhone ') >-1,//IPhone or QQ -Ipad:u.indexof (' IPad ') >-1,//IPad -Webapp:u.indexof (' Safari ') = =-1//Safari - }; + }(), -Language: (Navigator.browserlanguage | |navigator.language). toLowerCase () + } A at - varUrl_base = ' xxxxxx '; - varurl_android = ' xxxxx '; - varUrl_ios = ' xxxx '; - - if(Terminal.platform.android) { inUrl_base =url_android; -desc = "Android" to}Else{ +Url_base =Url_ios -desc = "IOS" the}
Di
Vision
One qrcode, link another URL