mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 16:08:47 +03:00
prepare for PR to gh-pages
This commit is contained in:
parent
cbd90a176b
commit
060bceca54
@ -6,7 +6,7 @@
|
|||||||
<meta name="author" content="Faisalman" />
|
<meta name="author" content="Faisalman" />
|
||||||
<meta name="description" content="UAParser.js - JavaScript library to detect browser, engine, OS, CPU, and device type/model from userAgent string. Supports browser & node.js environment. Also available as jQuery/Zepto plugin, Bower/Meteor package, RequireJS/AMD module, & CLI tool." />
|
<meta name="description" content="UAParser.js - JavaScript library to detect browser, engine, OS, CPU, and device type/model from userAgent string. Supports browser & node.js environment. Also available as jQuery/Zepto plugin, Bower/Meteor package, RequireJS/AMD module, & CLI tool." />
|
||||||
<meta name="keywords" content="browser detection, user agent, parser, javascript, detect, details, new, browser, engine, mobile, device, operating system" />
|
<meta name="keywords" content="browser detection, user agent, parser, javascript, detect, details, new, browser, engine, mobile, device, operating system" />
|
||||||
<style>
|
<style>
|
||||||
@import url("https://fonts.googleapis.com/css?family=Lekton");
|
@import url("https://fonts.googleapis.com/css?family=Lekton");
|
||||||
* {
|
* {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -295,7 +295,7 @@
|
|||||||
function trans(key) {
|
function trans(key) {
|
||||||
var matchLang = location.search.match(/lang=([a-z]+)/);
|
var matchLang = location.search.match(/lang=([a-z]+)/);
|
||||||
var queryLang = matchLang ? matchLang[1] : null;
|
var queryLang = matchLang ? matchLang[1] : null;
|
||||||
var locale = queryLang || navigator.language || navigator.userLanguage;
|
var locale = queryLang || navigator.language || navigator.userLanguage;
|
||||||
var translations = getTranslations();
|
var translations = getTranslations();
|
||||||
|
|
||||||
if (!translations) {
|
if (!translations) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user