Example #1
0
			var interval = setInterval(function() {
				/* As long as the page is displayed */
				if ($('.view-conference-wrapper').size() > 0 && target.is(':visible')) {
					target.html(monster.util.friendlyTimer(duration++));
				} else {
					clearInterval(interval);
				}
			}, 1000);
Example #2
0
		conferenceViewerStartTimer: function(target, pDuration) {
			var self = this,
				duration = pDuration || 0;

			target.html(monster.util.friendlyTimer(duration));

			var interval = setInterval(function() {
				/* As long as the page is displayed */
				if ($('.view-conference-wrapper').size() > 0 && target.is(':visible')) {
					target.html(monster.util.friendlyTimer(duration++));
				} else {
					clearInterval(interval);
				}
			}, 1000);

			return interval;
		},