Hi Luuk, *,
On Sat, Feb 12, 2011 at 9:52 PM, Luuk <luuk34@gmail.com> wrote:
On 12-02-11 21:08, Florian Effenberger [via Document Foundation Mail
Archive] wrote:
for the Foundation fundraising, I'd also like a countdown script to the
website, counting down remaining days and/or missing money.
Anyone has such a script or can write one so that it can be integrated
in Silverstripe? :-)
i dont know about integrating this in SilverStripe, but this PHP and
SilverStripe is also PHP -based...
This script shows days/hours/mins/seconds to the end of februari 2011
<?php
[...]
echo "$days days, $h hours, $m minutes and $s seconds left......\n";
?>
Too detailed, you certainly don't want to include the seconds in the
generated html (or when it is less than a day, the hours (but the
hours or even minutes are of no interest from my POV)
IMHO it only makes sense to define the #of days via php/the templates
and do more detailed timers in javascript on the client side. Esp.
when it comes to seconds, i.e stuff you expect to update. You don't
want the page to reload every second ...
ciao
Christian
--
Unsubscribe instructions: E-mail to website+help@libreoffice.org
List archive: http://listarchives.libreoffice.org/www/website/
*** All posts to this list are publicly archived for eternity ***
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.