http://www.conquerclub.com/forum/viewtopic.php?f=527&t=91386&p=3375853#p3375853Re: BOB 5.1.5
Postby rbelgrod on Sat Sep 24, 2011 3:25 pm
when i click edit, it does nothing
ok, that worked great, now all is working ....thanks buddy your a genius
function updateMyGamesClock(elements) {
$(elements).each(function (){
var currentHTML = this.innerHTML,
time = currentHTML.split('<br>')[1].split(':'),.........................change this 1 to a 2
targetDate = new Date(),
secondsLeft = parseInt(time[2],10) + parseInt(time[1],10) * 60 + parseInt(time[0],10) * 60 * 60,
additionalClock = $(this).find('.additionalClock');
targetDate.setTime(targetDate.getTime() + (secondsLeft * 1000));
if (!additionalClock.exists()) {
additionalClock = $('<span class="additionalClock"></span>');
$(this).append('<br />').append(additionalClock);
}
additionalClock.html(getAdditionalClockInfo(targetDate));