clock plugin

clock plugin by Luis Machuca B.
Display a clock in DokuWiki

Last updated on 2008-12-24. Provides Syntax.
No compatibility info given!

Tagged with clock, time.

No longer under experimental!

Welcome to clock, a simple yet functional attempt to display a clock inside DokuWiki. Using only the basis of PHP and JavaScript, as well as some pretty basic CSS styling… and voilà: the current time, in your browser.

Syntax

Just do in a line of its own:

{{clock}}

Details:

  • The plugin syntax takes no parameters.
  • Configuration is available via the Configuration Manager.

Download and Installation

To download and install this plugin point your DokuWiki's Plugin Manager to the following URL: dw-plugin-clock-latest.zip — this link always points to the most recent release.

It is recommended that you clean your Wiki's cache after installing this plugin.

Other Details

Demo

:!: Demo site is up (although, actually, it's the wiki navigation that is the demo for this plugin).

Note language is Spanish but online translators shall do a good job with it.

Known Issues

Only one instance of the clock is allowed to exist in a DokuWiki page. This is by design.

The plugin works correctly with the major releases of both Opera and Firefox. I won't bother to test IE, however, it should render OK even in that attempt of a browser. Note that JavaScript support is required for the plugin to work. If you're using Firefox plugins such as “NoScript” in “ultimate paranoid” mode, you'll see no clock, instead a tag only. Make sure to at least ”allow scripts from the same site” for the clock to work.

Opera 9.5 beta versions have a JS issue where getSeconds() is not correctly implemented, causing the clock to display either ”-1” or ” ” (empty) seconds. It doesn't matter, really: at this point you should be using the 9.6 release.

Source Code

Download and unpack from the links above to get a view of the Source Code.

The Major Release

The following improvements are planned for the major release (v.1.2):

  • Localization1).
  • Code clarity.
  • AM/PM format option.
  • Correct @font-face support.

When will the major be released? Whenever it's ready.

Other Developments

Other Plugins by
Luis Machuca:
plugin:progrecss
plugin:tooltip
plugin:clock

Discussion

Do you have a question? Using Mosaic? Does the clock actually work in Links? Have an urge to beat me to a pulp unless I release the release?

No worries! Leave your questions here and I will try to answer as politely as I can to avoid being beaten to a pulp.

1) right now only English and Spanish are available
 
plugin/clock.txt · Last modified: 2009/01/04 09:55 by 67.170.0.207
 

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported

Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsDarcsXRefTranslate