From a520f89fb6c5f8e441623c8afff1f929fc073f26 Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 3 Jan 2021 19:16:53 +0100 Subject: [PATCH] removed nested ternary2 --- extract.py | 0 index.html | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 extract.py diff --git a/extract.py b/extract.py new file mode 100644 index 00000000..e69de29b diff --git a/index.html b/index.html index a56973c9..4bbe493a 100644 --- a/index.html +++ b/index.html @@ -127,7 +127,7 @@ }); allParts.click(function() { - window.location = window.location.origin + "?kanji=" + ((typeof $(this).attr("kvg:original") === typeof undefined) ? ((typeof $(this).attr("kvg:element") === typeof undefined) ? $(this).attr("kvg:phon") : $(this).attr("kvg:element")) : $(this).attr("kvg:original") ); + window.location = window.location.origin + "?kanji=" + $(this).attr("kvg:element"); }); });