diff --git a/public/home/search.js b/public/home/search.js index 8a8e940cb..e23d27549 100644 --- a/public/home/search.js +++ b/public/home/search.js @@ -129,32 +129,6 @@ function search(){ } } -function parseLog(){ - let jsonValue = document.getElementById("json_value").value; - let jsonObj = JSON.parse(jsonValue); - let podRoleName = jsonObj["podRoleName"]; - let html = ""; - if (podRoleName != null){ - let task0 = podRoleName["task1-0"]; - let podEvents = jsonObj["podEvents"]; - let podEventArray = podEvents[task0]; - if(podEventArray != null){ - for(int i=0; i < podEventArray.length;i++){ - html +="

" +podEventArray[i]["reason"] + "

"; - html +="

" +podEventArray[i]["message"] + "

"; - html +="

" +podEventArray[i]["action"] + "

"; - } - } - let extras= jsonObj["extras"]; - if(extras != null){ - html +="

" +extras["reason"] + "

"; - html +="

" +extras["message"] + "

"; - html +="

" +extras["action"] + "

"; - } - document.getElementById("info_display").innerHTML=html; - } - } - function emptySearch(){ initDiv(false); initPageInfo();