Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.futu').each(function (){
- if($(this).text()!='dnes'){
- $(this).closest('.watchlist').removeClass('watchlist').hide();
- }
- });
- $currentDate = new Date().getTime();
- $('.watchname').children('a').each(function(e){
- var $row=$(this).closest('.watchlist');
- $r =$row;
- var $ico = $row.find('li').html();
- var $sname = $row.find('.watchname').html();
- var $series = $row.find('.epnr').text().substr(0,3);
- $.get($(this).prop('href')+'epizody/?filtr=nevidene', function (page){
- var $p = $('<div/>').html(page).contents();
- $($p.find('.seznam-epizod td').slice(2,5).get().reverse()).each(
- function(){
- $date = $(this).find('.vysilani').text();
- $parts = $date.replace(/\s/g,'').split('.');
- $d = Date.parse($parts.reverse().join('-'));
- $(this).find('.vysilani').remove();
- $name = $(this).find('a').text().replace(/ *\([^)]*\) */g, "");
- $(this).find('a').remove();
- $num = $(this).text().replace(".","");
- if(parseInt($num)<10){
- $num = "0"+$num;
- }
- if($d<$currentDate){
- $row.after($('<ul class="watchlist"><li style="width:33px;">'+$ico+'</li><li class="watchname">'+$sname+'</li><li class="epnr" id="ec7821">'+$series+$num+'</li><li class="watchinfo">'+$name+'<br><span>'+$date+'</span></li>'));
- }
- });
- });
- });
Add Comment
Please, Sign In to add comment