Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. 12 sie 2011 · I am looking for a way to detect the OS for a downloads page using jQuery or Javascript to recommend specific files for Mac vs Windows. I was hoping to do it without adding another plugin to my page.

  2. 27 maj 2017 · We could use navigator.userAgent to detect os. // mac os function isMacintosh() { return navigator.userAgent.indexOf("Mac") > -1; } // windows function isWindows() { return navigator.userAgent.indexOf("Win") > -1; }

  3. www.npmjs.com › package › ua-parser-jsua-parser-js - npm

    JavaScript library to detect Browser, Engine, OS, CPU, and Device type/model from User-Agent data with relatively small footprint (~17KB minified, ~6KB gzipped) that can be used either in browser (client-side) or node.js (server-side).

  4. 5 paź 2024 · ESLint is an open source project that helps you find and fix problems with your JavaScript code. It doesn't matter if you're writing JavaScript in the browser or on the server, with or without a framework, ESLint can help your code live its best life.

  5. 7 sie 2022 · To alleviate the issue, Object.prototype.hasOwnProperty() can be used in addition to the previous method to check for the property actually being present on the object. Moreover, it can also be used for the opposite, so you can also detect non-existent properties and handle them accordingly.

  6. 19 lip 2019 · How to Detect an Undefined Object Property in JavaScript ? Detecting an undefined object property is the process of determining whether an object contains a certain property, and if it does, whether the value of that property is undefined.

  7. Install Node.js: https://github.com/joyent/node/wiki/Installation. Edit build/config.js with you're preferred oss, devices and browsers. Run node build/build.js --input=build/detect.js --output=build/detect.custom.js. The build script should create a custom version of Detect.js at build/detect.custom.js.

  1. Ludzie szukają również