useragent.js
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "useragent.js", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A simple project that allows you to display details about a computer's operating system or web browser with a user-agent.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -36,6 +36,6 @@ useragent.js | ||
var ua = USERAGENT.analyze(navigator.userAgent); | ||
document.getElementById("#useragent").innerHTML = ua.ua; | ||
document.getElementById("#browser").innerHTML = ua.browser.full + " (" + ua.browser.name + " VERSION = " + ua.browser.version + " )"; | ||
document.getElementById("#os").innerHTML = ua.os.full + " (" + ua.os.name + " VERSION = " + ua.os.version + " )"; | ||
document.getElementById("#device").innerHTML = ua.device.full; | ||
document.getElementById("useragent").innerHTML = ua.ua; | ||
document.getElementById("browser").innerHTML = ua.browser.full + " (" + ua.browser.name + " VERSION = " + ua.browser.version + " )"; | ||
document.getElementById("os").innerHTML = ua.os.full + " (" + ua.os.name + " VERSION = " + ua.os.version + " )"; | ||
document.getElementById("device").innerHTML = ua.device.full; | ||
})(); | ||
@@ -42,0 +42,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
189051