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