Countdown (FREE)

In this section you can share self-made extensions with other users of WYSIWYG Web Builder.

There are already more than 250 extensions available!
User avatar
Adendum
 
 
Posts: 933
Joined: Fri Apr 22, 2011 4:50 pm
Location: London, UK
Contact:

Countdown (FREE)

Post by Adendum » Mon Sep 16, 2013 6:46 pm

Countdown is based on a re-worked version of Martin Angelov's jQuery and CSS3 tutorial at Tutorialzine.

This extension uses jQuery 1.7.2 or higher and should work perfectly in WWB8 or higher. CSS3 coding is used so not all browsers will play nicely but any modern browser should be fine.
CountdownPost.jpg
I have not produced a HELP file as the extension should be simple enough to use without instructions...simply read the notes for each property.
Countdown-Properties.jpg
Demo.

Have fun!
Aditerum - No longer supporting WWB extensions - refer to CJS.
Aditerum - No longer supporting WWB templates - refer to CJS.


WWB 9.4; Ext Builder 4.2; Windows 10 64bit; Intel Core i7-3770 Processor 3.40Ghz; 16.0Gb RAM
Death to Internet Explorer!

User avatar
zinc
 
 
Posts: 1564
Joined: Sat Dec 08, 2007 3:06 pm
Location: London, United Kingdom

Re: Countdown (FREE)

Post by zinc » Tue Sep 17, 2013 9:04 am

Paul;
It would great if there was no dependency on

<link rel="stylesheet" href="http://fonts.googleapis.com/css?family= ... densed:300" />

Otherwise a great job as always.
B

User avatar
Adendum
 
 
Posts: 933
Joined: Fri Apr 22, 2011 4:50 pm
Location: London, UK
Contact:

Re: Countdown (FREE)

Post by Adendum » Tue Sep 17, 2013 9:21 am

Yup...I did try using standard fonts but for the life of me I couldn't get it to work...in as much as every font looked the same. I'll keep trying anyway.
Aditerum - No longer supporting WWB extensions - refer to CJS.
Aditerum - No longer supporting WWB templates - refer to CJS.


WWB 9.4; Ext Builder 4.2; Windows 10 64bit; Intel Core i7-3770 Processor 3.40Ghz; 16.0Gb RAM
Death to Internet Explorer!

User avatar
Adendum
 
 
Posts: 933
Joined: Fri Apr 22, 2011 4:50 pm
Location: London, UK
Contact:

Re: Countdown (FREE)

Post by Adendum » Tue Sep 17, 2013 9:27 am

The script adds a message under the countdown section that can be hidden or customised however there are some words (Day/s, Hour/s, Minute/s and Second/s) that are currently hard coded in the script:-

Code: Select all

			message += days + " day" + ( days==1 ? '':'s' ) + ", ";
			message += hours + " hour" + ( hours==1 ? '':'s' ) + ", ";
			message += minutes + " minute" + ( minutes==1 ? '':'s' ) + " and ";
			message += seconds + " second" + ( seconds==1 ? '':'s' ) + " ";
I can provide an update that allows users to edit these to their own language however I need some feedback as to how any other languages handle the plurals. For example a Spanish user will enter Dia, Hora, Minuto and Secondo and as far as I remember the plural remains Dias, Horas, Minutos and Secondos.

But how will other users (France, Germany, Netherlands, Bulgaria, Russia, Greece and so on) require plurals to be handled? I guess we all don't just add an "S" to the end of the words???????????????????
Aditerum - No longer supporting WWB extensions - refer to CJS.
Aditerum - No longer supporting WWB templates - refer to CJS.


WWB 9.4; Ext Builder 4.2; Windows 10 64bit; Intel Core i7-3770 Processor 3.40Ghz; 16.0Gb RAM
Death to Internet Explorer!

User avatar
Adendum
 
 
Posts: 933
Joined: Fri Apr 22, 2011 4:50 pm
Location: London, UK
Contact:

Re: Countdown (FREE)

Post by Adendum » Tue Sep 17, 2013 9:39 am

I just ran through Google Translate using DAY and DAYS in all the European languages and I can see that MOST of them do simply add a letter or letters to pluralise the word e.g. dag, dagar. However some languages such as Polish have totally different words e,g, dzien and dni.

So how do you guys want it? Hard coded in English or an option to regionalise although it will be limited for some languages (those that use different words for plural forms).
Aditerum - No longer supporting WWB extensions - refer to CJS.
Aditerum - No longer supporting WWB templates - refer to CJS.


WWB 9.4; Ext Builder 4.2; Windows 10 64bit; Intel Core i7-3770 Processor 3.40Ghz; 16.0Gb RAM
Death to Internet Explorer!

jordan
 
 
Posts: 846
Joined: Tue Jun 26, 2007 1:56 pm
Contact:

Re: Countdown (FREE)

Post by jordan » Tue Sep 17, 2013 11:11 pm

hehe faster then your shadow I see, must be the fastest build and release ever, took the countdown literal . :mrgreen: .
nice nice Paul – +TNX for your update mail:)

ps:
I think you can change the font of the digits by adding it to the css - .digit – class
.digit{
font-family:Arial; <––
position:absolute;
display:block;
etc
}

language quest?
why not create variables for each, there are only 8 options if you change the script a bit?

User avatar
Adendum
 
 
Posts: 933
Joined: Fri Apr 22, 2011 4:50 pm
Location: London, UK
Contact:

Re: Countdown (FREE) ** Updated **

Post by Adendum » Wed Sep 18, 2013 4:24 pm

v1.0.0.1 released 18/09/13 (17:22)

