From 21544944d2114f2c99b24b6e23cd1051d3dd40e7 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Sat, 22 Oct 2022 13:57:46 +0400 Subject: [PATCH] remove Chuck Norris widget (not functional) --- main/icndb-widget.lua | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 main/icndb-widget.lua diff --git a/main/icndb-widget.lua b/main/icndb-widget.lua deleted file mode 100644 index 731d042..0000000 --- a/main/icndb-widget.lua +++ /dev/null @@ -1,22 +0,0 @@ --- name = "Chuck Norris jokes" --- description = "icndb.com" --- data_source = "icndb.com" --- type = "widget" --- author = "Evgeny Zobnin (zobnin@gmail.com)" --- version = "1.0" --- foldable = "false" - -function on_alarm() - http:get("http://api.icndb.com/jokes/random") -end - -function on_network_result(result) - joke = ajson:get_value(result, "object object:value string:joke") - ui:show_text(joke) -end - -function on_click() - if joke ~= nil then - system:copy_to_clipboard(joke) - end -end