1// function change category by image blog home 2 3jQuery( document ).ready(function($) { 4 5 6 function changePositionData(classNameData, classNameBeforeElement) { 7 8 $.each($(classNameData), function(i, v) { 9 10 $(v).clone().insertBefore( $(classNameBeforeElement).eq(i) ); 11 $(v).remove(); 12 }) 13 14 } 15 16 changePositionData('.uael-post__meta-data', '.uael-post__title'); 17 18 19 function changeNameImage(className) { 20 21 let imgArtigo = "/wp-content/uploads/2020/07/icon_noticias.png", 22 imgAudioVisual = "/wp-content/uploads/2020/07/icon_instagram.png", 23 imgPodcast = "/wp-content/uploads/2020/07/icon_podcast_fdv.png"; 24 25 $.each($(className), function(i, v) { 26 27 switch( $(v).text() ) { 28 case "Artigo": 29 $(className).eq(i).empty().prepend('<img id="theImg" src="'+ imgArtigo + '" />'); 30 break; 31 32 case "Audiovisual": 33 $(className).eq(i).empty().prepend('<img id="theImg" src="'+ imgAudioVisual + '" />'); 34 break; 35 36 case "Podcast": 37 $(className).eq(i).empty().prepend('<img id="theImg" src="'+ imgPodcast + '" />'); 38 break; 39 } 40 41 }); 42 43 } 44 45 changeNameImage(".jet-smart-listing__terms"); 46 47 48 function addClassCss() { 49 50 $('article').find('section').eq(0).find('.section-title-txt').addClass('ap-title__pageHeader'); 51 $('article').find('section').eq(0).find('.elementor-heading-title').addClass('ap-title__pageHeader'); 52 53 } 54 55 addClassCss() 56 57 $(window).on('load', function() { 58 59 modalProfessor(); 60 61 }); 62 63 64 65 function modalProfessor() { 66 let i = 0; 67 // remove all modal 68 $('body').find('.uael-modal-iframe').each(function(){ 69 if (i > 0) 70 { 71 //$(this).remove(); 72 } 73 74 i++; 75 }); 76 77 $('.elementor-button-content-wrapper').on('click', function(e){ 78 79 let buttonModalProfessor = $(this).parent().parent().parent().parent().parent().attr('data-professor'); 80 81 //$('#modal-b2d0b4d').find('iframe').attr('src', buttonModalProfessor); 82 83 $('body').find('iframe').attr('src', buttonModalProfessor).css('display', 'block'); 84 85 }) 86 } 87}); 88
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.