WorldWideScripts.net Delivering the best Add-Ons in more than 37 languages.

中文(简体), English, हिन्दी/हिंदी, Español/Castellano, العربية, Русский язык, Français, 中文 (台灣), বাংলা, Bahasa Indonesia, اردو, Português, Deutsch, Bahasa Melayu (بهاس ملايو‎), 日本語 (にほんご), فارسی, Italiano, తెలుగు, Türkçe, ગુજરાતી, Język polski/polszczyzna, Tiếng Việt, ಕನ್ನಡ, Українська мова, ไทย
JavaScript / Miscellaneous

CSS/JS Browser Determiner

— Add-On kwa WorldWideScripts.net

Kujiunga na kulisha wetu kukaa hadi tarehe!

Mpya! Kufuata yetu kama unataka!


CSS/JS Browser Determiner - CodeCanyon Item for Sale

Ads

Ad: Bluehost hosting

Ni nyepesi (2kb gzipped au 3,8kb minified) JavaScript browser detector ambayo yanaweza kutumika katika miradi yote yako mtandao. Ni kuundwa ili kukusaidia kuandika CSS au JavaScript kificho kwa browser yoyote maalum, toleo la browser au whatnot kwa njia rahisi sana. Kuchunguza mpangilio injini, OS, msaada kwa ajili ya makala CSS na zaidi.

Ni lazima ufumbuzi kwa ajili ya kujenga msalaba-browser na msalaba-jukwaa mtandao-na web-maombi.

Jinsi kazi? Rahisi sana. Ni inazalisha orodha ya madarasa na taarifa za kina kuhusu browser, injini layout, OS, kifaa na kisha inaona kwa <html> tag.

Tofauti na maalumu Modernizr, CSS / JS Browser Determiner ni zaidi ya umakini si juu ya makala browser lakini kwenye browser na kifaa yenyewe. Lakini pia huamua msaada wa makala ya kawaida CSS.

Browser kugundua Pamoja CSS

 .opera.element {color:red} // All versions of Opera.ie8.element {color:red} // MSIE 8.ie7_5.element {color:red} // MSIE 7.5.ie8-.element {color:red} // MSIE 8 or less.chrome24-.element {color:red} // Chrome 24 or less (25 version is the maximum available).webkit.element {color:red} // Webkit based browsers such as Chrome, Safari, IOS, Android etc..gecko18.element {color:red} // Browsers that based on Gecko v18.macos.element {color:red} // Mac OS only.windows.element {color:red} // Any version of Windows.win7.element {color:red} // Windows 7 only.pc.element {color:red} // Any non-mobile computer including Mac OS.mobile.element {color:red} // Any mobile device.desktop.element {color:red} // Window width 980px or more.iphone.element {color:red} // iPhone.ipad.landscape.element {color:red} // iPad in landscape orientation.android.element {color:red} // Device with Android OS.android.crmo.element {color:red} // Chrome Mobile on Android OS.mobile.tablet.element {color:red} // Only mobile device with current width of the window from 768px to 979px.boxsizing.element {color:red} // Browser that supports the CSS3 box-sizing property.no-gradient.element {color:red} // Browser that does not supports CSS3 gradients.cookie.element {color:red} // Cookies enabled.no-flash.element {color:red} // Flash is not installed... and so much more! 

