From 908f17c4e88b4b98fc4cfc691cbe14fac49446ae Mon Sep 17 00:00:00 2001 From: bmcustodio Date: Sat, 8 Dec 2012 09:46:15 +0000 Subject: [PATCH] Added 'WebFont' 1.1.0. --- ajax/libs/webfont/1.1.0/webfont.js | 42 ++++++++++++++++++++++++++++++ ajax/libs/webfont/package.json | 2 +- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 ajax/libs/webfont/1.1.0/webfont.js diff --git a/ajax/libs/webfont/1.1.0/webfont.js b/ajax/libs/webfont/1.1.0/webfont.js new file mode 100644 index 000000000..99eb57e77 --- /dev/null +++ b/ajax/libs/webfont/1.1.0/webfont.js @@ -0,0 +1,42 @@ +/* + * Copyright 2012 Small Batch, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +;(function(window,document,undefined){ +var i=void 0,k=!0,l=null,n=!1;function p(a){return function(){return this[a]}}var q;function r(a,c,b){var d=2w';a.W=/top/.test(d.getElementsByTagName("a")[0].getAttribute("style"))}a.W?c.setAttribute("style",b):c.style.cssText=b}function B(a){var c=a.z.location.protocol;"about:"==c&&(c=a.G.location.protocol);return"https:"==c?"https:":"http:"};function C(a,c,b,d,e,f,g,j){this.Ba=a;this.Ha=c;this.pa=b;this.oa=d;this.Ea=e;this.Da=f;this.na=g;this.Ia=j}q=C.prototype;q.getName=p("Ba");q.xa=p("Ha");q.Z=p("pa");q.ua=p("oa");q.va=p("Ea");q.wa=p("Da");q.ta=p("na");q.w=p("Ia");function D(a,c){this.a=a;this.o=c}var da=new C("Unknown","Unknown","Unknown","Unknown","Unknown","Unknown",i,n); +D.prototype.parse=function(){var a;if(-1!=this.a.indexOf("MSIE")){a=E(this);var c=F(this),b=G(this.a,/(MSIE [\d\w\.]+)/,1);if(""!=b){var d=b.split(" "),b=d[0],d=d[1],e=H(d),f=H(c);a=new C(b,d,b,d,a,c,I(this.o),"Windows"==a&&6<=e||"Windows Phone"==a&&8<=f)}else a=new C("MSIE","Unknown","MSIE","Unknown",a,c,I(this.o),n)}else if(-1!=this.a.indexOf("Opera"))a:if(c=a="Unknown",b=G(this.a,/(Presto\/[\d\w\.]+)/,1),""!=b?(c=b.split("/"),a=c[0],c=c[1]):(-1!=this.a.indexOf("Gecko")&&(a="Gecko"),b=G(this.a, +/rv:([^\)]+)/,1),""!=b&&(c=b)),-1!=this.a.indexOf("Opera Mini/"))b=G(this.a,/Opera Mini\/([\d\.]+)/,1),""==b&&(b="Unknown"),a=new C("OperaMini",b,a,c,E(this),F(this),I(this.o),n);else{if(-1!=this.a.indexOf("Version/")&&(b=G(this.a,/Version\/([\d\.]+)/,1),""!=b)){a=new C("Opera",b,a,c,E(this),F(this),I(this.o),10<=H(b));break a}b=G(this.a,/Opera[\/ ]([\d\.]+)/,1);a=""!=b?new C("Opera",b,a,c,E(this),F(this),I(this.o),10<=H(b)):new C("Opera","Unknown",a,c,E(this),F(this),I(this.o),n)}else-1!=this.a.indexOf("AppleWebKit")? +(a=E(this),c=F(this),b=G(this.a,/AppleWebKit\/([\d\.\+]+)/,1),""==b&&(b="Unknown"),d="Unknown",-1!=this.a.indexOf("Chrome")||-1!=this.a.indexOf("CrMo")||-1!=this.a.indexOf("CriOS")?d="Chrome":-1!=this.a.indexOf("Safari")?d="Safari":-1!=this.a.indexOf("AdobeAIR")&&(d="AdobeAIR"),e="Unknown",-1!=this.a.indexOf("Version/")?e=G(this.a,/Version\/([\d\.\w]+)/,1):"Chrome"==d?e=G(this.a,/(Chrome|CrMo|CriOS)\/([\d\.]+)/,2):"AdobeAIR"==d&&(e=G(this.a,/AdobeAIR\/([\d\.]+)/,1)),f=n,"AdobeAIR"==d?(f=G(e,/\d+\.(\d+)/, +1),f=2