Created
October 18, 2016 03:50
-
-
Save itsazzad/4800e39741b4b7b84b922f5645e7632c to your computer and use it in GitHub Desktop.
Get missing serial
This file contains hidden or 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 script = document.createElement('script');script.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js";document.getElementsByTagName('head')[0].appendChild(script); | |
var items=[]; | |
$('#target tr').each(function(){ | |
items.push($(this).find('td:first font').text().split(" ")[0].split("-")[1]); | |
}); | |
var count=0; | |
for(var i = 0; i < items.length; i++) { | |
if(items[i] - items[i+1] != 1) { | |
console.log(items[i+1]+'-'+items[i]); | |
count++; | |
} | |
} | |
console.log(count); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment