Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
activeliniennetzplan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aaron J. Seigo
activeliniennetzplan
Commits
5a2a2d27
Commit
5a2a2d27
authored
Apr 09, 2011
by
Aaron J. Seigo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
it lives! we can get the data from a webserver now
parent
3c7117e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
contents/code/main.js
contents/code/main.js
+18
-1
No files found.
contents/code/main.js
View file @
5a2a2d27
// 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)
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment