Difference between revisions of "Widget:Calendar"

From Hackerspace ACKspace
Jump to: navigation, search
(fixed bugs, removed category)
m (fixed bugs)
Line 96: Line 96:
 
                 row.appendChild( document.createElement( "th" ) ).appendChild( document.createTextNode( this._arrWeekDays[ d ] ) );
 
                 row.appendChild( document.createElement( "th" ) ).appendChild( document.createTextNode( this._arrWeekDays[ d ] ) );
 
          
 
          
             for ( y = 0; y < 6; y++ )
+
             for ( var y = 0; y < 6; y++ )
 
             {
 
             {
 
                 // create row
 
                 // create row
Line 103: Line 103:
 
                     row.appendChild( document.createElement( "td" ) ).appendChild( document.createTextNode( "(" + curDate.getWeek() + ")" ) );
 
                     row.appendChild( document.createElement( "td" ) ).appendChild( document.createTextNode( "(" + curDate.getWeek() + ")" ) );
 
          
 
          
                 for ( x = 0; x < 7; x++ )
+
                 for ( var x = 0; x < 7; x++ )
 
                 {
 
                 {
 
                     // create data
 
                     // create data

Revision as of 16:00, 25 February 2016

This widget allows you to display a calendar

Created by Xopr

Using this widget

To insert this widget, use the following code:

{{#widget:Calendar
|date=march 1 2011
}}

This will give the following result:

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