From 9e2d1ca41dd8a9e076ecaff432f8ebe8578ee2c5 Mon Sep 17 00:00:00 2001 From: Yasin Date: Wed, 11 Jun 2014 10:18:04 -0500 Subject: [PATCH] jfed: added the js locally --- portal/static/js/fed4fire_dtjava_orig.js | 3275 +++++++++++++++++ .../fed4fire/fed4fire_home-view.html | 2 +- 2 files changed, 3276 insertions(+), 1 deletion(-) create mode 100644 portal/static/js/fed4fire_dtjava_orig.js diff --git a/portal/static/js/fed4fire_dtjava_orig.js b/portal/static/js/fed4fire_dtjava_orig.js new file mode 100644 index 00000000..9f3f148e --- /dev/null +++ b/portal/static/js/fed4fire_dtjava_orig.js @@ -0,0 +1,3275 @@ +/* + * Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +/** + The Java Deployment Toolkit is utility to deploy Java content in + the browser as applets or applications using right version of Java. + If needed it can initiate upgrade of user's system to install required + components of Java platform. +

+ Note that some of Deployment Toolkit methods may not be fully operational if + used before web page body is loaded (because DT native plugins could not be instantiated). + If you intend to use it before web page DOM tree is ready then dtjava.js + need to be loaded inside the body element of the page and before use of other DT APIs. + + @module java/deployment_toolkit +*/ +var dtjava = function() { + function notNull(o) { + return (o != undefined && o != null); + } + + function isDef(fn) { + return (fn != null && typeof fn != "undefined"); + } + + //return true if any of patterns from query list is found in the given string + function containsAny(lst, str) { + for (var q = 0; q < lst.length; q++) { + if (str.indexOf(lst[q]) != -1) { + return true; + } + } + return false; + } + + /* Location of static web content - images, javascript files. */ + var jscodebase = (function () { + // - +