Cleanup samples

This commit is contained in:
Evgeny
2025-05-03 09:45:26 +08:00
parent 296fbee028
commit b9d73171ed
26 changed files with 51 additions and 612 deletions

View File

@@ -14,13 +14,13 @@ function on_alarm()
end
if response.code >= 200 and response.code < 300 then
joke = ajson:get_value(response.body, "object object:value string:joke")
joke = ajson:read(response.body, "object object:value string:joke")
ui:show_text(joke)
end
end
function on_click()
if joke ~= nil then
system:copy_to_clipboard(joke)
system:to_clipboard(joke)
end
end