| /******************************************************************************* |
| * Copyright (c) 2017 Eclipse Foundation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Eric Poirier (Eclipse Foundation) - Initial implementation |
| *******************************************************************************/ |
| |
| $(function() { |
| |
| // Increment the stats number from 0 to the specified value |
| $('.stats-item-digit').each(function() { |
| $(this).prop('Count', 0).animate({ |
| Count: $(this).text() |
| },{ |
| duration: 1000, |
| step: function(number) { |
| $(this).text(Math.ceil(number)); |
| } |
| }); |
| }); |
| |
| }); |