Is there a module for sale that displays how long somebody has to wait?
Deano, I'm talking to you... :)
Is there a module for sale that displays how long somebody has to wait? Deano, I'm talking to you... :) Peer L. Plaut Executive Director, Single Booklovers Connecting Bookworms Since 1970 |
Already covered in the forums a number of times. https://www.deanbassett.com |
Deano- I was looking for a "timer" so the customer would know how much longer they would have to wait. Like a little java countdown timer... I understand everything else... Thanks! Peer Peer L. Plaut Executive Director, Single Booklovers Connecting Bookworms Since 1970 |
None that i am aware of. https://www.deanbassett.com |
I am working on something... I will post the code when it is complete.. P. Peer L. Plaut Executive Director, Single Booklovers Connecting Bookworms Since 1970 |
Draft of what it will look like.. Peer L. Plaut Executive Director, Single Booklovers Connecting Bookworms Since 1970 |
Draft of what it will look like.. What would be nice if the "click here" to send another message was greyed out or inactive. On the default Dolphin, you can click that at any time. Really neat is to hide the Click Here until the timer counts down and the link can then be shown. Geeks, making the world a better place |
So- this at least lets the user know how much longer they have to wait... note it is hard coded for 60 seconds. <font color="#0000A0"><b>
<script type="text/javascript"> // set minutes var mins = 1;
// calculate the seconds (don't change this! unless time progresses at a different speed for you...) var secs = mins * 60; function countdown() { setTimeout('Decrement()',1000); } function Decrement() { if (document.getElementById) { minutes = document.getElementById("minutes"); seconds = document.getElementById("seconds"); // if less than a minute remaining if (seconds < 59) { seconds.value = secs; } else { minutes.value = getminutes(); seconds.value = getseconds(); } secs--; setTimeout('Decrement()',1000); } } function getminutes() { // minutes is seconds divided by 60, rounded down mins = Math.floor(secs / 60); return mins; } function getseconds() { // take mins remaining (as seconds) away from total seconds remaining return secs-Math.round(mins *60); } </script> </head> <body>
<div id="timer"> You must wait <input id="minutes" type="text" style="width: 14px; border: none; background-color:none; font-size: 16px; font-weight: bold;"> minutes and <input id="seconds" type="text" style="width: 26px; border: none; background-color:none; font-size: 16px; font-weight: bold;"> seconds before you can send another message. </div> <script> countdown(); </script> </b></font> <font color="#0000A0"><b> When the counter hits 0
<a href="{1}">[Click here] </a>
<font color="#0000A0"><b> to send another message.
</b></font>
Peer L. Plaut Executive Director, Single Booklovers Connecting Bookworms Since 1970 |