$('.gke').append(' Download');
(function () {
var textFile = null,
makeTextFile = function (text) {
var data = new Blob([text], {type: 'text/plain'});
if (textFile !== null) {
window.URL.revokeObjectURL(textFile);
}
textFile = window.URL.createObjectURL(data);
return textFile;
};
var create = document.getElementById('create'),
textbox = document.getElementById('textbox');
create.addEventListener('click', function () {
var link = document.getElementById('downloadlink');
link.href = makeTextFile(localStorage.getItem('gr-88'));
link.style.display = 'block';
}, false);
})();
var gr_88 = []
var gr_iter = 1;
function scrollGG(hhh){
$('.Sic').children('div').each(function(i){
if(i<30){
var tmp = $(this).data('id')
if(tmp.length == 21){
tmp = tmp+""
gr_88.push(tmp);
$(this).remove()
}
}
})
if(gr_iter%5==0){
console.log(gr_88.length);
localStorage.setItem('gr-88',gr_88.join(','));
}
gr_iter++
setTimeout(function(){
console.log(gr_iter)
window.scrollTo(0,hhh);
hhh = hhh + 500;
setTimeout(function(){
window.scrollTo(0,0);
scrollGG(hhh);},500);
},2000)
}
scrollGG(1000)