From b931e74a59f6e62cd1817a34b57b25ef378c8679 Mon Sep 17 00:00:00 2001 From: Amjad Ben Hedhili Date: Sun, 4 Sep 2022 06:38:38 +0100 Subject: Cleanup dochack (#20299) * Cleanup dochack * xxx * More cleanups --- tools/dochack/dochack.nim | 124 ++++++++++++++-------------------------------- 1 file changed, 36 insertions(+), 88 deletions(-) diff --git a/tools/dochack/dochack.nim b/tools/dochack/dochack.nim index 5ba42e9c1..1a5c86253 100644 --- a/tools/dochack/dochack.nim +++ b/tools/dochack/dochack.nim @@ -15,56 +15,37 @@ proc onDOMLoaded(e: Event) {.exportc.} = # set theme select value document.getElementById("theme-select").value = window.localStorage.getItem("theme") - var pragmaDots = document.getElementsByClassName("pragmadots") - for i in 0..", "text/html"); - `stuff` = doc.documentElement; """.} db = stuff.getElementsByClass"reference" @@ -325,7 +273,7 @@ proc dosearch(value: cstring): Element = var matches: seq[(Node, int)] = @[] for i in 0..