Cleanup ru scripts
This commit is contained in:
@@ -69,7 +69,7 @@ end
|
||||
|
||||
function on_network_result_history(result,error)
|
||||
history = ""
|
||||
local color = ui:get_colors()
|
||||
local color = aio:colors()
|
||||
local equals = "<font color=\""..color.secondary_text.."\"> = </font>"
|
||||
local xml = require "xml"
|
||||
local t = xml:parse(result)
|
||||
@@ -111,7 +111,7 @@ function get_rates()
|
||||
end
|
||||
|
||||
function get_formatted_change_text(change)
|
||||
local color = ui:get_colors()
|
||||
local color = aio:colors()
|
||||
if change > 0 then
|
||||
return "<font color=\""..color.progress_good.."\"> +"..change.."%</font>"
|
||||
elseif change < 0 then
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
-- version = "1.0"
|
||||
|
||||
function on_alarm()
|
||||
local dateStr = os.date('%Y%m%d')
|
||||
http:get("https://isdayoff.ru/"..dateStr)
|
||||
local dateStr = os.date('%Y%m%d')
|
||||
http:get("https://isdayoff.ru/"..dateStr)
|
||||
end
|
||||
|
||||
function on_network_result(result)
|
||||
|
||||
@@ -11,14 +11,14 @@ function on_alarm()
|
||||
end
|
||||
|
||||
function on_network_result(result)
|
||||
quote = ajson:get_value(result, "object string:quoteText")
|
||||
author = ajson:get_value(result, "object string:quoteAuthor")
|
||||
quote = ajson:read(result, "object string:quoteText")
|
||||
author = ajson:read(result, "object string:quoteAuthor")
|
||||
|
||||
ui:show_lines({ quote }, { author })
|
||||
end
|
||||
|
||||
function on_click()
|
||||
if quote ~= nil then
|
||||
system:copy_to_clipboard(quote)
|
||||
system:to_clipboard(quote)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user