< prev index next >

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/resources/script.js

Print this page




  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 var moduleSearchIndex;
  27 var packageSearchIndex;
  28 var typeSearchIndex;
  29 var memberSearchIndex;
  30 var tagSearchIndex;
  31 function loadScripts(doc, tag) {
  32     createElem(doc, tag, 'jquery/jszip/dist/jszip.js');
  33     createElem(doc, tag, 'jquery/jszip-utils/dist/jszip-utils.js');
  34     if (window.navigator.userAgent.indexOf('MSIE ') > 0 || window.navigator.userAgent.indexOf('Trident/') > 0 ||
  35             window.navigator.userAgent.indexOf('Edge/') > 0) {
  36         createElem(doc, tag, 'jquery/jszip-utils/dist/jszip-utils-ie.js');
  37     }
  38     createElem(doc, tag, 'search.js');
  39 
  40     $.get(pathtoroot + "module-search-index.zip")
  41             .done(function() {
  42                 JSZipUtils.getBinaryContent(pathtoroot + "module-search-index.zip", function(e, data) {
  43                     JSZip.loadAsync(data).then(function(zip){
  44                         zip.file("module-search-index.json").async("text").then(function(content){
  45                             moduleSearchIndex = JSON.parse(content);
  46                         });
  47                     });
  48                 });
  49             });
  50     $.get(pathtoroot + "package-search-index.zip")
  51             .done(function() {
  52                 JSZipUtils.getBinaryContent(pathtoroot + "package-search-index.zip", function(e, data) {
  53                     JSZip.loadAsync(data).then(function(zip){
  54                         zip.file("package-search-index.json").async("text").then(function(content){
  55                             packageSearchIndex = JSON.parse(content);
  56                         });




  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 var moduleSearchIndex;
  27 var packageSearchIndex;
  28 var typeSearchIndex;
  29 var memberSearchIndex;
  30 var tagSearchIndex;
  31 function loadScripts(doc, tag) {
  32     createElem(doc, tag, 'script-dir/jszip/dist/jszip.js');
  33     createElem(doc, tag, 'script-dir/jszip-utils/dist/jszip-utils.js');
  34     if (window.navigator.userAgent.indexOf('MSIE ') > 0 || window.navigator.userAgent.indexOf('Trident/') > 0 ||
  35             window.navigator.userAgent.indexOf('Edge/') > 0) {
  36         createElem(doc, tag, 'script-dir/jszip-utils/dist/jszip-utils-ie.js');
  37     }
  38     createElem(doc, tag, 'search.js');
  39 
  40     $.get(pathtoroot + "module-search-index.zip")
  41             .done(function() {
  42                 JSZipUtils.getBinaryContent(pathtoroot + "module-search-index.zip", function(e, data) {
  43                     JSZip.loadAsync(data).then(function(zip){
  44                         zip.file("module-search-index.json").async("text").then(function(content){
  45                             moduleSearchIndex = JSON.parse(content);
  46                         });
  47                     });
  48                 });
  49             });
  50     $.get(pathtoroot + "package-search-index.zip")
  51             .done(function() {
  52                 JSZipUtils.getBinaryContent(pathtoroot + "package-search-index.zip", function(e, data) {
  53                     JSZip.loadAsync(data).then(function(zip){
  54                         zip.file("package-search-index.json").async("text").then(function(content){
  55                             packageSearchIndex = JSON.parse(content);
  56                         });


< prev index next >