Difference between revisions of "Widget:Logo"

From Hackerspace ACKspace
Jump to: navigation, search
(Added reference to the ART-net logo connector(s))
m (Added arbitrary (13) packet data offset (LEDsleeve skips the first 4 LEDs in its packets))
Line 417: Line 417:
 
         var l = d.length;
 
         var l = d.length;
 
         var m = treeLights.length;
 
         var m = treeLights.length;
 +
        var o = 13;
 
         for ( var n=0; n < m; ++n )
 
         for ( var n=0; n < m; ++n )
 
         {
 
         {
             treeLights[n].c = d.slice(3*n,3+3*n);
+
             treeLights[n].c = d.slice(3*(n+o),3+3*(n+o));
 
             treeLights[n].on = true;
 
             treeLights[n].on = true;
 
         }
 
         }
         m *= 3;
+
         m = (m+o)*3;
 
         if ( l > m )
 
         if ( l > m )
 
             ackbit = d.slice(m,m+=3);
 
             ackbit = d.slice(m,m+=3);

Revision as of 11:37, 28 November 2021

This widget creates an animated themed ACKspace logo.

Created by xopr

Using this widget

To insert this widget, use the following code:

{{#widget:Logo
|image=/w/images/e/e9/ACKsmass_logo.png
|width=600px
|height=200px
|padding=8px
|float=right
}}

This will give the following result:

Notes

  • it will display snow in December - March and will show Christmas lights between 7 December and 7 January
  • image is mandatory, the rest is optional.
    it also must be written without protocol since colon (:) is not allowed, and may be relative, for example: //ackspace.nl/w/images/e/e9/ACKsmass_logo.png or /w/images/e/e9/ACKsmass_logo.png
  • You must provide a unit for the sizes (i.e. px, %, etc.)

Also note that there is a chain of browser extensions and apps within the espixelflut github repo:

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:Logo article.