Skip to content

Commit

Permalink
different branch
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayk7 committed Nov 26, 2019
1 parent 79efb06 commit 8758cea
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@

data.rows.forEach((i, idx) => {


if (idx === 0) {

let newsFragment = new DocumentFragment();
Expand Down Expand Up @@ -218,15 +217,12 @@ <h6 id="publishTime_0" class="publishTime" data-publish-ts="${i.publishTime}">${
}
else if(idx<smallAdInterval)
{

let li = document.createElement('li');
li.id = `top_news_${idx}`;

let sourceImg = i.sourceLogo.replace(/{CMD}/g, "crop").replace(/{W}x{H}_{Q}/g, "25x25_60").replace(/{EXT}/g, "webp");
sourceImg = sourceImg.replace('96x96_60', '20x20_60');



let imgSrc = i.images[0].replace(/{CMD}/g, "crop").replace(/{W}x{H}_{Q}/g, "150x150_90").replace(/{EXT}/g, "webp");

li.innerHTML = `<div class="top_div">
Expand Down Expand Up @@ -254,14 +250,10 @@ <h6 id="publishTime_${idx}" class="publishTime" data-publish-ts="${i.publishTime
</div>
</a>
</div>`;

fstblk.appendChild(li);

}
else if( (smallAdInterval < idx) && (idx < bigAdInterval) )
{


if(fstblk){
document.getElementById('all_news').insertBefore(fstblk, document.getElementById('top_news_ads1'));
fstblk = null
Expand Down Expand Up @@ -307,8 +299,6 @@ <h6 id="publishTime_${idx}" class="publishTime" data-publish-ts="${i.publishTime
}
else if( (idx > smallAdInterval) && (idx > bigAdInterval) )
{


if(secblk){
document.getElementById('all_news').insertBefore(secblk, document.getElementById('top_news_ads2'));
secblk = null
Expand Down Expand Up @@ -353,10 +343,6 @@ <h6 id="publishTime_${idx}" class="publishTime" data-publish-ts="${i.publishTime
}

});


debugger;

document.getElementById('all_news').appendChild(thdblk);

} else {
Expand Down

0 comments on commit 8758cea

Please sign in to comment.