/** This file is part of KCFinder project * * @desc User Agent jQuery Plugin * @package KCFinder * @version 3.12 * @author Pavel Tzonkov <sunhater@sunhater.com> * @copyright 2010-2014 KCFinder Project * @license http://opensource.org/licenses/GPL-3.0 GPLv3 * @license http://opensource.org/licenses/LGPL-3.0 LGPLv3 * @link http://kcfinder.sunhater.com */ (function($) { $.agent = {}; var agent = " " + navigator.userAgent, patterns = [ { expr: / [a-z]+\/[0-9a-z\.]+/ig, delim: "/" }, { expr: / [a-z]+:[0-9a-z\.]+/ig, delim: ":", keys: ["rv", "version"] }, { expr: / [a-z]+\s+[0-9a-z\.]+/ig, delim: /\s+/, keys: ["opera", "msie", "firefox", "android"] }, { expr: /[ \/\(]([a-z0-9_]+)[ ;\)\/]/ig, keys: "i386|i486|i586|i686|x86|x64|x86_64|intel|ppc|powerpc|windows|macintosh|darwin|unix|linux|sunos|android|iphone|ipad|ipod|amiga|amigaos|beos|wii|playstation|gentoo|fedora|slackware|ubuntu|archlinux|debian|mint|mageia|mandriva|freebsd|openbsd|netbsd|solaris|opensolaris|x11|mobile|phone".split('|'), sub: "platform" } ]; $.each(patterns, function(i, pattern) { var elements = agent.match(pattern.expr); if (elements === null) return; $.each(elements, function(j, ag) { ag = ag.replace(/^\s+/, "").toLowerCase(); var key = ag.replace(pattern.expr, "$1"), val = true; if (typeof pattern.delim != "undefined") { ag = ag.split(pattern.delim); key = ag[0]; val = ag[1]; } if (typeof pattern.keys != "undefined") { var exists = false, k = 0; for (; k < pattern.keys.length; k++) if (pattern.keys[k] == key) { exists = true; break; } if (!exists) return; } if (typeof pattern.sub != "undefined") { if (typeof $.agent[pattern.sub] != "object") $.agent[pattern.sub] = {}; if (typeof $.agent[pattern.sub][key] == "undefined") $.agent[pattern.sub][key] = val; } else if (typeof $.agent[key] == "undefined") $.agent[key] = val; }); }); if (!$.agent.platform) $.agent.platform = {}; // Check for mobile device $.mobile = false; var keys = "mobile|android|iphone|ipad|ipod|iemobile|phone".split('|'); a = $.agent; $.each([a, a.platform], function(i, p) { for (var j = 0; j < keys.length; j++) { if (p[keys[j]]) { $.mobile = true; return false; } } }); })(jQuery);
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
000._jquery.js | File | 94.12 KB | 0644 |
|
002._jqueryui.js | File | 223.18 KB | 0644 |
|
006.jquery.transForm.js | File | 36.02 KB | 0644 |
|
006.jquery.uniform.js | File | 35.26 KB | 0644 |
|
010.jquery.fixes.js | File | 1.09 KB | 0644 |
|
020.jquery.rightClick.js | File | 844 B | 0644 |
|
021.jquery.taphold.js | File | 4.55 KB | 0644 |
|
022.jquery.shDropUpload.js | File | 13.03 KB | 0644 |
|
029.jquery.agent.js | File | 2.96 KB | 0644 |
|
030.jquery.helper.js | File | 9.55 KB | 0644 |
|
031.jquery.md5.js | File | 9.27 KB | 0644 |
|
040.object.js | File | 569 B | 0644 |
|
041.dialogs.js | File | 5.89 KB | 0644 |
|
050.init.js | File | 8.69 KB | 0644 |
|
060.toolbar.js | File | 10.46 KB | 0644 |
|
070.settings.js | File | 3.02 KB | 0644 |
|
080.files.js | File | 8.06 KB | 0644 |
|
090.folders.js | File | 7.2 KB | 0644 |
|
091.menus.js | File | 20.64 KB | 0644 |
|
091.viewImage.js | File | 7.39 KB | 0644 |
|
100.clipboard.js | File | 6.2 KB | 0644 |
|
110.dropUpload.js | File | 5.51 KB | 0644 |
|
120.misc.js | File | 3.7 KB | 0644 |
|
index.php | File | 549 B | 0644 |
|