Browser kugundua Pamoja JavaScript

 if (browser.ie && browser.version <= 8 ) { // Code for MSIE 8 or less } if (browser.is_mobile) { // Code for mobile devices } if (browser.is_old) { // Code for old browsers such as: // MSIE 9 or less // Firefox 3.6 or less // Safari 3.0 or less // Opera 10.1 or less } if (browser.supports("border-radius")) { // Code for browsers that supports the CSS3 border-radius property } if (browser.is_desktop) { // Window width is 980px or more } 

Na mengi-mengi zaidi.

Selectors wote CSS

  • Browsers - chrome, safari, firefox, ie, konqueror, opera, operamobi, operamini, crmo, unknown
  • Browser toleo kama: firefox18, firefox18-, firefox18_0 (lakini sio firefox18_0- au firefox18_0_1234 au firefox18_0a1 )
  • Injini mpangilio: webkit, gecko, trident, presto, khtml
  • Mpangilio toleo kama: gecko18, gecko18_0 (lakini sio gecko18- au gecko18_0_1 au gecko18_0a1 )
  • Vyombo vya muziki: iphone, ipod, ipad, blackberry, kindle
  • Operesheni mifumo: windows, win8, win7, vista, xp, win2003, cros, unix, linux, ios, android, unknown_os
  • CSS3 msingi properties: opacity, gradient, borderradius, borderimage, animation, transition, transform, textshadow, boxsizing, boxshadow. Au no-gradient, no-borderimage nk...
  • Wengine:
    • pc, mobile (yasiyo ya simu ya kompyuta au simu kifaa yoyote)
    • desktop, tablet, phone (kwa mujibu wa dirisha upana)
    • landscape, portrait (viewport Mwelekeo, kwa mujibu wa dirisha upana na urefu)
    • retina, touchscreen (au no-retina, no-touchscreen )
    • cookie, flash, java (au no-cookie, no-flash, no-java )

JavaScript API

  • browser.is_modern - anarudi kweli kama ni kivinjari cha kisasa. Inategemea kama browser inasaidia mali CSS3 mpito
  • browser.is_old - kinyume cha browser.is_modern
  • browser.is_mobile - anarudi kweli kama ni simu ya mkononi
  • browser.is_pc - kompyuta yoyote yasiyo ya muziki, ikiwa ni pamoja na Mac OS
  • browser.is_desktop - dirisha upana 980px na zaidi
  • browser.is_tablet - dirisha upana 768px 979px kwa
  • browser.is_phone - dirisha upana ni 767px au chini
  • browser.is_retina - anarudi kweli kama ni Retina kuonyesha
  • browser.is_touchscreen - - anarudi kweli kama ni touchscreen kifaa
  • browser.name - jina la browser
  • browser.NAME - kama browser.ie, browser.firefox nk anarudi kweli au kisichojulikana
  • browser.nameFull - anarudi jina kamili ya browser kama "Firefox", "Internet Explorer" nk
  • browser.version - toleo la browser
  • browser.layout - jina la injini mpangilio, kama "webkit", "gecko", "Trident", "presto", "khtml" au "haijulikani"
  • browser.LAYOUT_NAME - kama browser.webkit, browser.gecko nk anarudi kweli au kisichojulikana
  • browser.layoutFull - jina kamili ya injini mpangilio, kama "WebKit", "Gecko", "Trident", "Presto", "KHTML" au "Unknown"
  • browser.layoutVersion - toleo la injini mpangilio, kama "533.1" kwa ajili ya WebKit / 533.1, "18.0" kwa ajili Gecko / 18.0, "18.0a1pre" kwa ajili Gecko 18.0 Alpha 1 kabla nk
  • browser.os - anarudi jina fupi ya mfumo wa uendeshaji, kama "madirisha", "MacOS", "CROs", "Unix", "linux", "iOS", "android" au "haijulikani"
  • browser.osFull - anarudi jina kamili ya mfumo wa uendeshaji, kama "Madirisha", "Mac OS X", "CrOS", "Unix", "Linux", "iOS", "Android" au "Unknown"
  • browser.osVersion - anarudi kamba OS version, kama "7" kwa ajili ya Windows 7, "4.2" kwa ajili ya Android 4.2 nk
  • browser.device - anarudi jina fupi ya simu kifaa, kama "iphone", "ipad", "iPod", "Blackberry" au "nitawasha"
  • browser.deviceFull - anarudi jina kamili ya simu kifaa, kama "iPhone", "iPad", "iPod", "Blackberry" au "washa"
  • browser.supports.CSS_PROP - kama browser.supports.opacity, browser.supports.gradient nk predefined Tu mali ni alowed ( "Kawaida mali CSS" orodha). Tafadhali kumbuka kuwa neno la pili ni lazima mtaji kama textShadow, borderRadius, boxSizing nk
  • browser.mode - anarudi "desktop", "kibao" au "simu" kulingana na upana wa sasa wa dirisha
  • browser.orientation - browser window Mwelekeo kama "mazingira" au "picha"
  • browser.cookieEnabled - anarudi kweli kama cookies kuwezeshwa katika browser
  • browser.flashEnabled - anarudi kweli kama Flash Player imewekwa na enabled browser
  • browser.javaEnabled - anarudi kweli kama JAVA ni imewekwa na enabled browser
  • browser.width() - anarudi upana wa browser
  • browser.height() - anarudi urefu wa browser
  • browser.supports("css-prop") - kuamua kama browser inasaidia mali CSS.

Mamlaka ya Udhibiti msikivu

CSS / JS Browser Determiner ni pia inasaidia msingi utilites msikivu kwa kasi za mkono rafiki maendeleo. Unaweza kutumia CSS selectors kuamua eneo kazi, kibao au jukwaa simu. Ni inaweza kusaidia kama unahitaji msaada msikivu katika Internet Explorer 8 (au chini), ambayo haina inasaidia CSS3 Media Masuali.

Kuishi demo na hati kamili

Changelog

Toleo 2.3 | 6 Februari 2014
- Ndogo bugfixes

Toleo 2.2 | 15 Desemba 2013
- Fixed flash kutambua
- Bugfixes nyingine

Toleo 2.1 | Oktoba 15, 2013
- Fixed kugundua Opera 15 +, IE 11
- Switched nyuma "yaani" mali kutoka "MSIE" katika JavaScript API (hivyo sasa ni browser.ie )

Toleo 2.0.3 | 29 Mei 2013
- Mwelekeo Live (mazingira, picha) update kwa CSS

Toleo 2.0.2 | 24 Mei 2013
- Fixed kugundua vifaa simu

Toleo 2.0.1 | 11 Mei 2013
- Opera ni kusonga kwa WebKit haraka, hivyo sasa sisi tayari kwa hilo!
- Fixed uhusiano na nyaraka (wakiongozwa na uwanja mpya)

Toleo 2.0 | 23 Jan 2013
- Jumla ya reworking almoust kutoka ardhini hadi
- Hata nguvu zaidi. Aliongeza msaada wa browsers mpya, OS, injini layout, vifaa na makala nyingine
- New kutambua algorithm
- Sasa unaweza kuchunguza toleo la OS na injini mpangilio na wote CSS na JavaScript
- Updated demos
- New kupima chombo aliongeza (tazama hakikisho Live)
- Badala Firefox browser jina kutoka ".mozilla" na ".firefox"
- Badala "yaani" mali na "MSIE" katika JavaScript API (hivyo sasa ni browser.msie )
- Badala Mac OS kutoka ".mac" na ".macos"
- 4kb moja (minified)!

Toleo 1.0.5 | Januari 1, 2013
- Fixed dirisha upana kutambua

Toleo 1.0.4 | 28 Desemba 2012
- Ongezeko la OS: win8, win7, Vista, XP
- Ongezeko la Retina maonyesho kutambua

Toleo 1.0.3 | 27 Desemba 2012
- Ongezeko la iOS kutambua msaada
- Fixed mdudu muhimu na Safari browsers
- Vinginevyo mabadiliko na bug fixes


Download
Vipengele vingine katika jamii hiiKila sehemu ya mwandishi huyu
MaoniMara kwa mara kuulizwa maswali na majibu

Mali

Kuundwa:
26 Desemba 12

Badiliko la Mwisho:
23 Juni 14

Sambamba Browsers:
IE6, IE7, IE8, IE9, IE10, Firefox, Safari, Opera, Chrome, Files Pamoja

Keywords

eCommerce, eCommerce, Vitu wote, browser kuchunguza, CSS, JavaScript, script, selector, userAgent