Advertisement
DMK29

zerozero.pt

Nov 30th, 2024
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 4.74 KB | Source Code | 0 0
  1. $('#footer .column:nth-of-type(3) ul:nth-of-type(1)').addClass('footer-teams');
  2. $('.footer-teams li:nth-of-type(1), .footer-teams li:nth-of-type(31), #footer .column:nth-of-type(2) ul:nth-of-type(2) li:first-of-type').each(function() {
  3.     $(this).after($(this).clone());
  4. });
  5. $('#ad_block_msg, [class*="taboola"], [id*="taboola"], .zz-ban-ttb, #footer .column:nth-of-type(2) ul:nth-of-type(2) li:nth-of-type(even), #footer .column:nth-of-type(1) ul:nth-of-type(2) li:nth-of-type(7), .footer-teams li:nth-of-type(even)').remove();
  6. $('.footer-teams li:nth-of-type(13), .footer-teams li:nth-of-type(14), .footer-teams li:nth-of-type(15)').remove();
  7. $('#rnews .halfpage2').parent().remove();
  8. $('#rnews #page_rightbar').prepend(
  9.   $('<div>', {class: 'rbbox nofooter slbenfica'}).prepend(
  10.     $('<div>', {class: 'header'}).append(
  11.       $('<img>', {src: 'https://www.zerozero.pt/img/logos/equipas/4_imgbank_1683238034.png'}),
  12.       $('<span>', {text: "Benfica"})
  13.     ),
  14.     $('<div>', {class: 'frame'}).append(
  15.       $('<div>').append(
  16.         $('<div>', {class: 'section', text: "Futebol"}),
  17.         $('<div>', {class: 'rbtextlist'}).append(
  18.           $('<a>', {href: '/equipa/benfica', text: "Equipa principal"}),
  19.           $('<a>', {href: '/equipa/benfica/3563', text: "Masculinos B"}),
  20.           $('<a>', {href: '/equipa/benfica/224225', text: "Femininos"})
  21.         )
  22.       ),
  23.       $('<div>').append(
  24.         $('<div>', {class: 'section', text: "Futsal"}),
  25.         $('<div>', {class: 'rbtextlist'}).append(
  26.           $('<a>', {href: '/equipa/benfica/4368', text: "Masculinos"}),
  27.           $('<a>', {href: '/equipa/benfica/20394', text: "Femininos"})
  28.         )
  29.       )
  30.     )
  31.   )
  32. );
  33. $('#footer .column:nth-of-type(1) ul:nth-of-type(2)').append(
  34.   $('#footer .column:nth-of-type(1) ul:nth-of-type(2) li:nth-of-type(4)')
  35. );
  36. [{a:2,b:'4_imgbank_1683238034',c:"Sport Lisboa e Benfica"},
  37. {a:3,b:'9_imgbank_1728921003',c:"Futebol Clube do Porto"},
  38. {a:4,b:'16_imgbank_1722518934',c:"Sporting Clube de Portugal"},
  39. {a:5,b:'15_imgbank_1682583585',c:"Sporting Clube de Braga"},
  40. {a:6,b:'18_imgbank_1691672368',c:"Vitória Sport Clube"},
  41. {a:7,b:'5_imgbank_1683106885',c:"Boavista Futebol Clube"},
  42. {a:8,b:'3_imgbank_1682589777',c:"Clube de Futebol «Os Belenenses»"},
  43. {a:9,b:'19_imgbank_1682589799',c:"Associação Académica de Coimbra"},
  44. {a:10,b:'17_imgbank_1721993809',c:"União Desportiva de Leiria"},
  45. {a:11,b:'35_imgbank_1683027153',c:"Vitória Futebol Clube"},
  46. {a:12,b:'2_imgbank_1683209128',c:"Sport Clube Beira-Mar"},
  47. {a:14,b:'87_imgbank_1683907056',c:"Manchester United Football Club"},
  48. {a:15,b:'50_imgbank_1684146342',c:"Real Madrid Club de Fútbol"},
  49. {a:16,b:'40_imgbank_1683107862',c:"Futbol Club Barcelona"},
  50. {a:17,b:'86_imgbank_1683906978',c:"Manchester City Football Club"},
  51. {a:18,b:'75_imgbank_1695372514',c:"Arsenal Football Club"},
  52. {a:19,b:'81_imgbank_1683906502',c:"Chelsea Football Club"},
  53. {a:20,b:'85_imgbank_1724929992',c:"Liverpool Football Club"},
  54. {a:21,b:'64_imgbank_1698231613',c:"Juventus Football Club",d:'filter:invert(1)'},
  55. {a:22,b:'39_imgbank_1727896467',c:"Club Atlético de Madrid"},
  56. {a:23,b:'66_imgbank_1683890642',c:"Associazione Calcio Milan"},
  57. ].forEach((i)=>{
  58. $(`.footer-teams li:nth-of-type(${i.a}) a`).prepend($('<img>', {src: `/img/logos/equipas/${i.b}.png`, title: i.c, style: i.d ?? null}));
  59. });
  60. [{a:8,b:'est-amadora/253884',c:'253884_imgbank_1691766850',d:"Club Football Estrela da Amadora",e:"Estrela Amadora"},
  61. {a:13,b:'atletico-cp/2170',c:'2170_imgbank_1683211120',d:"Atlético Clube de Portugal",e:"Atlético CP"},
  62. {a:14,b:'fc-alverca/1',c:'1_imgbank_1682589747',d:"Futebol Clube de Alverca",e:"Alverca"},
  63. {a:15,b:'real-sc/3632',c:'3632_imgbank_1683023578',d:"Real Sport Clube",e:"Real SC"},
  64. ].forEach((i)=>{
  65. $(`.footer-teams li:nth-of-type(${i.a})`).after(
  66.   $('<li>').append(
  67.     $('<a>', {href: `/equipa/${i.b}`}).append(
  68.       $('<img>', {src: `https://www.zerozero.pt/img/logos/equipas/${i.c}.png`, title: i.d}), i.e
  69.     )
  70.   )
  71. );
  72. });
  73. [{a:1,b:2,c:4,d:'flag_2_ger_30x20.png',e:"Alemanha",f:'/competicao/1-bundesliga',g:"Bundesliga"},
  74. {a:2,b:2,c:10,d:'55_comp_jo.gif',e:"Jogos Olímpicos",f:'/competicao/jogos-olimpicos',g:"Jogos Olímpicos ♂"},
  75. {a:2,b:2,c:11,d:'258_comp_jof.gif',e:"Jogos Olímpicos",f:'/competicao/jogos-olimpicos-femininos',g:"Jogos Olímpicos ♀"},
  76. ].forEach((i)=>{
  77. $(`#footer .column:nth-of-type(${i.a}) ul:nth-of-type(${i.b}) li:nth-of-type(${i.c})`).after(
  78.   $('<li>').append(
  79.     $('<div>', {class: 'micrologo_and_text', style: 'padding-left:0'}).append(
  80.       $('<div>', {class: 'image', style: 'padding:0;opacity:.6'}).append(
  81.         $('<img>', {src: `/img/bandeiras/${i.d}`, alt: i.e})
  82.       ),
  83.       $('<div>', {class: 'text'}).append(
  84.         $('<a>', {href: i.f, text: i.g})
  85.       ),
  86.     )
  87.   )
  88. );
  89. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement