From 5bda2a741365109251aa679fc30c5ce703b2be88 Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 11 Apr 2022 15:13:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- public/home/search.js | 26 -------------------------- 1 file changed, 26 deletions(-) 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();