Added properties to change the words in the message that handle Day/s, Hour/s, Minute/s and Second/s - works for MOST other languages!
Countdown-German.jpg
Aditerum - No longer supporting WWB extensions - refer to CJS.
Aditerum - No longer supporting WWB templates - refer to CJS.


WWB 9.4; Ext Builder 4.2; Windows 10 64bit; Intel Core i7-3770 Processor 3.40Ghz; 16.0Gb RAM
Death to Internet Explorer!

Hrankov
 
 
Posts: 45
Joined: Sun Feb 13, 2011 7:15 am

Re: Countdown (FREE)

Post by Hrankov » Sat Sep 21, 2013 11:46 am

Some languages (like Bulgarian) have different words for singular and plural.
Is it not logical solution to use two different words for it?
Singular: DAY
Plural: DAYS (and not just add a simple "S")

So we can use it in every language.

Thanks

presto
 
 
Posts: 300
Joined: Tue Aug 24, 2010 5:19 pm

Re: Countdown (FREE)

Post by presto » Sat Sep 21, 2013 4:24 pm

I did not try your extension yet, but is there a possibility to count down to a specific hour and/or minute? E. g. at tomorrows election in Germany the polling stations will be closed at 6:00 pm (18:00) and the first prognoses of the result will only be allowed to be announced at this specific moment everybody is waiting for.

User avatar
ColinM
 
 
Posts: 1060
Joined: Wed Feb 09, 2011 3:40 am
Location: Western Australia
Contact:

Re: Countdown (FREE)

Post by ColinM » Sat Sep 21, 2013 10:01 pm

Very nice Paul - can't think of use for it yet, but will add it to my Website Master Document TOC.
Yours truly
Colin M
Western Australia
FORUM MODERATOR
Please think before you post, be polite, don't hijack threads and above all please respect Pablo's huge effort!
My Website

User avatar
Adendum
 
 
Posts: 933
Joined: Fri Apr 22, 2011 4:50 pm
Location: London, UK
Contact:

Re: Countdown (FREE)

Post by Adendum » Sun Sep 22, 2013 1:36 pm

Hrankov wrote:Some languages (like Bulgarian) have different words for singular and plural.
Is it not logical solution to use two different words for it?
Singular: DAY
Plural: DAYS (and not just add a simple "S")

So we can use it in every language.

Thanks
If some wants to write the jQuery code to do that I'll modify the extension.
Aditerum - No longer supporting WWB extensions - refer to CJS.
Aditerum - No longer supporting WWB templates - refer to CJS.


WWB 9.4; Ext Builder 4.2; Windows 10 64bit; Intel Core i7-3770 Processor 3.40Ghz; 16.0Gb RAM
Death to Internet Explorer!

User avatar
Adendum
 
 
Posts: 933
Joined: Fri Apr 22, 2011 4:50 pm
Location: London, UK
Contact:

Re: Countdown (FREE)

Post by Adendum » Sun Sep 22, 2013 1:37 pm

presto wrote:I did not try your extension yet, but is there a possibility to count down to a specific hour and/or minute? E. g. at tomorrows election in Germany the polling stations will be closed at 6:00 pm (18:00) and the first prognoses of the result will only be allowed to be announced at this specific moment everybody is waiting for.
Not in it's current form. You'd just have to set the days to 0 and then set the hours.
Aditerum - No longer supporting WWB extensions - refer to CJS.
Aditerum - No longer supporting WWB templates - refer to CJS.


WWB 9.4; Ext Builder 4.2; Windows 10 64bit; Intel Core i7-3770 Processor 3.40Ghz; 16.0Gb RAM
Death to Internet Explorer!

Redneckheaven
 
 
Posts: 10
Joined: Sun Jan 24, 2010 3:59 pm

Re: Countdown (FREE)

Post by Redneckheaven » Thu Nov 07, 2013 1:21 am

I installed the countdown extension and restarted Web Builder. Extension didn't show up in extensions. I restarted my computer and opened web builder and still no countdown timer. Went to web builder folder the extension is there. Any idea why it doesn't show up in extensions, I have only 17 extensions installed.

User avatar
BaconFries
 
 
Posts: 4477
Joined: Thu Aug 16, 2007 7:32 pm

Re: Countdown (FREE)

Post by BaconFries » Thu Nov 07, 2013 7:16 pm

@Redneckheaven... Adendum (Paul) I know is now Holiday (Vacation) so he may not read this. What I would ask you is this what version of WB are you using?. If you are using WB 8 then this will explain why you cannot use it, this is because the extension may have been made/rebuilt using the very latest version of the Ext Builder 4.2 which means it will only work with WB9 and higher.

Redneckheaven
 
 
Posts: 10
Joined: Sun Jan 24, 2010 3:59 pm

Re: Countdown (FREE)

Post by Redneckheaven » Fri Nov 08, 2013 9:36 pm

BaconFries wrote:@Redneckheaven... Adendum (Paul) I know is now Holiday (Vacation) so he may not read this. What I would ask you is this what version of WB are you using?. If you are using WB 8 then this will explain why you cannot use it, this is because the extension may have been made/rebuilt using the very latest version of the Ext Builder 4.2 which means it will only work with WB9 and higher.
BaconFries;
I figured that might be the problem. I'm using 8.5.9. Looks like I need to upgrade to 9 which I probably will in a week or two. Thank you for your reply.

Removed the question. Sorry about that wasn't thinking when I posted.
Last edited by Redneckheaven on Fri Nov 08, 2013 11:58 pm, edited 1 time in total.

Locked

Who is online

Users browsing this forum: No registered users and 4 guests