1
0
mirror of https://github.com/lancedikson/bowser synced 2024-10-27 20:34:22 +00:00

bowser.min.js bump

This commit is contained in:
Danil Kutkevich 2013-03-02 01:33:09 +04:00
parent 23545d4403
commit d555b58756

4
bowser.min.js vendored
View File

@ -3,4 +3,6 @@
* https://github.com/ded/bowser
* MIT License | (c) Dustin Diaz 2011
*/
!function(a,b){typeof define=="function"?define(b):typeof module!="undefined"&&module.exports?module.exports.browser=b():this[a]=b()}("bowser",function(){function p(){if(c)return{msie:b,version:a.match(/msie (\d+(\.\d+)?);/i)[1]};if(d)return{webkit:b,chrome:b,version:a.match(/chrome\/(\d+(\.\d+)?)/i)[1]};if(h)return{webkit:b,touchpad:b,version:a.match(/touchpad\/(\d+(\.\d+)?)/i)[1]};if(f||g){o={webkit:b,mobile:b,ios:b,iphone:f,ipad:g},n.test(a)&&(o.version=a.match(n)[1]);return o}if(i)return{webkit:b,android:b,mobile:b,version:a.match(n)[1]};if(e)return{webkit:b,safari:b,version:a.match(n)[1]};if(j)return{opera:b,version:a.match(n)[1]};if(l){o={gecko:b,mozilla:b,version:a.match(/firefox\/(\d+(\.\d+)?)/i)[1]},k&&(o.firefox=b);return o}if(m)return{seamonkey:b,version:a.match(/seamonkey\/(\d+(\.\d+)?)/i)[1]}}var a=navigator.userAgent,b=!0,c=/msie/i.test(a),d=/chrome/i.test(a),e=/safari/i.test(a)&&!d,f=/iphone/i.test(a),g=/ipad/i.test(a),h=/touchpad/i.test(a),i=/android/i.test(a),j=/opera/i.test(a),k=/firefox/i.test(a),l=/gecko\//i.test(a),m=/seamonkey\//i.test(a),n=/version\/(\d+(\.\d+)?)/i,o,q=p();q.msie&&q.version>=7||q.chrome&&q.version>=10||q.firefox&&q.version>=4||q.safari&&q.version>=5||q.opera&&q.version>=10?q.a=b:q.msie&&q.version<7||q.chrome&&q.version<10||q.firefox&&q.version<4||q.safari&&q.version<5||q.opera&&q.version<10?q.c=b:q.x=b;return q})
!function(a,d){"function"==typeof define?define(d):"undefined"!=typeof module&&module.exports?module.exports.browser=d():this[a]=d()}("bowser",function(){var a=navigator.userAgent,d=/msie/i.test(a),f=/chrome/i.test(a),g=/phantom/i.test(a),k=/safari/i.test(a)&&!f&&!g,h=/iphone/i.test(a),j=/ipad/i.test(a),l=/touchpad/i.test(a),m=/android/i.test(a),n=/opera/i.test(a),p=/firefox/i.test(a),q=/gecko\//i.test(a),r=/seamonkey\//i.test(a),e=/version\/(\d+(\.\d+)?)/i,c,b=function(){if(d)return{msie:!0,version:a.match(/msie (\d+(\.\d+)?);/i)[1]};
if(f)return{webkit:!0,chrome:!0,version:a.match(/chrome\/(\d+(\.\d+)?)/i)[1]};if(g)return{webkit:!0,phantom:!0,version:a.match(/phantomjs\/(\d+(\.\d+)+)/i)[1]};if(l)return{webkit:!0,touchpad:!0,version:a.match(/touchpad\/(\d+(\.\d+)?)/i)[1]};if(h||j)return c={webkit:!0,mobile:!0,ios:!0,iphone:h,ipad:j},e.test(a)&&(c.version=a.match(e)[1]),c;if(m)return{webkit:!0,android:!0,mobile:!0,version:a.match(e)[1]};if(k)return{webkit:!0,safari:!0,version:a.match(e)[1]};if(n)return{opera:!0,version:a.match(e)[1]};
if(q)return c={gecko:!0,mozilla:!0,version:a.match(/firefox\/(\d+(\.\d+)?)/i)[1]},p&&(c.firefox=!0),c;if(r)return{seamonkey:!0,version:a.match(/seamonkey\/(\d+(\.\d+)?)/i)[1]}}();b.msie&&7<=b.version||b.chrome&&10<=b.version||b.firefox&&4<=b.version||b.safari&&5<=b.version||b.opera&&10<=b.version?b.a=!0:b.msie&&7>b.version||b.chrome&&10>b.version||b.firefox&&4>b.version||b.safari&&5>b.version||b.opera&&10>b.version?b.c=!0:b.x=!0;return b});