From 0e5a826935cd1e5ef1e3061d029e2aafea038f47 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Tue, 26 Sep 2017 14:18:22 +0100 Subject: Adding --- search/search.js | 102 ++++++++++++++++++++++--------------------------------- 1 file changed, 40 insertions(+), 62 deletions(-) (limited to 'search/search.js') diff --git a/search/search.js b/search/search.js index 56888788..dedce3bf 100644 --- a/search/search.js +++ b/search/search.js @@ -1,40 +1,3 @@ -// Search script generated by doxygen -// Copyright (C) 2009 by Dimitri van Heesch. - -// The code in this file is loosly based on main.js, part of Natural Docs, -// which is Copyright (C) 2003-2008 Greg Valure -// Natural Docs is licensed under the GPL. - -var indexSectionsWithContent = -{ - 0: "abcdefghiklmnopqrstuvwxy~", - 1: "bcgimprstuvw", - 2: "y", - 3: "bcgimprstvwy", - 4: "abcdefghiklmnopqrstuvwxy~", - 5: "abcdfghikmnoprstuvwxy", - 6: "sv", - 7: "w", - 8: "bfhs", - 9: "d", - 10: "bdpty" -}; - -var indexSectionNames = -{ - 0: "all", - 1: "classes", - 2: "namespaces", - 3: "files", - 4: "functions", - 5: "variables", - 6: "typedefs", - 7: "enums", - 8: "enumvalues", - 9: "related", - 10: "pages" -}; - function convertToId(search) { var result = ''; @@ -46,11 +9,11 @@ function convertToId(search) { result+=c; } - else if (cn<16) + else if (cn<16) { result+="_0"+cn.toString(16); } - else + else { result+="_"+cn.toString(16); } @@ -89,14 +52,14 @@ function getYPos(item) /* A class handling everything associated with the search panel. Parameters: - name - The name of the global variable that will be + name - The name of the global variable that will be storing this instance. Is needed to be able to set timeouts. resultPath - path to use for external files */ function SearchBox(name, resultsPath, inFrame, label) { if (!name || !resultsPath) { alert("Missing parameters to SearchBox."); } - + // ---------- Instance variables this.name = name; this.resultsPath = resultsPath; @@ -173,7 +136,7 @@ function SearchBox(name, resultsPath, inFrame, label) } // stop selection hide timer - if (this.hideTimeout) + if (this.hideTimeout) { clearTimeout(this.hideTimeout); this.hideTimeout=0; @@ -202,7 +165,7 @@ function SearchBox(name, resultsPath, inFrame, label) if (e.shiftKey==1) { this.OnSearchSelectShow(); - var win=this.DOMSearchSelectWindow(); + var win=this.DOMSearchSelectWindow(); for (i=0;i