Difference between revisions of "Widget:GraphInteractivity"

From Hackerspace ACKspace
Jump to: navigation, search
m (added interval)
m (wait, milisecond interval makes no sense -> second)
 
Line 41: Line 41:
 
         if ( g_interval )
 
         if ( g_interval )
 
         {
 
         {
    setInterval( fetchState, g_interval );
+
    setInterval( fetchState, g_interval * 1000 );
 
    fetchState( );
 
    fetchState( );
 
         }
 
         }

Latest revision as of 18:13, 4 February 2019

This widget allows you to display the Space API data (provided as JSON)

Created by Xopr

Using this widget

To insert this widget, use the following code:

{{#widget:GraphInteractivity}}

(supported field for SpaceAPI is interval This will add javascript logic that enables 'interactivity' to graphs.

Copy to your site

To use this widget on your site, just install MediaWiki Widgets extension and copy full source code of this page to your wiki as Widget:GraphInteractivity article.