Created
February 12, 2019 15:43
-
-
Save Sekiphp/59649a620dbb2c3fb1972d157c53a3c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sumAdd = 0; | |
var sumRemoved = 0; | |
jQuery('.lines-added').each(function() { | |
sumAdd += parseInt((jQuery(this).html()), 10); | |
}); | |
jQuery('.lines-removed').each(function() { | |
sumRemoved += parseInt((jQuery(this).html()), 10); | |
}); | |
console.log(sumAdd); | |
console.log(sumRemoved); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment