Commit 5a2a2d27 authored by Aaron J. Seigo's avatar Aaron J. Seigo

it lives! we can get the data from a webserver now

parent 3c7117e4
// We create the SVG object; this will cause it to load the file in
// contents/images/tiger.svg
plasmoid.include("fetchUrl.js")
var fetcher = new UrlFetcher
var svg = new PlasmaSvg('routes')
var lines = Array("active", "quick", "contour", "os", "vendor", "hauptbahnhof")
var active = Array("contour-1", "contour-2", "active-1", "active-7")
var active = new Array
function setActive(data)
{
active = data.split("\n")
plasmoid.update()
}
print("EXAMINING FETCHER")
for (i in fetcher) { print("we have: " + i) }
print("EXAMINATION COMPLETE")
fetcher.fetch("http://127.0.0.1/activeprogress", setActive)
//plasmoid.setAction('myAction', i18n('Toggle KDE Logo'), 'plasma')
//http://plasma.kde.org/activestops
plasmoid.paintInterface = function(painter, options, rect)
{
......@@ -19,3 +35,4 @@ plasmoid.paintInterface = function(painter, options, rect)
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment